Skip to content
Claude Desktop

ClickHouse for Claude Desktop

io.github.burakdirin/clickhouse-mcp-server

Query ClickHouse databases from AI assistants, read-only by default with opt-in writes.

client:Claude Desktop transport:stdio runtime:pypi

Install ClickHouse in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

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

{
  "mcpServers": {
    "clickhouse-mcp-server": {
      "command": "uvx",
      "args": [
        "clickhouse-mcp-server"
      ],
      "env": {
        "CLICKHOUSE_HOST": "<CLICKHOUSE_HOST>",
        "CLICKHOUSE_PORT": "<CLICKHOUSE_PORT>",
        "CLICKHOUSE_USER": "<CLICKHOUSE_USER>",
        "CLICKHOUSE_PASSWORD": "<CLICKHOUSE_PASSWORD>",
        "CLICKHOUSE_DATABASE": "<CLICKHOUSE_DATABASE>",
        "CLICKHOUSE_SECURE": "<CLICKHOUSE_SECURE>",
        "CLICKHOUSE_VERIFY": "<CLICKHOUSE_VERIFY>",
        "CLICKHOUSE_ALLOW_WRITE": "<CLICKHOUSE_ALLOW_WRITE>",
        "CLICKHOUSE_QUERY_TIMEOUT": "<CLICKHOUSE_QUERY_TIMEOUT>",
        "CLICKHOUSE_MAX_ROWS": "<CLICKHOUSE_MAX_ROWS>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

ClickHouse in other clients