Free toolGenerate .mcp.json configs for Claude Code, Cursor & Codex →
A

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.

Step-by-step guideHow to add an MCP server to Google Antigravity →The full walkthrough with verification and troubleshooting. This page is the quick config reference.

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 use mcpServers; Codex uses TOML tables.
  • If npx isn't found, the app may not see your shell's PATH (common with nvm). Use the full path to npx.
  • Restart the agent or reload the window after editing.
Generate your config →

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