ClickHouse MCP Server
An MCP server for ClickHouse. The server implements MCP 2026-07-28 and supports legacy initialize handshakes from 2024-11-05 through 2025-11-25. Modern clients use sessionless requests and server/discover. Existing clients can continue to negotiate the legacy protocol. It runs locally over stdio via the published package.
People who work with Clickhouse and Chdb and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in Python.
VERIFIED ACTIVE
LAST COMMIT 2026-09-16 · ★ 876 · #5 OF 168 MAINTAINED DATABASE · VERIFIED 2026-09-18
Apache-2.0 · Python servers · how we verify → /methodology
01 · Install ClickHouse
before you install - you'll need
Set CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_ROLE, CLICKHOUSE_SECURE, CLICKHOUSE_VERIFY, CLICKHOUSE_CONNECT_TIMEOUT, CHDB_ENABLED, CLICKHOUSE_ENABLED, CHDB_DATA_PATH, CLICKHOUSE_ALLOW_WRITE_ACCESS before connecting. CLICKHOUSE_USER, CLICKHOUSE_PASSWORD are optional or environment-specific per the README.
Claude Code
claude mcp add clickhouse-mcp-clickhouse -- uvx mcp-clickhouse Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"clickhouse-mcp-clickhouse": {
"command": "uvx",
"args": [
"mcp-clickhouse"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions · container (OCI image) - can be sandboxed away from your filesystem
license Apache-2.0 - declared in the repository
pypi package mcp-clickhouse - check the name against the project README before installing (PyPI has no namespace ownership)
registry namespace io.github.ClickHouse is GitHub-verified and matches the repo owner
03 · What ClickHouse can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
Latest releases
v0.6.0 · 2026-09-03
mcp-clickhouse v0.6.0 · This release moves mcp-clickhouse to FastMCP 4 and adds MCP 2026-07-28 support while preserving legacy MCP clients and the standalone HTTP+SSE transport. · Before upgrading · Custom middleware…
v0.5.0 · 2026-09-01
mcp-clickhouse v0.5.0 · This release improves HTTP transport security, query execution reliability, multi-user request isolation, and result handling. It includes breaking HTTP/SSE configuration changes. · Before…
v0.4.1 · 2026-07-17
v0.4.1 · Advertise official ClickHouse Agent Skills to agents via FastMCP server-level instructions, replacing the previous tool-based advisory guidance. (#193) · Publish mcp-clickhouse to the official MCP Registry…
04 · Who maintains ClickHouse
ClickHouse is maintained by clickhouse. It's the only MCP server we track from this author; the repo dates to Dec 2024.
05 · Facts
- repository
- github.com/clickhouse/mcp-clickhouse
- website
- https://clickhouse.com/
- category
- database - ranked #5 of 168 actively-maintained database servers as of 2026-09-18.
- release cadence
- 3 releases in the last 90 days (latest 2026-09-03)
- registry
- io.github.ClickHouse/mcp-clickhouse (active, first published 2026-07-17 · 3 versions)
- packages
- pypi:mcp-clickhouse · oci:ghcr.io/clickhouse/mcp-clickhouse:0.6.0
06 · ClickHouse FAQ
What is ClickHouse?
An MCP server for ClickHouse. The server implements MCP 2026-07-28 and supports legacy initialize handshakes from 2024-11-05 through 2025-11-25. Modern clients use sessionless requests and server/discover. Existing clients can continue to negotiate the legacy protocol. It runs locally over stdio via the published package.
Is ClickHouse still maintained?
Yes - as of 2026-09-18, its last commit was 2026-09-16 and it shipped 3 releases in the last 90 days. We re-verify nightly.
How do I install ClickHouse?
Run `uvx mcp-clickhouse`. The README documents 12 environment variables (CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_USER…) to set first. Set CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_ROLE, CLICKHOUSE_SECURE, CLICKHOUSE_VERIFY, CLICKHOUSE_CONNECT_TIMEOUT, CHDB_ENABLED, CLICKHOUSE_ENABLED, CHDB_DATA_PATH, CLICKHOUSE_ALLOW_WRITE_ACCESS before connecting. CLICKHOUSE_USER, CLICKHOUSE_PASSWORD are optional or environment-specific per the README. You can also paste the ready-made client config above.
Does ClickHouse run locally?
Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to ClickHouse
Alternatives to ClickHouse
Maintained database servers if ClickHouse isn't the fit.
- Dbx Query databases from AI agents using connections configured in DBX. ★ 20,017 · 2026-09-18
- Toolbox for Databases MCP Toolbox for Databases enables your agent to connect to your database. ★ 16,449 · 2026-09-18
- Butterbase Ai MCP Server Butterbase MCP server - manage your backend: schemas, auth, functions, storage, RAG, deploys. ★ 3,562 · 2026-09-18
- Dbhub Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB ★ 3,534 · 2026-09-18
- LINQ to DB Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB. ★ 3,328 · 2026-09-17
- Supabase MCP server for interacting with the Supabase platform ★ 2,910 · 2026-09-17
Pairs well with
Servers that cover what ClickHouse doesn't - only shown when the pairing reason fits the companion.
- Server Chart → data & analytics companion data & analytics · ★ 4,367
- ClaudeR - RStudio MCP Server → data & analytics companion data & analytics · ★ 342
- Server Filesystem → filesystem companion filesystem · ★ 39,038
- Pdf MCP → filesystem companion filesystem · ★ 135
- Telnyx → API integration companion API integration · ★ 197
- Microsoft 365 MCP Server → API integration companion API integration · ★ 980
More database MCP servers · Database MCP · Codegraph · Colabfit MCP · Zotero Bridge · Server Couchbase
More Python MCP servers · MetricHub Quant - A股量化数据 · Cpersona · Math MCP Learning · Clueso · Clipboard · see all