antigravity-mcp
Provides tools to interact with Google Antigravity CLI, enabling AI assistants to execute arbitrary prompts, manage conversations, analyze code, run autonomous agents, and perform security audits.
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 scan the current directory for security flaws"
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 π
Π ΡΡΡΠΊΠΎΠ΅ ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅ Π½ΠΈΠΆΠ΅
This project is a Model Context Protocol (MCP) server that acts as a bridge between the Google Antigravity CLI (agy) and various MCP clients (Claude Desktop, Cursor, Windsurf, Cline, etc.).
By using this server, you can empower your AI assistant with the advanced capabilities of Google Antigravity directly inside your favorite IDE.
β¨ Features
This server provides 13 specialized tools powered by the Antigravity TUI/CLI ecosystem. Here are the core capabilities:
Core & Productivity
agy_task: Execute arbitrary prompts using the Antigravity agent. Perfect for writing code, refactoring, or answering technical questions.agy_chat: Resume and manage conversational threads with context memory (--continueor--conversation).agy_notebook_query: Local RAG agent acting like Google NotebookLM for querying specific directories using--add-dir.
Code & Git
agy_analyze: Deep architectural review of files or folders.agy_refactor/agy_generate_tests/agy_explain_error: Developer-focused code tools for fast rewrites, test creation, and debugging compiler stack traces.
Advanced Automation
agy_autonomous_agent: Fully autonomous execution (YOLO mode) using the--dangerously-skip-permissionsflag and--mode accept-edits.agy_sandbox_agent: Runs commands inside a restricted sandbox environment using the--sandboxflag.agy_security_audit: Strict security and logic audit (OWASP rules, XSS, SSRF, credential leaks) ignoring minor stylistic complaints.
CLI Metadata
agy_get_models: Retrieve the list of active Vertex AI/Gemini models configured inagy.agy_get_agents: List available subagents and custom profiles.agy_get_changelog: Show release notes of the installed CLI.
Related MCP server: mcp2agy
π Prerequisites
Node.js: Version 18 or higher.
Antigravity CLI: Must be installed and authorized (
agycommand should be accessible in the terminal).
π Installation
Clone or copy this repository files to your local drive.
Run the automated configuration script for your OS:
Windows: Double-click
setup.batmacOS: Double-click
setup.commandLinux: Run
./setup.shin the terminal
These scripts will automatically install npm packages, verify your
agyinstallation, and generate a customized config JSON (mcp_config_generated.json) with absolute paths for easy copy-pasting.
βοΈ Configuration for MCP Clients
1. Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"antigravity-mcp": {
"command": "node",
"args": [
"/absolute/path/to/antigravity-mcp/index.js"
]
}
}
}2. Cursor (IDE)
Go to Settings -> Cursor Settings -> General -> MCP.
Click + Add Server.
Name:
antigravity-mcp.Type:
command.Command:
node "/absolute/path/to/antigravity-mcp/index.js".
Antigravity MCP Server (ΠΠ° ΡΡΡΡΠΊΠΎΠΌ) π·πΊ
ΠΡΠΎΡ ΠΏΡΠΎΠ΅ΠΊΡ ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»ΡΠ΅Ρ ΡΠΎΠ±ΠΎΠΉ ΡΠ΅ΡΠ²Π΅Ρ Model Context Protocol (MCP), ΠΊΠΎΡΠΎΡΡΠΉ Π²ΡΡΡΡΠΏΠ°Π΅Ρ Π² ΡΠΎΠ»ΠΈ ΠΌΠΎΡΡΠ° ΠΌΠ΅ΠΆΠ΄Ρ Google Antigravity CLI (agy) ΠΈ ΡΠ°Π·Π»ΠΈΡΠ½ΡΠΌΠΈ MCP-ΠΊΠ»ΠΈΠ΅Π½ΡΠ°ΠΌΠΈ (Claude Desktop, Cursor, Windsurf, Cline ΠΈ Π΄Ρ.).
β¨ ΠΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΠΈ
Π‘Π΅ΡΠ²Π΅Ρ ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²Π»ΡΠ΅Ρ 13 ΡΠΏΠ΅ΡΠΈΠ°Π»ΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½ΡΡ ΠΈΠ½ΡΡΡΡΠΌΠ΅Π½ΡΠΎΠ²:
ΠΠ°Π·ΠΎΠ²ΡΠ΅ ΠΈ ΠΏΡΠΎΠ΄ΡΠΊΡΠΈΠ²Π½ΡΠ΅
agy_task: ΠΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ»ΡΠ½ΡΡ Π·Π°ΠΏΡΠΎΡΠΎΠ² ΡΠ΅ΡΠ΅Π· Π°ΡΡΠΈΡΡΠ΅Π½ΡΠ° Antigravity.agy_chat: ΠΠΈΠ°Π»ΠΎΠ³ Ρ ΡΠΎΡ ΡΠ°Π½Π΅Π½ΠΈΠ΅ΠΌ ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ° ΠΈ ΠΏΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ΠΌ Π²Π΅ΡΠΎΠΊ ΠΏΠ΅ΡΠ΅ΠΏΠΈΡΠΊΠΈ.agy_notebook_query: ΠΠΎΠΊΠ°Π»ΡΠ½ΡΠΉ RAG-Π°Π³Π΅Π½Ρ (Π°Π½Π°Π»ΠΎΠ³ NotebookLM) ΠΏΠΎ Π²Π°ΡΠΈΠΌ Π»ΠΎΠΊΠ°Π»ΡΠ½ΡΠΌ ΠΏΠ°ΠΏΠΊΠ°ΠΌ.
ΠΠΎΠ΄ ΠΈ Git
agy_analyze: ΠΡΡ ΠΈΡΠ΅ΠΊΡΡΡΠ½ΡΠΉ Π°Π½Π°Π»ΠΈΠ· ΠΈΡΡ ΠΎΠ΄Π½ΠΎΠ³ΠΎ ΠΊΠΎΠ΄Π° ΡΠ°ΠΉΠ»ΠΎΠ² ΠΈΠ»ΠΈ ΡΠ΅Π»ΡΡ ΠΊΠ°ΡΠ°Π»ΠΎΠ³ΠΎΠ².agy_refactor/agy_generate_tests/agy_explain_error: Π£ΡΠΈΠ»ΠΈΡΡ Π΄Π»Ρ Π±ΡΡΡΡΠΎΠ³ΠΎ ΡΠ΅ΡΠ°ΠΊΡΠΎΡΠΈΠ½Π³Π°, Π³Π΅Π½Π΅ΡΠ°ΡΠΈΠΈ ΠΌΠΎΠ΄ΡΠ»ΡΠ½ΡΡ ΡΠ΅ΡΡΠΎΠ² ΠΈ ΠΎΠ±ΡΡΡΠ½Π΅Π½ΠΈΡ ΡΡΠ΅ΠΊΡΡΠ΅ΠΉΡΠΎΠ² ΠΎΡΠΈΠ±ΠΎΠΊ.
ΠΠ²ΡΠΎΠ½ΠΎΠΌΠ½ΡΠ΅ Π°Π³Π΅Π½ΡΡ
agy_autonomous_agent: ΠΠ°ΠΏΡΡΠΊ Π°Π³Π΅Π½ΡΠ° Π² ΡΠ΅ΠΆΠΈΠΌΠ΅ ΠΏΠΎΠ»Π½ΠΎΠΉ Π°Π²ΡΠΎΠ½ΠΎΠΌΠΈΠΈ (YOLO) Ρ ΡΠ»Π°Π³ΠΎΠΌ--dangerously-skip-permissions(ΠΌΠΎΠ΄Π΅Π»Ρ ΡΠ°ΠΌΠ° ΠΏΡΠΈΠ½ΠΈΠΌΠ°Π΅Ρ ΠΈ ΠΏΡΠΈΠΌΠ΅Π½ΡΠ΅Ρ ΠΏΡΠ°Π²ΠΊΠΈ ΠΊΠΎΠ΄Π° Π² ΡΠ΅ΠΆΠΈΠΌΠ΅--mode accept-edits).agy_sandbox_agent: ΠΠ°ΠΏΡΡΠΊ Π·Π°Π΄Π°Ρ Π² Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΠΉ ΠΈΠ·ΠΎΠ»ΠΈΡΠΎΠ²Π°Π½Π½ΠΎΠΉ ΠΏΠ΅ΡΠΎΡΠ½ΠΈΡΠ΅ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΡΠ»Π°Π³Π°--sandbox.agy_security_audit: Π‘ΡΡΠΎΠ³ΠΈΠΉ Π°ΡΠ΄ΠΈΡ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΠΈ ΠΊΠΎΠ΄Π° Π±Π΅Π· ΠΌΠ΅Π»ΠΊΠΈΡ ΠΏΡΠΈΠ΄ΠΈΡΠΎΠΊ ΠΊ ΡΡΠΈΠ»Ρ (ΠΏΠΎΠΈΡΠΊ OWASP-ΡΡΠ·Π²ΠΈΠΌΠΎΡΡΠ΅ΠΉ, XSS, ΠΈΠ½ΡΠ΅ΠΊΡΠΈΠΉ, ΡΠ΅ΠΊΡΠ΅ΡΠΎΠ²).
Π‘ΠΈΡΡΠ΅ΠΌΠ½ΡΠ΅ ΠΌΠ΅ΡΠ°Π΄Π°Π½Π½ΡΠ΅
agy_get_models: ΠΡΠ²ΠΎΠ΄ ΡΠΏΠΈΡΠΊΠ° Π΄ΠΎΡΡΡΠΏΠ½ΡΡ ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ.agy_get_agents: ΠΡΠ²ΠΎΠ΄ ΡΠΏΠΈΡΠΊΠ° Π½Π°ΡΡΡΠΎΠ΅Π½Π½ΡΡ ΠΏΡΠΎΡΠΈΠ»Π΅ΠΉ ΠΠ-Π°ΡΡΠΈΡΡΠ΅Π½ΡΠΎΠ².agy_get_changelog: Π§ΡΠ΅Π½ΠΈΠ΅ ΠΈΡΡΠΎΡΠΈΠΈ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠΉ CLI.
π Π£ΡΡΠ°Π½ΠΎΠ²ΠΊΠ°
Π‘ΠΊΠ°ΡΠ°ΠΉΡΠ΅ ΡΠ°ΠΉΠ»Ρ ΠΏΡΠΎΠ΅ΠΊΡΠ°.
ΠΠ°ΠΏΡΡΡΠΈΡΠ΅ ΡΠΊΡΠΈΠΏΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΎΠΉ Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ ΠΏΡΠΎΠ΅ΠΊΡΠ°:
Windows: ΠΠ°ΠΏΡΡΡΠΈΡΠ΅
setup.bat(Π΄Π²ΠΎΠΉΠ½ΡΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ)macOS: ΠΠ°ΠΏΡΡΡΠΈΡΠ΅
setup.command(Π΄Π²ΠΎΠΉΠ½ΡΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ)Linux: ΠΡΠΏΠΎΠ»Π½ΠΈΡΠ΅
./setup.shΠ² ΡΠ΅ΡΠΌΠΈΠ½Π°Π»Π΅
Π‘ΠΊΡΠΈΠΏΡΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ Π²ΡΠΏΠΎΠ»Π½ΡΡ
npm install, ΠΏΡΠΎΠ²Π΅ΡΡΡ ΡΡΠ°ΡΡΡagyΠΈ ΡΠ³Π΅Π½Π΅ΡΠΈΡΡΡΡ ΠΏΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½ΡΠΉ ΡΠ°ΠΉΠ» Π½Π°ΡΡΡΠΎΠ΅ΠΊmcp_config_generated.jsonΡ Π°Π±ΡΠΎΠ»ΡΡΠ½ΡΠΌΠΈ ΠΏΡΡΡΠΌΠΈ Π΄Π»Ρ Π²Π°ΡΠ΅ΠΉ ΠΠ‘.
π License / ΠΠΈΡΠ΅Π½Π·ΠΈΡ
MIT
Available Tools
13 toolsagy_analyzeC
Perform architectural analysis of files or folders using Antigravity.
Inputs: path (required), question (required), model.
agy_autonomous_agentA
Run the Antigravity agent in fully autonomous mode. Automatically approves modifications and runs commands.
Inputs: prompt (required), cwd, model.
agy_chatB
Engage in an interactive chat session with Antigravity, preserving or resuming conversation threads.
Inputs: prompt (required), agent, model, continueRecent, +1 more.
agy_explain_errorB
Explain compiler, runtime, or stack trace errors and provide actionable fixes.
Inputs: errorLog (required), model.
agy_generate_testsB
Generate automated unit/integration tests for the specified source file.
Inputs: filePath (required), model, testFramework.
agy_get_agentsA
Retrieve the list of all available subagents and specialized profiles in the Antigravity CLI.
Inputs: no named parameters.
agy_get_changelogA
Retrieve the official release notes and changelog history of the Antigravity CLI.
Inputs: no named parameters.
agy_get_modelsA
Retrieve the list of all available models supported by the Antigravity CLI.
Inputs: no named parameters.
agy_notebook_queryB
Run queries using project folders ingested as context (similar to Google NotebookLM).
Inputs: prompt (required), directories (required), model.
agy_refactorC
Refactor target file according to instructions. Returns code changes without conversational fluff.
Inputs: filePath (required), instructions (required), model.
agy_sandbox_agentB
Run tasks inside a restricted sandbox environment to safely investigate code or execute shell scripts.
Inputs: prompt (required), cwd, model.
agy_security_auditB
Perform a strict security audit on target files, scanning for OWASP vulnerabilities and credential leaks.
Inputs: filesToAudit (required), model.
agy_taskB
Run a task using Google Antigravity CLI (agy). The assistant can write code, analyze workspace files, and run commands.
Inputs: prompt (required), mode, yolo, agent, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes, but agy_task, agy_autonomous_agent, and agy_sandbox_agent all describe running tasks in different modes. The descriptions clarify the differences (autonomous auto-approves, sandbox is restricted), so the overlap is acceptable but not entirely absent.
All tools share the agy_ prefix, which creates a consistent brand, but the action patterns vary: some use verbs (agy_analyze, agy_refactor), some use nouns as verbs (agy_task, agy_security_audit), and three use agy_get_*. The mix is readable but not perfectly uniform.
Thirteen tools is well within the ideal range for a domain-specific CLI wrapper. Each tool maps to a distinct operation or query, and none feel redundant or filler.
The tool surface covers the core Antigravity CLI capabilities: running tasks (with various modes), interactive chat, analysis, refactoring, test generation, error explanation, security auditing, and retrieving metadata (models, agents, changelog). No obvious dead ends or missing core operations for an agent interacting with this CLI.
Maintenance
Related MCP Connectors
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Related MCP Servers
- AlicenseAqualityBmaintenanceWraps Google Antigravity CLI into 11 typed MCP tools, enabling any MCP client to invoke agy for code review, prototyping, execution, and long-running tasks.1173 PyPI26MIT
- AlicenseAqualityBmaintenanceEnables MCP-native multi-agent security audits for Google Antigravity, orchestrating subagents for 0day research, static analysis, PoC verification, exploit chaining, reporting, and code remediation.153MIT
- AlicenseBqualityCmaintenanceEnables MCP-compatible AI clients like Claude Code, Cursor, and Codex to invoke Google Antigravity's Gemini coding agent for repository-aware file operations, command execution, code review, test generation, and quota checks, while also providing a standalone dual-mode CLI.7MIT
- AlicenseBqualityCmaintenanceEnables Google Antigravity CLI to offload token-heavy workloads to local Ollama models through MCP tools for code drafting, summarization, chunked map-reduce, and JSON extraction, reducing cloud token usage.7AGPL 3.0