Skip to content
Gemini CLI

Example MCP Server for Gemini CLI

io.github.mctx-ai/example-mcp-server

Build complete Apps with our framework — study or fork this reference implementation. Covers all @mc

client:Gemini CLI transport:sse

Install Example MCP Server in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "example-mcp-server": {
      "url": "https://example-mcp-server.mctx.ai/v1.3.2"
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

Example MCP Server in other clients