Skip to content
Cline

ClickHouse for Cline

io.github.burakdirin/clickhouse-mcp-server

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

client:Cline transport:stdio runtime:pypi

Install ClickHouse in Cline

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json · windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.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>"
      }
    }
  }
}

Cline's MCP Servers pane edits this file for you if you would rather not find it. Cline docs

ClickHouse in other clients