
ClickHouse/mcp-clickhouse
ClickHouse database integration with schema inspection and query capabilities
by ClickHouseOpen source
Description
mcp-clickhouse is the official Model Context Protocol server from ClickHouse. It lets AI assistants query and explore a ClickHouse cluster and the chDB embedded engine, so an assistant can list databases, look at tables and run SQL. The run_query tool executes a SQL query and accepts named parameters for ClickHouse placeholders. Queries run in read-only mode by default, and writes must be enabled explicitly with the CLICKHOUSE_ALLOW_WRITE_ACCESS setting. The list_tables tool pages through the tables in a database, with filters for table names, a page size, and an option to leave out column details for lighter responses. Integers outside the safe JavaScript range are returned as strings so that exact values are preserved. The server implements a 2026 version of the MCP specification and still accepts older handshakes from 2024 and 2025, so existing clients keep working. It has a health check endpoint, and HTTP and SSE transports can require authentication. The README also describes schema discovery steps for an AGENTS database when one is present. The project is hosted on GitHub, where the README documents each tool with its inputs and outputs.…
Highlights
- Run SQL on ClickHouse from an AI assistant
- Read-only queries by default
- Paged table listing with filters
- Health check endpoint
- Authentication for HTTP and SSE transports
Ratings & Reviews
No ratings yet
Be the first to rate ClickHouse/mcp-clickhouse.
People also visit
ClickHouse/mcp-clickhouse FAQ
What is the ClickHouse MCP server?
An official Model Context Protocol server that lets AI assistants query and explore ClickHouse clusters and chDB.
Can the assistant change my data?
Not by default. Queries run read-only, and writes must be enabled with CLICKHOUSE_ALLOW_WRITE_ACCESS.
What tools does it provide?
The README documents run_query, list_databases and list_tables, among others.
Which MCP versions does it support?
The 2026-07-28 specification, and legacy handshakes from 2024-11-05 through 2025-11-25.
Is authentication available?
Yes. The README has a section on authentication for HTTP and SSE transports.
Is it free?
The project is public on GitHub and the README does not describe a paid version.
What are the best ClickHouse/mcp-clickhouse alternatives?
Popular alternatives to ClickHouse/mcp-clickhouse include infra-clickhouse, Tinybird and clickhousectl-cloud-deploy. See all ClickHouse/mcp-clickhouse alternatives

















