Antigravity

v1.0.0Coding Agentsstable

Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf.

agentic-aiagentic-codingai-agentsai-codingai-ide
Share:
1,238
Stars
0
Downloads
0
Weekly
0/5

What is Antigravity?

Antigravity is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable ai assistant.workspace template + mcp server for claude code, codex cli, cursor & windsurf.

Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Multi-agent knowledge engine (ag-refresh / ag-ask) that turn

Use Cases

Convert any codebase into a queryable AI assistant.
Build multi-agent knowledge engines for code understanding.
Use workspace templates for Claude Code and Cursor integration.
study8677

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx antigravity-workspace-template

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Antigravity

Antigravity is a multi-agent knowledge engine that turns any codebase into a queryable AI assistant. It provides two core commands — ag-refresh to build an incremental knowledge base from your project files, and ag-ask to route natural language questions through that knowledge base. It integrates as a workspace template and MCP server with Claude Code, Codex CLI, Cursor, and Windsurf, making it useful for teams that need fast, context-aware answers about large or unfamiliar codebases.

Prerequisites

  • Python 3.10+ installed (the CLI and engine are Python packages)
  • An MCP-compatible client such as Claude Code or Cursor
  • An API key for a supported LLM provider (OpenAI, DeepSeek, Groq, DashScope, Ollama, or any OpenAI-compatible endpoint)
  • pip 23.0+ or the uv package runner
  • Git, to clone or install from the GitHub repository
1

Install the CLI and engine packages

Install both the Antigravity CLI and the knowledge engine from the GitHub repository using pip. The CLI provides the ag-* commands and the engine handles embedding and retrieval.

pip install "git+https://github.com/study8677/antigravity-workspace-template.git#subdirectory=cli"
pip install "git+https://github.com/study8677/antigravity-workspace-template.git#subdirectory=engine"
2

Run first-time setup

Run ag-setup inside your project directory. It will prompt you to choose an LLM provider and write a .env file with your API credentials and model settings. Supported providers include OpenAI, DeepSeek, Groq, DashScope, NVIDIA NIM, Ollama, and any OpenAI-compatible endpoint.

ag-setup
3

Build the project knowledge base

Run ag-refresh to index your codebase. Antigravity scans the project files, generates embeddings, and stores a queryable knowledge base locally. Run this again whenever your codebase changes to update the index incrementally.

ag-refresh
4

Query the codebase

Use ag-ask to ask natural language questions about your codebase. The engine routes the question through the indexed knowledge base and returns grounded answers with relevant source context.

ag-ask "How does the authentication middleware work?"
5

Start the MCP server for Claude Code

Start the ag-mcp server pointing at your project workspace. This exposes the ask_project and refresh_project tools to any MCP-compatible client such as Claude Code, allowing the AI to query your codebase directly during a session.

ag-mcp --workspace /path/to/your/project
6

Configure Claude Code to use the MCP server

Add the Antigravity MCP server to your Claude Code configuration so it is available as a plugin. In Claude Code you can also install via the plugin marketplace.

claude mcp add antigravity -- ag-mcp --workspace /path/to/your/project

Antigravity Examples

Client configuration

Add Antigravity as an MCP server in your claude_desktop_config.json, pointing ag-mcp at the workspace you want to query.

{
  "mcpServers": {
    "antigravity": {
      "command": "ag-mcp",
      "args": ["--workspace", "/path/to/your/project"],
      "env": {
        "OPENAI_API_KEY": "your_openai_api_key",
        "OPENAI_MODEL": "gpt-4o"
      }
    }
  }
}

Prompts to try

Once connected, use these prompts in your MCP client to explore your codebase through Antigravity.

- "Explain how the database connection pooling is implemented in this project"
- "Where is the rate limiting logic and how does it work?"
- "What does the UserService class do and which modules depend on it?"
- "Refresh the knowledge base and then summarize what changed in the auth module"

Troubleshooting Antigravity

ag-ask returns vague or incorrect answers

Run ag-refresh again to ensure the knowledge base is up to date. If the project is very large, check AG_RETRIEVAL_MODE in your .env — set it to 'full' for more thorough context retrieval at the cost of speed.

MCP server not visible in Claude Code after configuration

Verify that ag-mcp is on your PATH by running 'which ag-mcp'. If not found, ensure the CLI package installed correctly and that the Python bin directory is in your PATH. Restart Claude Code after updating the config.

LLM provider authentication errors during ag-setup

Open the .env file created by ag-setup and verify OPENAI_API_KEY and OPENAI_BASE_URL match your provider's credentials. For non-OpenAI providers like Groq or DeepSeek, set OPENAI_BASE_URL to their OpenAI-compatible endpoint URL.

Frequently Asked Questions about Antigravity

What is Antigravity?

Antigravity is a Model Context Protocol (MCP) server that multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable ai assistant.workspace template + mcp server for claude code, codex cli, cursor & windsurf. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Antigravity?

Follow the installation instructions on the Antigravity GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Antigravity?

Antigravity works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Antigravity free to use?

Yes, Antigravity is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "antigravity-workspace-template": { "command": "npx", "args": ["-y", "antigravity-workspace-template"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Antigravity?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides