Connect Fine Structure to Gemini

Gemini is the platform where you need to know which Gemini you mean. The consumer app has no published way to add an arbitrary remote MCP server, while Antigravity, Gemini Enterprise and the Gemini API managed agents all accept one. Antigravity is our recommended path, because it handles the OAuth flow for you.

Before you start

Step by step

  1. Antigravity, recommended: click the three dots at the top of the agent side panel and select MCP Servers.
  2. Antigravity: click Manage MCP Servers, then View raw config to open mcp_config.json, at ~/.gemini/config/mcp_config.json globally or .agents/mcp_config.json in a workspace.
  3. Antigravity: add the entry from the config snippet below, using serverUrl. Google's docs state that url and httpUrl are not supported.
  4. Antigravity: save, then complete the sign in. It performs automatic OAuth flows with dynamic client registration, so no client ID or secret is needed.
  5. Gemini Enterprise: an administrator opens Settings & help, selects Team, then Manage team, then Connected apps, then Add MCP Server.
  6. Gemini Enterprise: enter https://finestructure.ai/api/mcp as the MCP Server URL, plus a Name and Description.
  7. Gemini Enterprise: the Authentication settings section asks for an Authorization URL, Token URL, Client ID, Client Secret and Scopes. Our endpoints are https://finestructure.ai/api/mcp/oauth/authorize and https://finestructure.ai/api/mcp/oauth/token, but clients register dynamically, so there is no static Client ID and Client Secret to enter. Contact Fine Structure support for this route.
  8. Gemini Enterprise: enable the connection once created, because a new custom MCP server connection is disabled by default and invisible to the team until enabled.
  9. Gemini API managed agents: pass a tool at interaction time with type mcp_server, a name, url set to https://finestructure.ai/api/mcp, and headers carrying Authorization set to Bearer plus your Studio MCP token.

Configuration

{
  "mcpServers": {
    "finestructure": {
      "serverUrl": "https://finestructure.ai/api/mcp"
    }
  }
}

What to watch out for

Questions people ask

Can I add Fine Structure to the Gemini app on my phone?

No. There is no published path for adding an arbitrary remote MCP server to the consumer Gemini app on any device. Antigravity, Gemini Enterprise and the Gemini API are the three routes today.

Why does Gemini Enterprise ask for a Client ID and Client Secret when other platforms do not?

Because its form models a pre registered OAuth app rather than dynamic client registration. Fine Structure registers clients on demand as public clients with PKCE, so there is no fixed secret to paste. Antigravity does the registration itself and has no such problem.

Is serverUrl really the right key for Antigravity?

Yes. Google's Antigravity MCP documentation declares remote connections with serverUrl and states that url and httpUrl are not supported, which is why this snippet differs from the Cursor one.

Vendor documentation we checked

All platforms: connect Fine Structure to any AI. Also the documentation and pricing.