Home › Rules › Google Antigravity MCP

Antigravity MCP: where mcp_config.json lives, the MCP Store, Figma and GitHub setup, and fixes

From Google's Antigravity docs (MCP, settings, permissions, plugins, changelog), Figma's MCP docs and GitHub's Antigravity install guide, checked Nov 17, 2026. Sources below.

Short answer: Antigravity reads MCP servers from ~/.​gemini/​config/​mcp_​config.​json (every project) and .​agents/​mcp_​config.​json (one project). The easy way in is the store: in the App, Customizations → Installed → Add MCP Server (+); in the IDE, … → MCP Servers at the top of the agent side panel. For anything not listed, add an entry under mcpServers with command for a local server or serverUrl (or url) for a remote Streamable HTTP server. In the CLI, type /​mcp. Figma connects through the Figma desktop app at http://​127.​0.​0.​1:3845/​mcp; GitHub's own guide uses its hosted server with a personal access token.

MCP (Model Context Protocol) is how the agent talks to outside tools: your database, your issue tracker, a design file. If you've already read Google Antigravity plugins, you've seen MCP servers arrive inside plugins. This page is about the servers themselves: the file, the store, the settings Google documents, two full examples, and the errors people search for most.

Where the MCP config file is

All three Antigravity products (App, CLI and IDE) use the same file name, mcp_​config.​json, and the same JSON layout. What changes is which copy gets read:

ScopePathWhen to use it
Global (you)~/.​gemini/​config/​mcp_​config.​jsonServers you want in every project, and anything holding a personal token
Workspace<workspace>/.​agents/​mcp_​config.​jsonServers one project needs. Google's discovery page says files in .​agents/ are meant to be committed and shared with your team
Plugin<plugin-root>/​mcp_​config.​jsonComes with a plugin and loads while it's enabled. Each server is renamed <plugin-name>_<server-key>
Old path~/.​gemini/​antigravity/​mcp_​config.​jsonStill shown in GitHub's guide. Antigravity CLI's changelog (v1.0.3) calls it the legacy path and names config/​mcp_​config.​json as the migrated one

You rarely need to type the path yourself:

Three details that catch people:

The MCP Store (and the App's Add MCP Server list)

Google calls it the MCP Store in the IDE. In the App the same idea is a searchable list behind the Add MCP Server (+) button. Either way, you pick a server, click once, and Antigravity writes the entry for you.

  1. App: Customizations → Installed → MCP Servers → Add MCP Server (+). Search or scroll, then click Add. To restart, turn off or remove one later, click More actions (⋮) next to it and choose Restart, Disable or Delete.
  2. IDE: … at the top of the agent side panel → MCP Servers. Hover over a server and click Install (or open it for details first), then follow any prompts. Its tools and resources are then available to the agent.
  3. CLI: Google's docs describe no store screen. Use /​mcp for the servers you have, or install a plugin with /​plugin if it bundles the server you want.

Google's MCP page listed 77 servers in five groups on Nov 17, 2026:

GroupServersA few of them
Databases and storage15AlloyDB, BigQuery, Cloud SQL, MongoDB, Neon, Prisma, Redis, Supabase
Developer tools and CI/CD17Atlassian, GitHub, GitLab Orbit, Heroku, Linear, Netlify, Postman, Vercel
Frontend and design8Canva, Chrome DevTools, Dart, Figma Dev Mode MCP, Lovable MCP, Miro
Security4CrowdStrike, Endor Labs, Splunk, Wiz
Analytics, AI, and cloud33Firebase, Google Developer Knowledge, Notion, PayPal, PostHog, Stripe

Google's own worked example is Google Developer Knowledge. It lets the agent search current Google developer docs (Android, Firebase, Google Cloud, Maps and the Antigravity docs) through three tools: search_​documents, get_​documents and answer_​query. It signs in with your Google account, so there's no API key to paste.

Store servers vs plugin servers. A Marketplace plugin can carry MCP servers too. If it needs an API key, Google's docs say it stays disabled until you fill in its variables (the CLI prints "It is disabled until its MCP servers are configured: open /plugin and turn it on to fill them in."). If it uses OAuth only, it installs switched on and opens a browser sign-in when the server connects. The plugins page covers that side.

Add a server by hand

When a server isn't in the store, you write the entry yourself. The file has one top-level key, mcpServers, and each server sits under a name you choose. Every entry needs exactly one way to reach the server:

Here's a project file that uses both kinds and no secrets, so it's safe to commit. The two servers are the Figma and GitHub examples from later on this page:

Our example (VibeKits): .agents/mcp_config.json
{
  "mcpServers": {
    "figma-desktop": {
      "url": "http://127.0.0.1:3845/mcp",
      "enabledTools": [
        "get_design_context",
        "get_variable_defs",
        "get_screenshot",
        "get_metadata"
      ]
    },
    "github": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-p", "127.0.0.1:8085:8085",
        "-e", "GITHUB_OAUTH_CALLBACK_PORT",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_OAUTH_CALLBACK_PORT": "8085"
      },
      "disabledTools": ["push_files"],
      "timeoutSeconds": 600
    }
  }
}

Every key in it is on Google's list of documented properties:

PropertyWhat it doesDefault
command / argsStart a local server and pass it argumentsargs empty
serverUrl / urlRemote Streamable HTTP endpointNone
env / cwdEnvironment variables and working folder for a local serverEmpty / none
headersHTTP headers sent to a remote serverEmpty
authProviderType"google_​credentials" attaches Google Application Default CredentialsNone
oauthYour own clientId (and optional clientSecret) when a server can't register Antigravity itselfNone
disabledtrue stops the connection but keeps the entryfalse
enabledToolsAllowlist: only these tools are shown to the agentAll tools
disabledToolsDenylist: these tools are hiddenEmpty
toolsPer-tool settings: eager (load up front) and background ("off" or "always")Lazy, foreground
timeoutSecondsOne number for both the connect limit and the per-call limit; -1 turns both off300 s connect, 180 s per call

After saving, restart the server: ⋮ → Restart in the App, the reload in /​mcp in the CLI. GitHub's guide tells IDE users to close and reopen Antigravity.

agy mcp commands. The CLI changelog (v1.1.16, Aug 20, 2026) added mcp subcommands, add, remove, list, enable and disable, that edit your user-level file without opening it, for both local and HTTP servers through --type, --env and --header. The CLI commands page we checked doesn't spell out the full syntax, so we don't guess at it here; editing the file works the same.

Don't put tokens in the project file. One more argument for the global file: a header like Authorization lives in plain text, and files in .​agents/ usually go into git. Plugin authors get a way around this (variables, which prompt for the key at setup), but Google documents that for plugin files, not for your own.

Worked example: Figma

"antigravity figma mcp" is one of the most-searched MCP setups, and the docs from Google and Figma don't line up neatly, so here's what each one says.

What Figma supports. Figma's MCP catalog lists Google Antigravity with two notes: local server only and read-only access. Figma's developer docs say only clients in that catalog can connect. "Local" means the desktop server, which runs inside the Figma desktop app and needs a Dev or Full seat on a Professional, Education, Organization, Government or Enterprise plan. Figma's hosted server at https://​mcp.​figma.​com/​mcp, the one that can write to the canvas, isn't listed for Antigravity. Google's store does include an entry called "Figma Dev Mode MCP".

  1. Turn the server on in Figma. Open the Figma desktop app (updated), open a Design file, and with nothing selected switch to Dev Mode with the toolbar toggle or Shift D. In the right sidebar's MCP server section, click Enable desktop MCP server. Figma says it then runs at http://​127.​0.​0.​1:3845/​mcp.
  2. Add it to Antigravity. Figma gives this config for clients without their own steps. Antigravity accepts url (Google's MCP page; added in App v2.1.4, IDE v2.1.1 and CLI v1.0.5), so it works unchanged in either mcp_​config.​json:
Figma's desktop server config (from Figma's docs)
{
  "mcpServers": {
    "figma-desktop": {
      "url": "http://127.0.0.1:3845/mcp"
    }
  }
}
  1. Reload and check. Restart the server (App ⋮ → Restart, CLI /​mcp). Figma says you should see a connection and a list of tools; if not, check the server is still switched on in the Figma app.
  2. Prompt with a selection. Select a frame in Figma and ask, for example, "Generate my Figma selection using components from src/components/ui." Figma notes that prompting with the current selection only works with the desktop server. You can also right-click a layer, choose Copy link to selection and paste the link; the agent pulls the node ID from it.

The read tools that matter most for code: get_​design_​context (design context and code for the selection, React and Tailwind unless you ask for another framework), get_​variable_​defs (colors, spacing and type variables), get_​screenshot (so the agent can see the layout; costs more tokens) and get_​metadata (a light XML outline, for frames too big to send whole). Figma marks some tools remote-only, such as download_​assets, search_​design_​system and whoami, so the desktop server won't offer them. That's why our project example above limits figma-desktop with enabledTools.

When Figma calls hang. Figma's troubleshooting pages say a request that hangs or comes back incomplete usually means the selection is too large; pick one card, header or sidebar instead. They say "lost connection to MCP server" and 500 errors usually come from the client side, not Figma's server, so retry with a smaller selection or restart the server.

Worked example: GitHub

GitHub keeps its own Antigravity page in the github-mcp-server repo (first added Dec 16, 2025, last changed Jun 26, 2026). It recommends skipping the store: it says the store install "currently has known issues (often resulting in Docker errors)" and that a direct remote connection is more reliable.

  1. Create a GitHub personal access token. GitHub's guide suggests the repo, read:org and read:user scopes.
  2. Open your global mcp_​config.​json (the token is personal) and add GitHub's entry:
GitHub's remote server entry (from GitHub's Antigravity guide)
{
  "mcpServers": {
    "github": {
      "serverUrl": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer YOUR_GITHUB_PAT"
      }
    }
  }
}
  1. Replace YOUR_​GITHUB_​PAT with the token, restart, and open the MCP Servers panel. GitHub says "github" should show with its tools, and that the status dot may not turn green right away in some versions even though the tools work.

No token in a file? GitHub's other option runs the server locally in Docker and signs in through your browser with OAuth on first use, keeping the token in memory only. That's the github entry in our project example: it needs Docker Desktop installed and running, and on your PATH. GitHub also shows a token-based Docker variant using GITHUB_​PERSONAL_​ACCESS_​TOKEN in env, which takes precedence over OAuth.

Tools GitHub names in the guide include get_​file_​contents, search_​repositories, create_​or_​update_​file, create_​repository and push_​files. The write tools are the ones to fence off; see permissions below.

Matching kit: MVP Spec-to-Build Pack ($7)

The free rules set the boundaries. The MVP pack gives you the build order: a 1-page spec to fill in first, then 7 prompts in sequence (skeleton, review, login, database, security, one feature at a time, polish), plus a "did I leak user data?" checklist.

See the MVP Spec-to-Build Pack ($7) →

Instant download. 7-day refund, no questions asked.

Signing in: Google credentials, OAuth, headers

Tool loading, timeouts and context

A big server can list dozens of tools. Antigravity doesn't send all of them to the model by default:

Permissions: what runs without asking

