Google Antigravity MCP server for Claude Code, Codex and Cursor
antigravity-mcp is an open-source MCP server for the Google Antigravity CLI (agy). It lets Claude Code, Claude Desktop, OpenAI Codex, Cursor, Windsurf, Gemini CLI or any other MCP client hand coding tasks to Antigravity: Gemini 4, Claude or GPT models, through your own Antigravity account. You don't need an API key.
What it does
- Quota-aware routing.
model: "auto"picks the strongest model of the quota pool with the most headroom. If a pool runs out mid-run, the task is re-run once on the other pool. How quotas work. - Model verification. agy's own log says which backend answered. The server compares it with the model you asked for and flags any misrouting.
- Git worktree isolation. An editing run can get its own worktree and
agy/<id>branch, so parallel agents and your uncommitted work never collide. - Crash-safe jobs. agy runs detached with its output in files, and every job is saved to disk. A restart, crash or client disconnect loses nothing.
- No polling. Native MCP Tasks,
job_finishednotifications, and a Claude Code hook that wakes the model when a background run ends. - Multi-model council. Ask Gemini and Claude the same question, then a judge model checks their answers against the code and consolidates them.
- Safe by default. Read-only unless you say otherwise, allowed-folder checks, and a cap on the highest access level.
- Zero dependencies. Plain Node.js 20+. CI runs on Windows, macOS and Linux, and the benchmarks are reproducible.
Install in two minutes
# 1. Install the official Antigravity CLI and sign in once
irm https://antigravity.google/cli/install.ps1 | iex # Windows PowerShell
curl -fsSL https://antigravity.google/cli/install.sh | bash # macOS / Linux
agy # sign in, then exit
# 2. Get the server and register it with every MCP client found on this machine
git clone https://github.com/aristidew1/antigravity-mcp
node antigravity-mcp/src/cli.mjs --check
node antigravity-mcp/src/cli.mjs install
In Claude Code you can install the plugin instead. It adds the server, a delegation skill and the wake-up hook: /plugin marketplace add aristidew1/antigravity-mcp, then /plugin install antigravity-mcp@antigravity.
Tools
| Tool | Purpose |
|---|---|
antigravity_task | Run a task with agy: auto or explicit model, read-only / edit / full access, optional worktree, resume by conversation_id. |
antigravity_council | The same read-only question to 2-5 models in parallel, then a judge consolidates the answers. |
antigravity_job | Wait for, cancel, commit or discard a job. Works after restarts and from other sessions. |
antigravity_jobs | Recent jobs from every session. |
antigravity_models | Live models, quota per pool, the current auto choice. |
antigravity_dashboard | A local read-only dashboard: jobs, live agy logs, quota. |