Skip to content
Gemini CLI

mcp-hub for Gemini CLI

io.github.ni-c/mcp-hub

Many stdio MCP servers from one container, published over HTTPS with OAuth 2.1 for any MCP client

client:Gemini CLI transport:stdio runtime:npm

Install mcp-hub in Gemini CLI

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-hub": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/mcp-hub"
      ],
      "env": {
        "CONFIG_PATH": "<CONFIG_PATH>",
        "IDLE_TIMEOUT_MINUTES": "<IDLE_TIMEOUT_MINUTES>",
        "TOOL_CACHE_PATH": "<TOOL_CACHE_PATH>",
        "LOG_FILE": "<LOG_FILE>"
      }
    }
  }
}

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

mcp-hub in other clients