MCP tools you haven't configured run in Ask mode: the agent stops and asks before each call. In the App's presets, MCP is "Ask" under Request Review, Default and Auto, and "Allowed" only under Turbo. You can change that per tool with three patterns: mcp(server/​tool) for one tool, mcp(server/*) for every tool on a server, and mcp(*) for everything. When rules conflict, Deny wins over Ask, and Ask wins over Allow. So don't put mcp(github/*) in Ask and expect a single GitHub tool in Allow to skip the prompt.

The CLI keeps these lists in ~/.​gemini/​antigravity-cli/​settings.​json; the App shows the same rule strings in Settings. A setup for the two servers on this page:

Our example (VibeKits): MCP permission rules
{
  "permissions": {
    "allow": [
      "mcp(figma-desktop/*)",
      "mcp(github/get_file_contents)",
      "mcp(github/search_repositories)"
    ],
    "deny": [
      "mcp(github/push_files)"
    ],
    "ask": [
      "mcp(github/create_or_update_file)"
    ]
  }
}

Anything not listed (the other GitHub write tools, for example) still falls back to Ask. When a prompt card appears, Google says you can edit the target before clicking Allow to widen the grant for the rest of that turn. CLI v1.5.8 fixed MCP deny and ask rules being skipped for tools marked eager, so update before you rely on them for eager tools.

Common errors and fixes

  1. Server never shows up. The file is named .​mcp.​json or mcp.​json (ignored), or sits in .​gemini/ instead of .​agents/ or ~/.​gemini/​config/. Use Copy Config File Path to see where Antigravity is looking.
  2. One bad entry. Fix the JSON. App v2.9.1 fixed one invalid entry stopping every other server from loading, so on an older build a single typo can hide them all.
  3. "Error: serverUrl or command must be specified". GitHub's guide lists this one. Each entry needs command, or serverUrl/url. GitHub's fix is to use serverUrl; on current builds url is accepted too.
  4. Remote server won't connect. If the server's own docs call the address an SSE endpoint (often one ending in /​sse), or you used httpUrl, that's the older transport Google says isn't supported. Look for the server's Streamable HTTP endpoint.
  5. "uvx" is not installed or not on PATH, install it or set "command" to its full path. That's the CLI's wording since v1.5.0; App v2.30.0 also names the missing command. Install it or give the full path in command. In the App, Fix with Agent on the Customizations page (v2.23.0) can find and install what's missing.
  6. MCP tool call to server "…" timed out after 3m0s. The 3-minute per-call limit. Raise timeoutSeconds for that server (600 = 10 minutes).
  7. Shows Ready, but calls fail with client is closing: EOF. The server process died. CLI v1.4.1 now marks it Error instead of Ready; restart it from /​mcp.
  8. Restart leaves it stopped (Failed to stop existing instances for reload: ... signal: killed). Fixed in CLI v1.3.1 and App v2.23.0. Update.
  9. OAuth sign-in fails or keeps dropping. Fixed along the way: registration failed with status 200 (CLI v1.2.15), Invalid PKCE code_​verifier when the server reconnected mid sign-in (v1.5.2), being signed out about an hour after signing in (v1.5.8), and machines with no IPv4 loopback (v1.5.9). Update the CLI before you dig further.
  10. A server with your name is missing. The same name is in your global and workspace files, and the running one kept it. Rename one.
  11. A tool is missing. Check enabledTools (when set, everything else is hidden) and disabledTools. Marking a tool eager doesn't bring back a tool those lists hide.
  12. GitHub from the store gives Docker errors. GitHub's guide says this is a known store issue; use the remote entry above, or make sure Docker Desktop is running for the local one.

Where the docs disagree

FAQ

Where is the Antigravity MCP config file?

Google's docs put it in two places: ~/.gemini/config/mcp_config.json in your home folder for servers you want in every project, and .agents/mcp_config.json inside a project for that project only. Plugins can carry a third mcp_config.json in their own folder. In the Antigravity App, Copy Config File Path in the MCP Servers section gives you the exact path. Older guides, including GitHub's, still show ~/.gemini/antigravity/mcp_config.json.

Does Antigravity have an MCP Store?

Yes. In Antigravity IDE it is called the MCP Store: click the three dots at the top of the agent side panel and choose MCP Servers. In the Antigravity App, go to Customizations, then Installed, then click Add MCP Server (+) in the MCP Servers section. Google's list had 77 servers in five groups when we checked, including GitHub, Figma Dev Mode MCP, Supabase, Firebase and Chrome DevTools. Antigravity CLI has no store screen; you use /mcp or edit the file.

How do I add a custom MCP server to Antigravity?

Open mcp_config.json (Copy Config File Path in the App, Manage MCP Servers then View raw config in the IDE, or the file itself for the CLI) and add an entry under mcpServers. A local server needs command and usually args; a remote server needs serverUrl or url pointing at a Streamable HTTP endpoint. Save, then restart the server from its menu or reload it in /mcp.

How do I connect Figma to Antigravity?

Figma's own catalog lists Antigravity as supported through the desktop server only, with read access. Turn on the desktop MCP server in the Figma desktop app (Dev Mode, MCP server section), then add a server with the url http://127.0.0.1:3845/mcp to mcp_config.json. The desktop server needs a Dev or Full seat on a paid Figma plan. Then select a frame in Figma and ask the agent to build it.

How do I set up the GitHub MCP server in Antigravity?

GitHub's own Antigravity guide recommends its hosted server: add an entry with serverUrl https://api.githubcopilot.com/mcp/ and an Authorization header of Bearer plus a GitHub personal access token, then restart Antigravity. It says the MCP Store install often ends in Docker errors. Keep the token in your global file, not in a project file you commit.

Why is my MCP server not working in Antigravity?

Check the file name first: Antigravity only reads mcp_config.json, so a .mcp.json or mcp.json from another tool is ignored. Then check the JSON, that each entry has command or serverUrl, that a remote server speaks Streamable HTTP rather than the older SSE transport, and that the command is installed. Slow tools stop at 3 minutes per call unless you raise timeoutSeconds.

Related setups

Plugins are the other way MCP servers arrive: Google Antigravity plugins covers installs, the Marketplace and credential prompts. Antigravity skills pair well with a server, the way Figma and Google pair skills with theirs. Coming from Gemini CLI, where servers lived in settings.​json? See Antigravity CLI vs Gemini CLI. MCP tools still follow your project rules:

Next step for Antigravity: Agent Skills

Skills are folders your AI coding agent loads only when the job comes up, and Claude Code, Cursor and OpenAI Codex all read the same SKILL.md format. The Vibe Coder Skills Pack ($9) is 6 ready-to-copy SKILL.md skills (fix-one-bug, stop-the-loop, leak-check, ship-check, explain-project, builder-handoff) for Claude Code, Cursor and OpenAI Codex. Also included in the 6-kit bundle.

Get the Skills Pack for $9 on Gumroad → See what's inside

One .zip of skill folders plus one markdown file. 7-day refund, no questions asked.

Best value

All 6 kits for $29 — or $20.30 with code WELCOME30 (through Nov 30)

MCP gives the agent your tools and data. The kits give it the plan for a whole project, step by step: a small game, a Discord bot, an email-triage agent, an MVP, or a cleanup of messy code.

Get all 6 kits for $29 → See what's in each kit

$29 instead of $48 for the six kits bought separately; WELCOME30 takes 30% off that at checkout ($20.30). Instant download from Gumroad. 7-day refund, no questions asked.

Related

Sources

Every path, setting, menu name, version number and error message here was checked Nov 17, 2026 on Google's own Antigravity docs and changelog, Figma's MCP docs and GitHub's Antigravity install guide. Antigravity ships updates every few days and the MCP Store list changes with them, so check Google's MCP page if a menu looks different. If something here no longer matches, tell us at [email protected].

Free rules starter pack for Cursor, Claude Code, Codex and Antigravity

One shared AGENTS.md that works across Cursor, Claude Code, Codex, Copilot and Antigravity, plus database and test rules in each tool's format. Unzip it into your project and fill in two sections. I'll email you the link.

After that, an occasional email when I publish a new guide or rules file.

Free. No spam. Unsubscribe anytime. See our privacy note.