Home › Rules › Google Antigravity MCP
Antigravity MCP: where mcp_config.json lives, the MCP Store, Figma and GitHub setup, and fixes
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:
| Scope | Path | When to use it |
|---|---|---|
| Global (you) | ~/.gemini/config/mcp_config.json | Servers you want in every project, and anything holding a personal token |
| Workspace | <workspace>/.agents/mcp_config.json | Servers 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.json | Comes with a plugin and loads while it's enabled. Each server is renamed <plugin-name>_<server-key> |
| Old path | ~/.gemini/antigravity/mcp_config.json | Still 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:
- Antigravity App: Customizations in the sidebar → Installed → scroll to MCP Servers → Copy Config File Path in the section header.
- Antigravity IDE: … at the top of the agent side panel → MCP Servers → Manage MCP Servers → View raw config. That opens the file in the editor.
- Antigravity CLI:
/mcpopens the MCP manager, which shows each server's status and connection logs and can reload them. Google's CLI settings page says the global file is the one you manage with/mcp.
Three details that catch people:
- Other tools' file names don't count. Google's plugin docs list
.mcp.jsonandmcp.jsonas files Antigravity ignores, because servers load only frommcp_config.json. A repo set up for Claude Code or Cursor won't light up Antigravity until you copy the entries across. - Same name in two files. Google's CLI settings page says that when your global and workspace files both define a server with the same name, the one already running keeps that name. Give workspace servers names that differ from your global ones.
- Comments. The CLI changelog (v1.1.24, Sep 2, 2026) says the CLI accepts
//and/* */comments and trailing commas in the file. Google doesn't say the same for the App or IDE, so plain JSON is the safe choice for a file all three read.
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.
- 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.
- 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.
- CLI: Google's docs describe no store screen. Use
/mcpfor the servers you have, or install a plugin with/pluginif it bundles the server you want.
Google's MCP page listed 77 servers in five groups on Nov 17, 2026:
| Group | Servers | A few of them |
|---|---|---|
| Databases and storage | 15 | AlloyDB, BigQuery, Cloud SQL, MongoDB, Neon, Prisma, Redis, Supabase |
| Developer tools and CI/CD | 17 | Atlassian, GitHub, GitLab Orbit, Heroku, Linear, Netlify, Postman, Vercel |
| Frontend and design | 8 | Canva, Chrome DevTools, Dart, Figma Dev Mode MCP, Lovable MCP, Miro |
| Security | 4 | CrowdStrike, Endor Labs, Splunk, Wiz |
| Analytics, AI, and cloud | 33 | Firebase, 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:
- Local (
stdio):commandis the program to start,argsits arguments,envextra environment variables for that process,cwdthe folder to start it in. - Remote:
serverUrl(orurl) is the endpoint. Google's MCP page says remote servers must use Streamable HTTP; the older HTTP+SSE transport and thehttpUrlfield aren't supported. Addheadersfor API keys or bearer tokens.
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:
{
"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
}
}
}
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.
Free. No spam. Unsubscribe anytime. See our privacy note.
Every key in it is on Google's list of documented properties:
| Property | What it does | Default |
|---|---|---|
command / args | Start a local server and pass it arguments | args empty |
serverUrl / url | Remote Streamable HTTP endpoint | None |
env / cwd | Environment variables and working folder for a local server | Empty / none |
headers | HTTP headers sent to a remote server | Empty |
authProviderType | "google_credentials" attaches Google Application Default Credentials | None |
oauth | Your own clientId (and optional clientSecret) when a server can't register Antigravity itself | None |
disabled | true stops the connection but keeps the entry | false |
enabledTools | Allowlist: only these tools are shown to the agent | All tools |
disabledTools | Denylist: these tools are hidden | Empty |
tools | Per-tool settings: eager (load up front) and background ("off" or "always") | Lazy, foreground |
timeoutSeconds | One number for both the connect limit and the per-call limit; -1 turns both off | 300 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".
- 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. - 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 eithermcp_config.json:
{
"mcpServers": {
"figma-desktop": {
"url": "http://127.0.0.1:3845/mcp"
}
}
}
- 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. - 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.
- Create a GitHub personal access token. GitHub's guide suggests the
repo,read:organdread:userscopes. - Open your global
mcp_config.json(the token is personal) and add GitHub's entry:
{
"mcpServers": {
"github": {
"serverUrl": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
- Replace
YOUR_GITHUB_PATwith 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
- Google Cloud servers: set
authProviderTypeto"google_credentials". You need Application Default Credentials on your machine first:gcloud auth application-default login, and if you'd logged in before,gcloud auth application-default set-quota-projectwith your quota project. - OAuth servers: for servers that support Client ID Metadata Documents or Dynamic Client Registration, an entry with just
serverUrlis enough; Antigravity handles the sign-in with PKCE. If a server supports neither, add anoauthobject with your ownclientIdand registerhttps://antigravity.google/oauth-callbackas its redirect URI. In the App: Customizations → Installed → Authenticate next to the server, finish in the browser, paste the code into Enter authorization code, then Submit. Google says the tokens are saved in~/.gemini/antigravity/mcp_oauth_tokens.jsonand refreshed automatically. - API keys: put them in
headers. Since CLI v1.5.9, custom headers are sent only to the configured server's own origin, even if it redirects elsewhere.
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:
- Lazy (default). When a server connects, Antigravity saves each tool's schema as a file, under
~/.gemini/antigravity/mcp/<serverName>/for the App and IDE or~/.gemini/antigravity-cli/mcp/<serverName>/for the CLI. The model only sees tool names. When it needs one, it reads that file and calls the tool through the built-incall_mcp_tool. - Eager. Set
"eager": trueundertools.<toolName>and the full schema is sent every turn asmcp_<serverName>_<toolName>, so the agent calls it in one step. Google suggests this only for tools you use constantly, since it costs tokens on every turn. Eager applies afterenabledToolsanddisabledTools, so a hidden tool stays hidden. If schemas can't be written to disk, Antigravity falls back to eager for that server. - Timeouts. By default a server gets 5 minutes to connect and list its tools, and each call gets 3 minutes. A positive
timeoutSecondsreplaces both,-1turns both off, and0keeps the defaults. A small number can stop a slow server from connecting at all, because the same value covers startup. - Context budget. Google's rules page says rules get their own 20,000-token budget, separate from the one plugins, skills and MCP share, so a long rules file no longer pushes MCP tools out.
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:
{
"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
- Server never shows up. The file is named
.mcp.jsonormcp.json(ignored), or sits in.gemini/instead of.agents/or~/.gemini/config/. Use Copy Config File Path to see where Antigravity is looking. - 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.
- "Error: serverUrl or command must be specified". GitHub's guide lists this one. Each entry needs
command, orserverUrl/url. GitHub's fix is to useserverUrl; on current buildsurlis accepted too. - Remote server won't connect. If the server's own docs call the address an SSE endpoint (often one ending in
/sse), or you usedhttpUrl, that's the older transport Google says isn't supported. Look for the server's Streamable HTTP endpoint. "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 incommand. In the App, Fix with Agent on the Customizations page (v2.23.0) can find and install what's missing.MCP tool call to server "…" timed out after 3m0s. The 3-minute per-call limit. RaisetimeoutSecondsfor that server (600 = 10 minutes).- 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. - 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. - OAuth sign-in fails or keeps dropping. Fixed along the way:
registration failed with status 200(CLI v1.2.15),Invalid PKCE code_verifierwhen 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. - 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.
- A tool is missing. Check
enabledTools(when set, everything else is hidden) anddisabledTools. Marking a tool eager doesn't bring back a tool those lists hide. - 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
- Config path. Google's docs:
~/.gemini/config/mcp_config.json. GitHub's guide:~/.gemini/antigravity/mcp_config.json(Windows:C:\Users\<USERNAME>\.gemini\antigravity\mcp_config.json). The CLI changelog calls the second one legacy. Use Copy Config File Path to see your build's real one. urlvsserverUrl. Google's MCP page and changelog accept both. Google's Gemini CLI migration guide still says to renameurltoserverUrland its example uses an/sseaddress withenvon a remote server, while the MCP page says SSE isn't supported and listsenvfor local servers. GitHub's guide saysurlcauses an error.- Figma. Google's store lists "Figma Dev Mode MCP", and Google's getting-started page mentions Figma sign-in for App starter prompts. Figma's catalog lists Antigravity as local server only, read-only. We followed Figma's docs for the worked example.
- How many tools. GitHub's guide says "Antigravity recommends keeping total enabled tools under 50". We didn't find that number in Google's docs; CLI v1.1.12 raised the per-session limit on tool declarations, and lazy loading keeps schemas out of context.
- Comments in the file. Documented for the CLI only (v1.1.24).
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
- Google Antigravity plugins (install, marketplace, plugin vs skill)
- Google Antigravity skills (skills folder, SKILL.md, workflows vs skills)
- Google Antigravity rules (examples, triggers, where the files go)
- Antigravity CLI vs Gemini CLI (who uses which, commands, settings, how to switch)
- Google Antigravity subagents (custom agents, agents folder, examples)
- Antigravity Agent Manager (now the Antigravity App) (where it went in 2.0, shortcuts, plans, fixes)
- Google Antigravity limits and AI credits (free tier, quotas, AI credits)
- Antigravity vs Claude Code vs Codex (prices, limits, rules files)
- GEMINI.md examples (Gemini CLI and Antigravity)
- Free rules file generator
Sources
- Google Antigravity docs: Model Context Protocol (MCP)
- Google Antigravity docs: Settings (where config files live)
- Google Antigravity docs: Customization discovery
- Google Antigravity docs: Permissions
- Google Antigravity docs: Plugins
- Google Antigravity docs: Build plugins (MCP servers, ignored files)
- Google Antigravity docs: Rules (context budget)
- Google Antigravity docs: Migrating from Gemini CLI
- Google Antigravity changelog
- Figma: MCP catalog
- Figma developer docs: Set up the desktop server
- Figma developer docs: Tools and prompts
- Figma developer docs: Known issues with MCP clients
- GitHub: Installing GitHub MCP Server in Antigravity
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].