Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
Install
Run one of the commands below, then add the client config underneath.
uvx mcp-clickhousedocker run -i --rm ghcr.io/clickhouse/mcp-clickhouse:0.6.0Client configuration
Paste into Claude Desktop, Cursor (mcp.json), VS Code or any MCP client, then restart the client.
{
"mcpServers": {
"mcp-clickhouse": {
"command": "uvx",
"args": [
"mcp-clickhouse"
]
}
}
}About this server
ClickHouse is listed in the Databases category of the MCPNav directory. It is distributed as Python, Docker and can be loaded by any client that speaks the Model Context Protocol.
Typical uses include giving your assistant scoped access to the corresponding service so it can answer questions and take actions with real data instead of guessing. Always review what a server can access before you enable it — see our MCP security guide.
Frequently asked questions
What is the ClickHouse MCP server?+
ClickHouse is an MCP server by ClickHouse. Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
How do I install ClickHouse?+
Install it with: uvx mcp-clickhouse. Then add the JSON config to your client's MCP settings and restart the client.
Is ClickHouse free to use?+
The MCP server itself is free to install. The source is public on https://github.com/ClickHouse/mcp-clickhouse. Any third-party API it calls (such as a search or maps API) may require its own key and billing.
Which clients support ClickHouse?+
Any MCP-compatible client can use it, including Claude Desktop, Cursor, VS Code, Windsurf and custom agents.