MemoryRouter
Integration guide

Connect Google Antigravity to MemoryRouter

Add MemoryRouter to Antigravity as a remote MCP server, then start an agent session with the decisions you already made in another tool. One config file covers the Antigravity IDE, the Antigravity App and the Antigravity CLI.

Before you connect

Install the Antigravity IDE or the Antigravity App and sign in to the Google account you use for it. MCP servers are configured inside the app itself, so nothing extra to install, and the same configuration applies to the IDE, the App and the CLI.

Set up Google Antigravity

  1. 1

    Open the MCP configuration

    In the Antigravity IDE, open the agent side panel, click the more options menu at the top, choose MCP Servers, then Manage MCP Servers and View raw config. Antigravity keeps global servers in ~/.gemini/config/mcp_config.json and workspace servers in .agents/mcp_config.json. Use the global file when you want the vault available in every project.

  2. 2

    Add MemoryRouter as a remote server

    Add this entry under mcpServers and save the file. Antigravity connects to remote servers over Streamable HTTP, which is what MemoryRouter serves.

    {
      "mcpServers": {
        "memoryrouter": {
          "serverUrl": "https://mcp.memoryrouter.ai/mcp"
        }
      }
    }
  3. 3

    Authorize your vault

    Antigravity handles OAuth with PKCE and registers its own client automatically, so leave client ID and secret out of the config. Complete the MemoryRouter sign-in in the browser tab that opens and pick the vault Antigravity should use. Tokens are stored in ~/.gemini/antigravity/mcp_oauth_tokens.json and refresh automatically.

  4. 4

    Confirm the server is connected

    In the Antigravity App open Settings, go to Customizations, and click Refresh under Installed MCP Servers. In the Antigravity IDE use Editor settings, then Customizations. memoryrouter should be listed with its tools.

Check the connection

Ask the agent to save a unique test fact to MemoryRouter and approve the write. Then open a new Antigravity project or a new conversation and ask it to look that fact up without repeating the answer. Check the tool result it returns.

What to expect

Antigravity asks for approval before running MCP tools until you allow them, so the first saves and searches prompt you per call; add a policy rule for the server once you trust it. Remote transports must be Streamable HTTP, so legacy HTTP+SSE and an httpUrl field are rejected. When a connection stops authorizing, re-run the authorization from Manage MCP Servers.