C
ClickHouse MCP
41
Stack Score
Editorial pick✓ Verified workingMCP server
ClickHouse MCP
Query ClickHouse columnar OLAP from Claude.
Best for
Best for analytics-heavy teams running ClickHouse for event or time-series data.
At a glance
- Pricing
- open-source
- Setup time
- 20 minutes
- Learning curve
- moderate
- Last verified
- 5/27/2026
What we love
- ✓Maintained by ClickHouse
- ✓Blazing fast on huge tables
- ✓Cloud + self-host options
Where it falls short
- −Different SQL dialect quirks
- −Best for read-only mode
- −Cost of misqueries can be real
Install & connect
Copy-paste ready
Install
shell
uv run --with mcp-clickhouse --python 3.10 mcp-clickhouse
Config — Claude Desktop
json
{
"mcpServers": {
"mcp-clickhouse": {
"command": "uv",
"args": ["run", "--with", "mcp-clickhouse", "--python", "3.10", "mcp-clickhouse"],
"env": {
"CLICKHOUSE_HOST": "your-clickhouse-host",
"CLICKHOUSE_PORT": "8443",
"CLICKHOUSE_USER": "your_user",
"CLICKHOUSE_PASSWORD": "your_password",
"CLICKHOUSE_SECURE": "true"
}
}
}
}Pricing
✓ Pricing verified Jun 21, 20261 tier
Open-source
$0
perpetual
- ✓Apache 2.0
Overview
MCP server for ClickHouse — SELECT, schema introspection, query history. Use Claude to write fast analytical SQL against billion-row tables.
Key features
- ●Read + write queries
- ●Schema introspection
- ●ClickHouse Cloud + self-host
- ●Cluster aware
- ●TLS auth
Exposed tools
The MCP-tool names this server exposes. Your agent can invoke any of these when this server is connected.
- run_queryExecute SQL queries on a ClickHouse cluster; read-only by default with optional write access.
- list_databasesList all databases on a ClickHouse cluster.
- list_tablesList tables in a database with pagination, LIKE/NOT LIKE filters, and optional column metadata.
- run_chdb_select_queryExecute SQL queries using chDB's embedded ClickHouse engine for ad-hoc analysis over files, URLs, and databases.
Best use cases
Event-data exploration
Have Claude query billion-row event tables for ad-hoc analysis.
Real-time analytics
Run sub-second analytical SQL against ClickHouse from chat.
Integrations
Similar tools
See all analytics →One AI Stack pick every week.
The tool we’d pay for this week, why we’d pay for it, and what we’d skip. No promo spam.