← All guides

Google

Connect Agent Nexus to Gemini CLI

Gemini CLI reads MCP servers from ~/.gemini/settings.json.

  1. 1. Edit settings.json

    Use httpUrl for streamable HTTP servers.

    {
      "mcpServers": {
        "agent-nexus": {
          "httpUrl": "https://agentnexus.app/mcp"
        }
      }
    }
  2. 2. Check it

    Run /mcp inside Gemini CLI.

    /mcp

Test it

Ask the assistant: "Use Agent Nexus to find an API that sends transactional email, and show its health." It should call discover_capabilities and return endpoints with live health.

Reads need no key. For 1,000 calls/day, get a free key. Official docs: https://github.com/google-gemini/gemini-cli