Official · by ClickHouse
ClickHouse MCP server
The ClickHouse MCP server lets an AI assistant run SQL queries and list databases on a ClickHouse cluster.
- Runs locally
- Apache-2.0 licence
- ★ 889 on GitHub
- Verified against its source 19 Oct 2026
What the ClickHouse MCP server does
An assistant can execute SQL queries on a ClickHouse cluster and list all databases on that cluster. It can also run SQL queries through chDB's embedded ClickHouse engine, which is a local option. The source quotes do not describe a remote connection method for the cluster tools.
Tools it gives your assistant
run_queryRuns SQL queries on the ClickHouse cluster, read-only by defaultlist_databasesLists all databases on the clusterrun_chdb_select_queryRuns SQL queries using the embedded chDB ClickHouse engine
How to install it
Run it locally
pip install 'mcp-clickhouse[chdb]'What you need
- “Python 3.10 through 3.14 are supported. Python 3.12 is recommended for local launches”
- “Queries run in read-only mode by default (CLICKHOUSE_ALLOW_WRITE_ACCESS=false), but writes can be enabled explicitly if needed”