Skip to main content
Glama

Antigravity Bridge (agy-mcp)

A Model Context Protocol (MCP) server that empowers Claude Code and Claude Desktop to act as the primary architect / orchestrator while delegating token-heavy tasks to Antigravity (agy) headless subagents.


Why This Exists

When working on large repositories, Claude often runs into token limits when performing heavy operations like:

  • Reading dozens of repository files to understand architecture.

  • Generating large boilerplate files or multi-file refactors.

  • Running long test suites and iterative debugging loops.

The Division of Labor:

  • Claude (The Lead Architect): Maintains high-level context, project structure, and user workflow preferences. Formulates explicit, pixel-perfect instructions.

  • Antigravity (agy) (The Execution Engine): Spawns in isolated headless mode (agy -p --dangerously-skip-permissions), performs all heavy file edits, tool runs, and test executions, and returns a concise status diff.

Result: Up to 90%+ token savings for Claude's context window.


Related MCP server: antigravity-claude-mcp

Prerequisites

  1. Node.js: v20.0.0 or newer.

  2. Antigravity CLI (agy): Installed and authenticated on your machine.


Setup for Claude Code

Add the server entry to your global Claude Code settings at ~/.claude.json:

{
  "mcpServers": {
    "antigravity": {
      "type": "stdio",
      "command": "node",
      "args": ["/Users/YOUR_USERNAME/path/to/agy-mcp/dist/server/stdio.js"]
    }
  }
}

Method 2: Via Claude Code CLI

claude mcp add antigravity node /Users/YOUR_USERNAME/path/to/agy-mcp/dist/server/stdio.js

Setup for Claude Desktop

Method 1: 1-Click MCP Bundle (.mcpb)

If you use Claude Desktop with MCP Bundle support:

  1. Locate the pre-built bundle file in build/agy-mcp.mcpb.

  2. Double-click or import the .mcpb file into Claude Desktop.

Method 2: Manual Configuration (claude_desktop_config.json)

Add the server entry to your Claude Desktop config located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "antigravity": {
      "command": "node",
      "args": ["/Users/YOUR_USERNAME/path/to/agy-mcp/dist/server/stdio.js"]
    }
  }
}

Restart Claude Desktop, and the hammer icon will display the agy-mcp tools.


MCP Tools Provided

1. agy_execute

Spawns a new headless Antigravity subagent to autonomously perform a task.

  • instructions (string, required): Step-by-step implementation instructions.

  • workspace_dir (string, optional): Working directory (defaults to current project root).

  • effort (enum: low | medium | high, default: high): Reasoning effort for Antigravity.

  • mode (enum: accept-edits | plan, default: accept-edits): Execution mode.

  • timeout_seconds (number, default: 600): Execution timeout in seconds.

  • include_git_diff (boolean, default: true): Returns git status and diff statistics of files modified during execution.

2. agy_continue

Sends follow-up instructions, corrections, or test feedback to an existing Antigravity conversation.

  • conversation_id (string, required): The conversation ID returned from a prior execution.

  • instructions (string, required): Follow-up guidance or bugfix instructions.

  • workspace_dir (string, optional)

  • effort (enum: low | medium | high)

  • timeout_seconds (number, default: 600)

3. agy_inspect_transcript

Inspects recent tool calls and step-by-step actions from an Antigravity conversation log without flooding Claude's context with raw terminal logs.

  • conversation_id (string, required)

  • max_steps (number, default: 20)

4. agy_get_status

Verifies that the Antigravity CLI is available and operational.


Add this section to ~/.claude/CLAUDE.md (or your project's CLAUDE.md) so Claude knows how and when to offload heavy tasks:

## Antigravity Delegation Guidelines
- When a task involves reading many files, large multi-file edits, running test suites, or broad exploration:
  1. Do NOT load all files into context.
  2. Formulate explicit, step-by-step instructions (target file paths, exact schemas, constraints, test commands).
  3. Invoke `agy_execute` to run the task via Antigravity.
  4. Inspect the returned git changes and response summary.
  5. If fixes are needed, invoke `agy_continue` with the returned `conversation_id`.

Development & Building

# Clone the repository
git clone https://github.com/josephjerryrhule/agy-mcp.git
cd agy-mcp

# Build TypeScript
npm run build

# Build .mcpb bundle for Claude Desktop
npm run bundle:mcpb

License

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

UpdatingMaintainers
UpdatingResponse time
Release cycle
0Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables Claude to delegate tasks to external coding agents (Codex or Antigravity) for independent reviews, separate quota usage, and async processing.
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.

  • Stop re-explaining yourself to Agents. Give it the right context, right when needed.

  • One shared brain for your AI coding agents: team memory, agent Q&A, tasks, and file claims.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/josephjerryrhule/agy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server