Skip to content
Gemini CLI

ClickHouse for Gemini CLI

io.github.alyiox/mcp-clickhousex

Read-only MCP server for ClickHouse metadata, parameterized queries, and plan analysis.

client:Gemini CLI transport:stdio runtime:pypi

Install ClickHouse 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-clickhousex": {
      "command": "uvx",
      "args": [
        "mcp-clickhousex"
      ],
      "env": {
        "MCP_CLICKHOUSE_DSN": "<MCP_CLICKHOUSE_DSN>"
      }
    }
  }
}

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

ClickHouse in other clients