ClickHouse
v0.12.1MCP server for ClickHouse metadata, parameterized queries, plan analysis, and writes opt-in.
Values you need
| Variable | What it is | |
|---|---|---|
MCP_CLICKHOUSE_DSN | optional secret | Optional shortcut DSN for the default profile, for example http://user:password@host:8123/database. For multiple profiles, use ~/.config/mcp-clickhousex/config.json or MCP_CLICKHOUSE_PROFILES_<NAME>_DSN. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add mcp-clickhousex -- uvx mcp-clickhousex==0.12.1Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-clickhousex": {
"args": [
"mcp-clickhousex==0.12.1"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-clickhousex": {
"args": [
"mcp-clickhousex==0.12.1"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp-clickhousex": {
"args": [
"mcp-clickhousex==0.12.1"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-clickhousex]
command = "uvx"
args = ["mcp-clickhousex==0.12.1"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_profiles, run_query, analyze_query.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json