Antigravity is Google's AI-first IDE, designed for agentic software development with deep integration of Gemini models. It stores MCP server configuration at ~/.gemini/antigravity/mcp_config.json, using the standard mcpServers root key in JSON format — compatible with the canonical format used by Claude Desktop and other major apps. The config path sits under the ~/.gemini directory alongside Gemini CLI settings, reflecting the shared toolchain between Antigravity and other Google AI developer tools. MCP servers give Antigravity's AI agent access to external tools and resources during coding sessions, enabling actions like querying databases, searching documentation, and managing files. The getmcp CLI detects Antigravity by checking for the ~/.gemini/antigravity directory.
Quick Install with getmcp
The fastest way to install MCP servers in Antigravity is with the getmcp CLI:
npx @getmcp/cli add <server-id>
Configuration Format
Format
JSON
Root Key
mcpServers
Global Config (macOS / Linux)
~/.gemini/antigravity/mcp_config.json
Global Config (Windows)
%UserProfile%\.gemini\antigravity\mcp_config.json
Prerequisites
•Antigravity IDE installed (see antigravity.google for installation instructions)
•A Google account with Gemini API access
•Node.js 18 or higher for running npx-based servers
•Python 3.10+ if installing Python-based servers
Popular Servers for Antigravity
Troubleshooting
▸Config directory not found: Antigravity creates ~/.gemini/antigravity/ on first launch. Open Antigravity at least once before adding MCP servers.
▸Server not loading after config change: Restart Antigravity after editing mcp_config.json. The config is read at IDE startup.
▸Conflict with Gemini CLI settings: Antigravity and Gemini CLI both live under ~/.gemini but in separate subdirectories. Changes to ~/.gemini/antigravity/mcp_config.json do not affect Gemini CLI's ~/.gemini/settings.json and vice versa.
▸Tool calls failing with permission errors: Check that the MCP server binary has execute permission and that its required environment variables are set in the env block of the config entry.