How to Connect Antigravity to MewCP
Add MewCP to Antigravity once, and Antigravity's agent can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. Antigravity connects to MewCP directly over HTTP and signs in with your MewCP account, so there is nothing to install and no API key to paste.
Antigravity 2.0, the Antigravity IDE and the Antigravity CLI all read the same mcp_config.json, so one setup covers all three.
Before you start
Set up MewCP
-
Open the raw config
Where you use Antigravity How to open the file IDE Click … at the top of the agent side panel, select MCP Servers → Manage MCP Servers → View raw config CLI or Antigravity 2.0 Open ~/.gemini/config/mcp_config.jsonin a text editorThat file applies to every project. To add MewCP to one project only, use
.agents/mcp_config.jsoninside it instead. Create the file if it does not exist. -
Add the server
Remote servers use the
serverUrlfield:CodeAlready have an
mcpServerssection? Add only the"mewcp": { ... }entry inside it. Guides for other apps useurl, which Antigravity does not read. -
Sign in to MewCP
Save the file. Sign in to MewCP and click Allow access when the browser window opens.
If the window does not open, load the server first: in Antigravity 2.0, open Settings → Customizations and click the refresh button under Installed MCP Servers. In the CLI, type
/mcpand reload the server configuration.
This is the entire configuration. One entry reaches every app you have connected, and connecting another app later needs no change here.
Check it works
- Antigravity 2.0: MewCP appears under Settings → Customizations → Installed MCP Servers, switched on.
- IDE: MewCP appears under … → MCP Servers.
- CLI: type
/mcpand check MewCP shows as active.
You will see four tools, not the tools of every app: search, get_schema, manage_connections and call_tool. That is expected. The agent uses them to find and run the right tool for whatever you ask. See How MewCP works.
Then ask the agent for something from an app you have connected:
Code
Antigravity asks for your approval before each MCP tool call by default. To let MewCP's tools run without asking, allow mcp(mewcp/*) in your permissions policy.
Use an API key instead
To send an API key from Dashboard → API Keys instead of signing in, add a header to the entry. Replace API_KEY with your key:
Code
Antigravity stores the key as plain text in this file. Keep mcp_config.json out of version control, especially a project's .agents/mcp_config.json.
Troubleshooting
MewCP is not listed
- Check the entry uses
serverUrl, noturlorhttpUrl. - Check the file is valid JSON. A missing comma, or a trailing comma after the last entry, stops it from loading.
- Older Antigravity versions kept the file at
~/.gemini/antigravity/mcp_config.json. In the IDE, View raw config always opens the file your version reads, so edit that one.
MewCP shows as disconnected
- With sign-in, Antigravity has not signed in yet or the sign-in has expired. Click Authenticate next to MewCP and sign in again. See OAuth Sign-In for errors on the sign-in page.
- With an API key, check the header reads
Bearerfollowed by the whole key, which starts withmewcp_proj_. - A
403that says your plan's billing period has ended means your MewCP plan needs renewing under Billing.
In the CLI, /mcp shows each server's connection log, which includes the error MewCP returned.
MewCP is listed but its tools never run
Check MewCP is switched on under Installed MCP Servers, and that "disabled": true or a disabledTools list is not set on the mewcp entry.
Last updated on 29 November 2026.