Antigravity MCP Server
The Antigravity MCP Server wraps the Antigravity CLI (agy) so any MCP client (Claude Code, Cursor, VS Code, Codex) can delegate tasks to it on your Antigravity plan.
antigravity— hand over a task or question; by default it can read and edit files in its workspace (accept-edits), usemode: "plan"for read-only answers, orautoto also run commands; continue a session withconversationId; supportsmodel,effort,cwd,addDirs,project,sandbox,timeoutSec.antigravity_web_search— look something up on the web and get an answer with source URLs (read-only; needs theread_urlpermission allowed inagysettings).antigravity_analyze_media— read images, screenshots and PDFs and answer a question about them (read-only, no permissions needed).antigravity_shell— have Antigravity write shell commands for a task, or actually run them withexecute: true(needs thecommandpermission).antigravity_brainstorm— generate ideas on a topic using a chosen method (open, SCAMPER, design-thinking, first-principles, six-hats, reverse) and pick the most promising.antigravity_models— list the models your Antigravity plan offers.antigravity_ping— check thatagyis reachable and view the server's settings without spending quota.Configuration — behavior is tunable via environment variables such as
AGY_BIN,AGY_DEFAULT_MODEL,AGY_DEFAULT_EFFORT,AGY_DEFAULT_MODE,AGY_TIMEOUT_SEC, andAGY_MCP_DEBUG; per-call values override these.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity MCP Server refactor the auth module and add unit tests for it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Antigravity MCP Server
Put Antigravity to work from inside your editor.
This server wraps the Antigravity CLI (agy) so any MCP client can call it as a tool. From Claude Code, Claude Desktop, Cursor or Codex you can hand Antigravity a task to carry out, ask for a review, read a screenshot or PDF, search the web, or brainstorm. The work runs on your Antigravity plan, not on the client's.
flowchart LR
client["MCP client<br/>Claude Code · Cursor · Codex"] -- stdio --> server["antigravity-mcp-server"]
server --> tools["antigravity · web_search · analyze_media<br/>shell · brainstorm · models · ping"]
tools -- "agy --print --output-format json" --> agy["Antigravity CLI"]
agy --> models["Gemini · Claude · GPT-OSS"]Getting started
1. Make sure agy works on its own
You need Node.js 20 or newer and the Antigravity CLI, signed in.
agy -p "say pong" --output-format jsonIf that prints a JSON object with "status":"SUCCESS", you are ready. If not, see Working with the Antigravity CLI.
2. Add the server to your client
The package installs straight from GitHub. It is not on npm yet.
Claude Code
claude mcp add antigravity -s user -- npx -y github:vanh1011/antigravity-mcp-serverEdit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows:
{
"mcpServers": {
"antigravity": {
"command": "npx",
"args": ["-y", "github:vanh1011/antigravity-mcp-server"]
}
}
}Desktop apps often start with a short PATH. If the server reports not-found, add "env": { "AGY_BIN": "/full/path/to/agy" }.
Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"antigravity": {
"command": "npx",
"args": ["-y", "github:vanh1011/antigravity-mcp-server"]
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"antigravity": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:vanh1011/antigravity-mcp-server"]
}
}
}Add to ~/.codex/config.toml:
[mcp_servers.antigravity]
command = "npx"
args = ["-y", "github:vanh1011/antigravity-mcp-server"]3. Check the connection
Ask your client to run antigravity_ping. It confirms agy can start and shows the active settings, without spending any quota.
Related MCP server: agy-bridge
Tools
Tool | Use it to | Edits files | Needs an allow rule |
| Hand over a task or question; continue it later with its | yes, by default | only if it runs commands |
| Look something up on the web and get an answer with source URLs | no |
|
| Read images, screenshots and PDFs and answer a question about them | no | no |
| Get the shell commands for a task, or run them with | when executing |
|
| Generate ideas with a method such as SCAMPER or first principles | no | no |
| See which models your plan offers | no | no |
| Check that | no | no |
Every parameter is listed in the API reference.
What agy is allowed to do
agy is an agent, so two things decide what it can do on a call.
The mode. antigravity runs in accept-edits by default, so a task you hand over actually gets done: agy reads and edits files in its workspace. Pass mode: "plan" when you only want an answer. The other tools pick the mode themselves: they are read-only, except antigravity_shell with execute: true.
|
|
| read files and answer |
| also edit files in the workspace (default) |
| also run commands without asking, where your account offers it |
Its permissions. In print mode agy cannot stop and ask you, so anything that needs a permission prompt is refused. Out of the box that includes running shell commands (command) and fetching web pages (read_url). Allow what your tasks need in agy's settings (usually ~/.gemini/antigravity-cli/settings.json), one command or domain per rule:
{
"permissions": {
"allow": [
"command(git status)",
"command(git diff)",
"command(npx tsc)",
"command(npx eslint)",
"read_url(nodejs.org)"
]
}
}A command rule names the binary and subcommand, and covers any arguments after it: command(npx tsc) allows npx tsc -p tsconfig.app.json --noEmit. Avoid command(*) and read_url(*).
agy stops the whole turn at the first action it is denied, with no partial answer. So when you hand over a task that runs commands, list the allowed commands in the prompt. When a call is denied, the tool returns a permission-denied error with the permission it needed, an example rule, and the rules you already allow.
This server never turns permissions off for you: it does not pass --dangerously-skip-permissions.
Things to try
Ask antigravity to add input validation to src/routes/users.ts and run through the edge cases
Ask antigravity in plan mode to review the diff in src/auth and list anything risky
Use antigravity_analyze_media on ./screenshots/error.png: what is failing and why?
Use antigravity_brainstorm with method scamper on how to make onboarding shorter
Use antigravity_shell to write the commands that find which process holds port 8080
Use antigravity_web_search to find what changed in the latest Spring Boot releaseConfiguration
All settings are optional environment variables. A value passed in the tool call wins over these.
Variable | Default | Purpose |
|
| Path to the Antigravity CLI |
| — | Model for calls that don't name one (else |
| — |
|
|
| Mode for |
|
| Seconds before |
| — | Set to |
|
| Where to read allowed rules from, to list them in permission errors |
For example, with Claude Code:
claude mcp add antigravity -s user \
-e AGY_DEFAULT_MODEL=gemini-3.8-flash-high \
-- npx -y github:vanh1011/antigravity-mcp-serverDocumentation
API reference: parameters, result format, errors
Working with the Antigravity CLI: setup, quota, models, troubleshooting
Development
git clone https://github.com/vanh1011/antigravity-mcp-server.git
cd antigravity-mcp-server
npm install # also builds dist/
npm test # unit + integration tests against a fake agy, no quota used
npm run lint
npm run dev # run from source with tsxTo try a local build in Claude Code:
claude mcp add antigravity-dev -- node /absolute/path/to/antigravity-mcp-server/dist/index.jsCredits
The project layout and the idea of wrapping a vendor CLI in MCP follow tuannvm/gemini-mcp-server, which does the same for Gemini CLI.
License
MIT.
This is a community project. It is not made, endorsed or supported by Google. Antigravity is a trademark of its owner.
Available Tools
7 toolsantigravityAsk AntigravityA
Hand a task or question to the Antigravity CLI (agy) and return its answer. By default agy may edit files in the workspace; pass mode "plan" for a read-only answer. Pass the returned conversationId to continue the same conversation.
Inputs: prompt (required), cwd, mode, model, +6 more.
antigravity_analyze_mediaAnalyze images and PDFs with AntigravityBRead-only
Have Antigravity read images, screenshots or PDFs and answer a question about them. Read-only.
Inputs: prompt (required), filePaths (required), model, timeoutSec.
antigravity_brainstormBrainstorm with AntigravityBRead-only
Have Antigravity generate ideas on a topic using a chosen method, and pick the most promising ones. Read-only.
Inputs: topic (required), ideas, model, method, +2 more.
antigravity_modelsList Antigravity modelsARead-only
List the models your Antigravity plan can use. Pass an id as model to the antigravity tool.
Inputs: no named parameters.
antigravity_pingCheck Antigravity CLIARead-only
Check that the server is up and the agy binary can be started. Does not use any quota.
Inputs: message.
antigravity_shellShell commands with AntigravityADestructive
Have Antigravity write shell commands for a task, or run them when execute is true. Running needs the "command" permission allowed in agy's settings.json; without it the tool returns a permission-denied error that names the rule to add.
Inputs: task (required), cwd, model, execute, +1 more.
antigravity_web_searchSearch the web with AntigravityARead-only
Ask Antigravity to look something up on the web and answer with source URLs. Read-only. agy needs the "read_url" permission allowed in its settings.json; without it the tool returns a permission-denied error that names the rule to add.
Inputs: query (required), model, timeoutSec.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct purposes (web search, media analysis, shell, models, ping). The main overlap is the generic `antigravity` tool, which can perform any task and therefore subsumes `antigravity_web_search` and `antigravity_brainstorm`; an agent must rely on the descriptions (read-only vs file-editing, specialized helpers) to choose correctly.
All specialized tools use a predictable `antigravity_<verb/noun>` snake_case pattern (web_search, analyze_media, shell, brainstorm, models, ping). The primary tool breaks the prefix pattern by being named simply `antigravity`, a minor deviation.
Seven tools is a well-scoped set for a CLI-wrapper server: one general entry point, several focused helpers, and utility tools for models and health. No tool feels redundant or bloated.
The surface covers task handoff, web search, media analysis, shell execution, brainstorming, model listing, and a health check. Minor gaps exist around conversation lifecycle management (list/resume/delete conversations) and cancellation, but core workflows are covered.
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Your Aurentia workspace — projects, CRM, tasks, deliverables — in Claude, Cursor or any MCP client.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables calling Google's Antigravity CLI (agy) headlessly through MCP, providing tools like agy_ask and agy_research for agents like Claude Code.260 PyPI21MIT
- AlicenseAqualityAmaintenanceMCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI (agy) — purpose-built tools, model routing with fallback, session continuity, and output truncation to save Claude's context and tokens.6148 npm72MIT
- AlicenseAqualityBmaintenanceMCP server that lets Claude Code delegate heavy tasks (file analysis, deep search, web lookups, adversarial review, and general delegation) to the Antigravity CLI (agy), with model routing, session continuity, timeout controls, and quota-aware failover.915MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible coding agents to run the local Antigravity CLI as a coding agent, manage conversation context and common options, and inspect usage, quota, models, version, help, and read-only slash commands.MIT