ClickHouse Analytics MCP

Columnar OLAP schema explorer and safe partition-aware analytical queries

Built for event telemetry and time-series analytical teams needing partition key verification and low-latency ClickHouse SQL exploration.

Install & Client JSON Configurations

All client configuration manifests are exposed directly below without hidden tabs for zero-click copying.

CLI Install Command
uvx mcp-clickhouse
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "localhost",
        "CLICKHOUSE_PORT": "8443",
        "CLICKHOUSE_USER": "readonly_mcp"
      }
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "localhost",
        "CLICKHOUSE_PORT": "8443",
        "CLICKHOUSE_USER": "readonly_mcp"
      }
    }
  }
}
VS Code · .vscode/mcp.json
{
  "servers": {
    "clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "localhost",
        "CLICKHOUSE_PORT": "8443",
        "CLICKHOUSE_USER": "readonly_mcp"
      }
    }
  }
}

Analytical Workflow Design

ClickHouse tables frequently hold billions of log rows where missing a partition predicate can stall a cluster. ClickHouse Analytics MCP exposes table MergeTree engine metadata, sorting keys, and dry-run row estimates before running heavy aggregations.

Practical Advantages

  • Inspects system.parts and MergeTree ORDER BY keys so coding agents construct index-aligned WHERE clauses.
  • Enforces max_execution_time and max_rows_to_read safeguards directly on the client connection profile.
  • Compact eight-tool surface minimizes schema token overhead in backend observability sessions.

Alternative Servers in This Category

Database MCP
Core Ecosystem

PostgreSQL Read-Only MCP

Inspect relational schemas and run safe EXPLAIN plans without mutation risk

stdioenv-connection-stringopen-source
Tool Surface5 tools
Reliability Score96 / 100
1120 tok · 14,200 starsInspect config
Database MCP
Rising Stack

SQLite Local Inspector MCP

Inspect embedded SQLite schemas and run local read-only queries fast

stdiononeopen-source
Tool Surface6 tools
Reliability Score95 / 100
980 tok · 12,100 starsInspect config
Database MCP
Core Ecosystem

Supabase Schema & Migration MCP

Inspect Postgres tables, RLS policies, and Edge Functions with zero drift

httpstdiooauth-2.1freemium
Tool Surface14 tools
Reliability Score95 / 100
2540 tok · 5,800 starsInspect config