Connect Antigravity to Nodes2Cloud
Google Antigravity's app, IDE and agy CLI share one config file.
Antigravity talks to the Nodes2Cloud MCP server at https://api.nodes2cloud.com/mcp over Streamable HTTP. Once connected, your agent can read the node catalogue, write and check workflows, and request deploys that wait for your approval by default.
Sign in with your browser (recommended)
No token to copy. When Antigravity first connects, your browser opens so you can sign in to Nodes2Cloud and approve access.
Add it to mcp_config.json
json- Global
~/.gemini/config/mcp_config.json
{
"mcpServers": {
"nodes2cloud": {
"serverUrl": "https://api.nodes2cloud.com/mcp"
}
}
}If the file already exists, add the nodes2cloud entry under mcpServers and keep what is already there.
Then sign in
- Open Settings → Customizations and choose Authenticate next to nodes2cloud.
- Approve access in the browser, then paste the code it shows back into Antigravity.
Use a Personal Access Token
For headless machines and CI, or if you would rather not sign in through the browser. Create one in the editor under Integrations → MCP server → Headless & CI Tokens, then Generate Token. Replace n2c_pat_YOUR_TOKEN below with it.
Treat the token like a password and keep it out of source control.
Add it to mcp_config.json
json- Global
~/.gemini/config/mcp_config.json
{
"mcpServers": {
"nodes2cloud": {
"serverUrl": "https://api.nodes2cloud.com/mcp",
"headers": {
"Authorization": "Bearer n2c_pat_YOUR_TOKEN"
}
}
}
}If the file already exists, add the nodes2cloud entry under mcpServers and keep what is already there.
Or let the installer write it
The n2c-mcp installer writes the same config into Antigravity's config file for you. Add --print to see it without writing anything.
npx -y n2c-mcp@latest install --client antigravity
Every flag is on the MCP setup page.
Good to know
- The field is
serverUrl; Antigravity ignoreshttpUrl. - Paste the token itself: Antigravity doesn't expand environment variables in headers.
- Older installs read ~/.gemini/antigravity/mcp_config.json instead.