Connect Gemini CLI to Nodes2Cloud
Gemini CLI with an API key or Code Assist licence.
Gemini CLI 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 Gemini CLI first connects, your browser opens so you can sign in to Nodes2Cloud and approve access.
Add the server
gemini mcp add -s user -t http nodes2cloud https://api.nodes2cloud.com/mcp
Or add it to settings.json
json- Global
~/.gemini/settings.json - Project
.gemini/settings.json
{
"mcpServers": {
"nodes2cloud": {
"httpUrl": "https://api.nodes2cloud.com/mcp"
}
}
}If the file already exists, add the nodes2cloud entry under mcpServers and keep what is already there.
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 the server
gemini mcp add -s user -t http -H "Authorization: Bearer n2c_pat_YOUR_TOKEN" nodes2cloud https://api.nodes2cloud.com/mcp
Or let the installer write it
The n2c-mcp installer writes the same config into Gemini CLI's config file for you. Add --print to see it without writing anything.
npx -y n2c-mcp@latest install --client gemini-cli
Every flag is on the MCP setup page.
Good to know
- Use
httpUrl: in Gemini CLI a bareurlmeans the legacy SSE transport. - Individual Google accounts moved to Antigravity CLI in June 2026.