MJO · Connect guide · Google Antigravity
How to connect an MCP server to Google Antigravity
Google Antigravity reads MCP servers from a file called mcp_config.json. You can reach it from the MCP Store in the IDE or from Customizations in the Antigravity App. A remote server must use Streamable HTTP.
For MCP Journey Optimization, Antigravity is a config-file client: the Install stage means editing JSON, so a server that publishes a ready-to-paste block loses fewer people. The comparison with every other client is in the field guide.
What you need
- Antigravity (the IDE or the App).
- A remote server that speaks Streamable HTTP. Google's page says the legacy HTTP+SSE transport and the
httpUrlfield are not supported. - The server address, e.g. for the CrushedWithIt server,
<your server URL>.
Steps in the Antigravity IDE
- Click the … at the top of the agent side panel and select MCP Servers.
- If the server is listed in the store, hover over it and click Install, then follow the prompts. Otherwise continue.
- Click Manage MCP Servers, then View raw config.
- Add your server under
mcpServers, usingserverUrl(orurl) for the address:
If the provider gave you an API key instead of a sign-in, add a{ "mcpServers": { "crushedwithit": { "serverUrl": "<your server URL>" } } }headersobject, e.g."Authorization": "Bearer YOUR_API_TOKEN". - Save the file. For a server that supports OAuth, Google's page says Antigravity handles the sign-in automatically (PKCE) when the server supports Client ID Metadata Documents (CIMD) or Dynamic Client Registration (DCR).
The file lives at ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (workspace).
Steps in the Antigravity App
- Click Customizations in the sidebar, then Installed.
- In the MCP Servers section, click Add MCP Server (+).
- Search for a server and click Add. For a custom server, use Copy Config File Path in the section header to find the file and add the JSON above.
- If the server shows Unauthorized, click Authenticate and paste the authorization code when asked.
If your provider needs pre-registered OAuth credentials, add an oauth object with clientId (and clientSecret if issued) and register https://antigravity.google/oauth-callback as the redirect URI.
Try it
Unconfigured MCP tools run in Ask mode, so you will be asked before each call. Start read-only. With the CrushedWithIt server as the example:
Use the crushedwithit tools to show my account and how many credits I can spend now.
For any server: "List the tools from <server name> and call the simplest read-only one."
Common errors and fixes
| What you see | Fix | Basis |
|---|---|---|
| Remote server won't connect | Confirm it uses Streamable HTTP, not SSE, and that you used serverUrl or url, not httpUrl. | Antigravity docs |
| Server shows Unauthorized | Use Authenticate in the App and complete the flow. | Antigravity docs |
| "timed out after 3m0s" | Defaults are 300 s to connect and list tools and 180 s per tool call. Raise timeoutSeconds for that server. | Antigravity docs |
| CIMD sign-in not working in the IDE | Google says CIMD support needs IDE version 2.6.0 or later. | Antigravity docs |
| Tool doesn't run | It may be waiting for approval in Ask mode, or hidden by enabledTools / disabledTools. | Antigravity docs |
In the CLI, /mcp opens the MCP Manager with server status and connection logs.
How to disconnect
- App: in the MCP Servers section, click More actions (⋮) and choose Disable or Delete.
- Either: set
"disabled": trueon the server's entry to keep it but switch it off. - IDE: Google's page doesn't describe a delete button for the IDE. Removing the entry from
mcp_config.jsonis the evident route, but the page does not state it. - OAuth tokens are stored in
~/.gemini/antigravity/mcp_oauth_tokens.json.
Sources
- Google Antigravity: MCP, checked 26 Nov 2026.
- MCP authorization specification.
Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).