antigravity-claude-mcp
Allows Claude Code to request an independent code review from Google Antigravity (Gemini, Claude, or GPT-OSS) via the Antigravity CLI, providing a second opinion on plans or diffs.
README
antigravity-claude-mcp
Give Claude Code a second brain. Ask Google Antigravity — Gemini 3 Pro, Claude, or GPT-OSS — for an independent code review or second opinion, right from inside Claude Code. One command. Zero dependencies.
claude mcp add antigravity -- npx -y antigravity-claude-mcp
That's it. Restart Claude Code, and Claude can now call ask_antigravity to get a second model's take on any plan or diff.
Why
Claude reviewing its own code is Claude reviewing its own code. You don't catch your own blind spots by thinking harder — you catch them with a different mind.
This bridges Claude Code to Google Antigravity's CLI (agy), so Claude can hand a plan or a diff to a different model family (Gemini 3 Pro by default) and get an independent verdict — before you do. Two models check the work; you make the call.
It's the wiring behind a simple loop:
You ── prompt ──▶ Claude validates ──▶ asks Antigravity (Gemini) ──▶ they agree on ONE plan
│
you approve ◀── Antigravity reviews the diff ◀── Claude writes the code
See examples/CLAUDE_ANTIGRAVITY_LOOP.md for the full working agreement you can drop into any project.
Quickstart (2 minutes)
1. Install the Antigravity CLI (if you don't have it) and sign in once:
curl -fsSL https://antigravity.google/cli/install.sh | bash
~/.local/bin/agy -p "ping" --print-timeout 5m # opens a Google login the first time
2. Add the MCP server to Claude Code:
claude mcp add antigravity -- npx -y antigravity-claude-mcp
3. Check it's healthy (optional):
npx antigravity-claude-mcp doctor
4. Restart Claude Code, run /mcp to approve the tool, and ask:
"Use ask_antigravity to review my changes in
src/auth.tsfor edge cases."
How it works
┌────────────┐ MCP (stdio, ┌─────────────────────────┐ agy -p ┌──────────────────┐
│ Claude Code│ JSON-RPC 2.0) │ antigravity-claude-mcp │ --model … │ Antigravity CLI │
│ (Claude) │ ───────────────▶ │ ask_antigravity tool │ ───────────▶ │ Gemini 3 Pro / │
│ │ ◀─────────────── │ (this package) │ ◀─────────── │ Claude / GPT-OSS │
└────────────┘ tool result └─────────────────────────┘ stdout └──────────────────┘
The package is a tiny stdio MCP server that shells out to agy -p (Antigravity's headless print mode), optionally adding files/folders as context with --add-dir, and returns the model's text back to Claude.
The ask_antigravity tool
| Param | Type | Required | Description |
|---|---|---|---|
prompt |
string | ✅ | The question, proposed approach, or review request. |
paths |
string[] | Absolute file/folder paths. Antigravity reads them in full as context. | |
model |
string | Override the model (see below). Default: Gemini 3.1 Pro (High). |
Models
Whatever your Antigravity account exposes via agy models, for example:
Gemini 3.1 Pro (High)← default (strong, and a different family from Claude)Gemini 3.5 Flash (Low|Medium|High)(fast/cheap)Claude Sonnet 4.6 (Thinking),Claude Opus 4.6 (Thinking)GPT-OSS 120B (Medium)
Why default to Gemini, not Claude? The whole point is an independent reviewer. Using a Claude model to review Claude's work defeats the cross-check. Override per call with
modelif you want a specific one.
Configuration
Set as environment variables on the MCP server (e.g. via claude mcp add ... -e KEY=VAL):
| Variable | Default | Purpose |
|---|---|---|
AGY_BIN |
auto-detected | Absolute path to the agy binary. |
AGY_MODEL |
Gemini 3.1 Pro (High) |
Default model for every call. |
AGY_TIMEOUT |
5m |
Headless print timeout. |
Troubleshooting
agy runs but prints "passed to Electron/Chromium" warnings.
You have the Antigravity IDE installed, and plain agy on your PATH is a symlink into Antigravity.app — that's the editor, not the CLI. This package auto-detects and skips it, preferring the real CLI at ~/.local/bin/agy. If you call agy by hand, use the full path or set AGY_BIN.
"Authentication required."
Sign in once interactively: ~/.local/bin/agy -p "ping" --print-timeout 5m, open the printed Google link, approve, and paste the code back into that prompt.
Tool doesn't appear in Claude Code.
Restart Claude Code after claude mcp add, then run /mcp and approve ask_antigravity. claude mcp list should show antigravity ✔ Connected.
vs. a proxy
Some projects route Claude Code's own traffic through Antigravity via an Anthropic-compatible proxy (i.e. Claude Code is "powered by" Antigravity). This is the opposite and complementary: Claude Code stays Claude, and Antigravity becomes a tool Claude can consult — so you get two genuinely different models in one loop instead of swapping one out for the other.
Requirements
- Claude Code CLI
- Antigravity CLI (
agy), signed in - Node.js ≥ 18
License
MIT © Arjun Thilak
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。