# antigravity-mcp > MCP server for the Google Antigravity CLI (`agy`). It lets Claude Code, Claude Desktop, OpenAI Codex, Cursor, Windsurf, Gemini CLI or any MCP client delegate tasks to Antigravity models (Gemini 4, Claude, GPT) through the user's own Antigravity account, with no API key. Features: quota-aware model routing with automatic fallback to the other quota pool, git worktree isolation, a wake-up hook so clients never poll, read-only / edit / full access enforced by agy, allowed-folder restrictions, crash-safe jobs persisted on disk, native MCP Tasks (spec 2025-11-25), a multi-model council with a judge, backend verification, quota-aware errors, a local dashboard, a client installer and a Claude Code plugin. Plain Node.js 20+, zero dependencies, stdio transport, CI on Windows, macOS and Linux. Tested with agy 1.5.22. MIT license. Unofficial. Install: install `agy` and sign in once, then either `/plugin marketplace add aristidew1/antigravity-mcp` + `/plugin install antigravity-mcp@antigravity` in Claude Code, or `git clone https://github.com/aristidew1/antigravity-mcp` and `node src/cli.mjs install` (registers it with Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI and Codex). `node src/cli.mjs --check` diagnoses the setup. Tools: - `antigravity_task(prompt, cwd, model?="auto", prefer?, fallback?, isolation?, effort?, access?, sandbox?, conversation_id?, add_dirs?, timeout_seconds?, wait_seconds?)`: runs `agy --print`. Returns response, conversation_id, routing, served_by, changed_files, denied_actions, usage, worktree, fallback_from, or a job_id if still running. - `antigravity_council(prompt, cwd, models?, judge_model?, effort?, add_dirs?, timeout_seconds?, wait_seconds?)`: same read-only question to 2-5 models in parallel, then a judge consolidates the answers. - `antigravity_job(job_id, wait_seconds?, cancel?, worktree?)`: wait for or cancel a job or council, or commit/discard a worktree run; works across restarts and sessions. - `antigravity_jobs()`: list recent jobs. - `antigravity_models()`: live model list, remaining quota per pool (Gemini vs Claude/GPT, 5-hour and weekly), default council. - `antigravity_dashboard()`: URL of the local read-only dashboard. `antigravity_task` and `antigravity_council` support MCP Tasks (`execution.taskSupport: "optional"`). Settings (env or config.json in the state folder): AGY_MCP_ALLOWED_ROOTS / allowed_roots (default home + temp), AGY_MCP_MAX_ACCESS / max_access, AGY_MCP_MAX_CONCURRENT, AGY_MCP_ON_EXIT (keep | cancel), AGY_BIN. Access levels: `read-only` (default, `agy --mode plan`, no changes), `edit` (`--mode accept-edits`, file edits, shell denied), `full` (`--dangerously-skip-permissions`, sandboxed unless `sandbox: false`). Benchmarks: `node bench/bench.mjs` (reproducible, fake agy, run in CI on Windows/macOS/Linux): ~44 ms cold start, ~51 MB RSS, ~64 ms overhead per call, 40/40 parallel runs, 10/10 misroutes flagged, 5/5 quota fallbacks, results recovered after a crash. ## Docs - [Documentation site](https://aristidew1.github.io/antigravity-mcp/) - [README](https://github.com/aristidew1/antigravity-mcp/blob/main/README.md): install, client configs (Claude Code, Claude Desktop, Cursor, Codex), tools, access levels, FAQ - [AGENTS.md](https://github.com/aristidew1/antigravity-mcp/blob/main/AGENTS.md): code layout and rules for agents working on this repo ## Source - [src/cli.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/cli.mjs): entry point, `--check`, `install`, `uninstall`, `dashboard`, `--version` - [src/tools.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/tools.mjs): tool schemas and agy argument building - [src/jobs.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/jobs.mjs): persisted job queue, detached agy runs, adoption after restarts, conversation store - [src/config.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/config.mjs): settings, allowed folders, access cap - [src/dashboard.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/dashboard.mjs): local dashboard - [src/install.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/install.mjs): client installer - [src/routing.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/routing.mjs): quota-aware routing - [src/worktree.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/worktree.mjs): worktree isolation - [bench/bench.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/bench/bench.mjs): benchmarks - [src/agy.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/agy.mjs): agy discovery and output parsing - [src/mcp.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/src/mcp.mjs): minimal stdio JSON-RPC MCP server with MCP Tasks - [test/smoke.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/test/smoke.mjs): end-to-end tests - [test/fake-agy.mjs](https://github.com/aristidew1/antigravity-mcp/blob/main/test/fake-agy.mjs): fake agy for offline tests and CI