ClickHouse
ClickHouse is an MCP server that adds data and analytics tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB. It has 880 GitHub stars, is released under the Apache-2.0 license and runs locally with uvx mcp-clickhouse.
- Official
- Needs API key
- Data & analytics
- Apache-2.0
- Actively maintained
Install ClickHouse
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"clickhouse": {
"command": "uvx",
"args": [
"mcp-clickhouse"
],
"env": {
"CLICKHOUSE_HOST": "your-value",
"CLICKHOUSE_USER": "your-value",
"CLICKHOUSE_PASSWORD": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env CLICKHOUSE_HOST=your-value --env CLICKHOUSE_USER=your-value --env CLICKHOUSE_PASSWORD=your-value --transport stdio clickhouse -- uvx mcp-clickhouseCursor
{
"mcpServers": {
"clickhouse": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-clickhouse"
],
"env": {
"CLICKHOUSE_HOST": "your-value",
"CLICKHOUSE_USER": "your-value",
"CLICKHOUSE_PASSWORD": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "clickhouse_password",
"description": "CLICKHOUSE_PASSWORD",
"password": true
}
],
"servers": {
"clickhouse": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-clickhouse"
],
"env": {
"CLICKHOUSE_HOST": "your-value",
"CLICKHOUSE_USER": "your-value",
"CLICKHOUSE_PASSWORD": "${input:clickhouse_password}"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
CLICKHOUSE_HOST | Yes | Hostname of the ClickHouse server |
CLICKHOUSE_USER | Yes | Username for ClickHouse authentication |
CLICKHOUSE_PASSWORDsecret | No | Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode |
CLICKHOUSE_PORT | No | ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise |
CLICKHOUSE_SECURE | No | Use HTTPS to connect to ClickHouse |
CLICKHOUSE_VERIFY | No | Verify SSL certificates |
CLICKHOUSE_CA_CERT | No | Path to a PEM CA bundle for ClickHouse server certificate verification |
CLICKHOUSE_CLIENT_CERT | No | Path to a PEM client certificate for the ClickHouse HTTPS connection |
CLICKHOUSE_CLIENT_CERT_KEY | No | Path to the PEM private key for CLICKHOUSECLIENTCERT |
CLICKHOUSE_TLS_MODE | No | Client certificate mode: mutual, proxy, or strict |
CLICKHOUSE_DATABASE | No | Default database to use |
CLICKHOUSE_ROLE | No | ClickHouse role to activate for the session |
CLICKHOUSE_ALLOW_WRITE_ACCESS | No | Allow write operations (DDL and DML). Queries run read-only by default |
CLICKHOUSE_ALLOW_DROP | No | Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, and DETACH PERMANENTLY) when write access is also enabled |
CLICKHOUSE_MCP_QUERY_TIMEOUT | No | Query tool timeout in seconds |
CLICKHOUSE_MCP_MAX_WORKERS | No | Maximum query worker thread pool size |
About 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.
Similar MCP servers
More data & analytics MCP servers
Ida Pro MCP
mrexodia/ida-pro-mcp
AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Data & analyticsPythonAsk Jev
pollinations/pollinations
Evaluate state with typed choice, score, and probability questions.
Data & analyticsTypeScriptJitsu
jitsucom/jitsu
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
OfficialData & analyticsTypeScriptGoogle Ads + Meta Ads + SEO/GEO MCP
irinabuht12-oss/google-ads-meta-ads-mcp
Google Ads, Meta Ads, SEO, GEO & GA4 MCP by Ryze AI - audits, reports, keywords, Search Console.
Data & analyticsBlitz
blitzdotdev/blitz-mac
Give AI agents full control over iOS/macOS development via a native macOS app with 30+ MCP tools.
Data & analyticsSwiftChunkhound
chunkhound/chunkhound
Your entire engineering context, deeply understood.
OfficialData & analyticsPython
What is ClickHouse?
ClickHouse is an MCP server that adds data and analytics tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB. It has 880 GitHub stars, is released under the Apache-2.0 license and runs locally with uvx mcp-clickhouse. The source code is at github.com/ClickHouse/mcp-clickhouse.
How do I install the ClickHouse MCP server?
Add the command uvx mcp-clickhouse to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is ClickHouse free?
The server is open source under the Apache-2.0 license, so running it is free. It needs credentials (CLICKHOUSE_PASSWORD) for the service it connects to, which may require a paid account.
Is ClickHouse actively maintained?
The most recent commit was on Oct 6, 2026. The latest release is v0.7.0, published Sep 21, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.