Google · Antigravity IDE · Antigravity CLI (replaced Gemini CLI) · Antigravity app
Google Antigravity config file: where it lives & format
Google Antigravity MCP config file: where ~/.gemini/config/mcp_config.json lives, its format and copy-paste examples. For the full walkthrough, see the step-by-step guide.
1. Find the config file
~/.gemini/config/mcp_config.json (global).agents/mcp_config.json (workspace)
Uses "mcpServers". Remote servers must use Streamable HTTP: set "serverUrl" ("url" also works). The old Gemini CLI "httpUrl" key and legacy HTTP+SSE are not supported.
2. Add a local (stdio) server
Example: Context7, which runs locally with npx.
.agents/mcp_config.json{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}
3. Add a remote (HTTP) server
Example: Notion's hosted server. You sign in with OAuth the first time it connects.
.agents/mcp_config.json{
"mcpServers": {
"notion": {
"serverUrl": "https://mcp.notion.com/mcp"
}
}
}
4. If it won't connect
- Validate the file. One trailing comma breaks the whole file.
- Check the top-level key: VS Code uses
servers; Claude Code, Cursor and Antigravity usemcpServers; Codex uses TOML tables. - If
npxisn't found, the app may not see your shell's PATH (common with nvm). Use the full path tonpx. - Restart the agent or reload the window after editing.
Antigravity MCP config files and remote servers
Antigravity reads MCP servers from two files: the global ~/.gemini/config/mcp_config.json and the workspace <workspace>/.agents/mcp_config.json. Enabled plugins can add servers too. Both use an mcpServers map, and each entry needs exactly one transport: command for a local stdio server or serverUrl for a remote one.
Remote servers must use Streamable HTTP. Put the endpoint in serverUrl (url also works); the legacy HTTP+SSE transport and the httpUrl field are not supported. Headers such as Authorization go in a headers object, and timeoutSeconds raises the limit for long-running tools, for example 600 for ten minutes.
In Antigravity IDE, open … at the top of the agent side panel and choose MCP Servers to install from the MCP Store, or Manage MCP Servers then View raw config to edit mcp_config.json for a custom server. Python apps built with the Antigravity SDK can connect stdio, SSE or HTTP servers in code, and the SDK automatically discovers servers listed in the workspace .agents/mcp_config.json.
Source: antigravity.google · Checked Oct 24, 2026
Frequently asked questions
~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (workspace).
Guides, pricing & comparisons
How to add an MCP server to Google Antigravity
How to migrate from Gemini CLI to Antigravity CLI
Portable agent skills: one SKILL.md for every coding agent
Antigravity CLI (agy): install, sign in, modes and commands
Google Antigravity on Windows: install, WSL, sandbox and fixes
Antigravity skills: create, store and run SKILL.md skills
Fix spawn npx ENOENT when starting an MCP server
MCP connection closed: find why a server will not connect
Gemini 4 Carbon in coding tools: API pricing, Cursor and CursorBench
Google Antigravity vs Claude Code: documented features compared
Google Antigravity vs Cursor: documented features compared
Google Antigravity pricing, quota and rate limits
AGENTS.md vs CLAUDE.md vs Cursor rules
AGENTS.md templates for Laravel and Next.js
MCP servers that work in every coding agent