Clickhouse MCP Server

DataOps ClickHouse MCP server with query optimization and pipeline monitoring

Local serverstdio

What is the Clickhouse MCP Server?

DataOps ClickHouse MCP server with query optimization and pipeline monitoring

What you get

A DataOps-focused MCP server for ClickHouse with query optimization, pipeline latency analysis, and data quality monitoring.

  • ch_query — — Execute SELECT with automatic partition pruning warnings
  • ch_explain_query — — EXPLAIN-based analysis with optimization suggestions
  • ch_table_schema — — Comprehensive table metadata (columns, keys, partitions, samples)
  • ch_pipeline_latency — — CDC pipeline per-segment latency (p50/p95/p99)
  • ch_data_quality — — Null/duplicate/gap detection with market coverage checks
  • ch_slow_queries — — Slow query detection with root cause diagnosis

Setting it up

clickhouse-dataops-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration and credentials

You will need 3 environment variables: CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_DATABASE. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by Aguantar; worth a glance at recent repository activity before you build anything load-bearing on it.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

How to install the Clickhouse MCP Server

{
  "mcpServers": {
    "clickhouse-dataops": {
      "command": "uvx",
      "args": ["clickhouse-dataops-mcp"],
      "env": {
        "CLICKHOUSE_HOST": "your-value",
        "CLICKHOUSE_PORT": "your-value",
        "CLICKHOUSE_DATABASE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
CLICKHOUSE_HOSTEndpoint or connection string the server talks to.Optional
CLICKHOUSE_PORTConfiguration value read at startup.Optional
CLICKHOUSE_DATABASEConfiguration value read at startup.Optional

Frequently asked questions

DataOps ClickHouse MCP server with query optimization and pipeline monitoring Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.