Sachin Uppal

MJO · Connect guide · Google Antigravity

How to connect an MCP server to Google Antigravity

By Sachin Uppal · 26 November 2026 · 3 min read · vendor docs checked 26 Nov 2026

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

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

Steps in the Antigravity IDE

  1. Click the … at the top of the agent side panel and select MCP Servers.
  2. If the server is listed in the store, hover over it and click Install, then follow the prompts. Otherwise continue.
  3. Click Manage MCP Servers, then View raw config.
  4. Add your server under mcpServers, using serverUrl (or url) for the address:
    {
      "mcpServers": {
        "crushedwithit": {
          "serverUrl": "<your server URL>"
        }
      }
    }
    If the provider gave you an API key instead of a sign-in, add a headers object, e.g. "Authorization": "Bearer YOUR_API_TOKEN".
  5. 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

  1. Click Customizations in the sidebar, then Installed.
  2. In the MCP Servers section, click Add MCP Server (+).
  3. 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.
  4. 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 seeFixBasis
Remote server won't connectConfirm it uses Streamable HTTP, not SSE, and that you used serverUrl or url, not httpUrl.Antigravity docs
Server shows UnauthorizedUse 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 IDEGoogle says CIMD support needs IDE version 2.6.0 or later.Antigravity docs
Tool doesn't runIt 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

Sources

Screenshots are being added.

Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).

Cite as: Uppal, S. (2026). How to connect an MCP server to Google Antigravity. sachinuppal.com.