ClickHouse MCP Server
Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
ClickHouse scores 36 (Limited), licensed Apache-2.0 and written in Python. It installs as a local process. It declares 2 tools. Filed under Databases. GitHub shows 918 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
36 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
66/100 for listing completeness. Lost points: no README, short summary.
How quality is graded
Where the 36 comes from
0 + 6 + 10 + 10 + 7 + 3 = 36. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 10 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 7 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "clickhouse-mcp-clickhouse": { "command": "uvx", "args": [ "mcp-clickhouse" ], "env": { "CLICKHOUSE_HOST": "", "CLICKHOUSE_USER": "", "CLICKHOUSE_PASSWORD": "YOUR_CLICKHOUSE_PASSWORD", "CLICKHOUSE_PORT": "", "CLICKHOUSE_SECURE": "true", "CLICKHOUSE_VERIFY": "true", "CLICKHOUSE_CA_CERT": "", "CLICKHOUSE_CLIENT_CERT": "", "CLICKHOUSE_CLIENT_CERT_KEY": "", "CLICKHOUSE_TLS_MODE": "", "CLICKHOUSE_DATABASE": "", "CLICKHOUSE_ROLE": "", "CLICKHOUSE_ALLOW_WRITE_ACCESS": "false", "CLICKHOUSE_ALLOW_DROP": "false", "CLICKHOUSE_MCP_QUERY_TIMEOUT": "30", "CLICKHOUSE_MCP_MAX_WORKERS": "10" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
CLICKHOUSE_HOST | Required | Hostname of the ClickHouse server |
CLICKHOUSE_USER | Required | Username for ClickHouse authentication |
CLICKHOUSE_PASSWORDSecret | Optional | Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode |
CLICKHOUSE_PORT | Optional | ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise |
CLICKHOUSE_SECURE | Optional | Use HTTPS to connect to ClickHouse |
CLICKHOUSE_VERIFY | Optional | Verify SSL certificates |
CLICKHOUSE_CA_CERT | Optional | Path to a PEM CA bundle for ClickHouse server certificate verification |
CLICKHOUSE_CLIENT_CERT | Optional | Path to a PEM client certificate for the ClickHouse HTTPS connection |
CLICKHOUSE_CLIENT_CERT_KEY | Optional | Path to the PEM private key for CLICKHOUSE_CLIENT_CERT |
CLICKHOUSE_TLS_MODE | Optional | Client certificate mode: mutual, proxy, or strict |
CLICKHOUSE_DATABASE | Optional | Default database to use |
CLICKHOUSE_ROLE | Optional | ClickHouse role to activate for the session |
CLICKHOUSE_ALLOW_WRITE_ACCESS | Optional | Allow write operations (DDL and DML). Queries run read-only by default |
CLICKHOUSE_ALLOW_DROP | Optional | Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, OPTIMIZE DEDUPLICATE, MODIFY/MATERIALIZE TTL, MODIFY/ALTER COLUMN with TTL, and DETACH PERMANENTLY) when write access is also enabled |
CLICKHOUSE_MCP_QUERY_TIMEOUT | Optional | Query tool timeout in seconds |
CLICKHOUSE_MCP_MAX_WORKERS | Optional | Maximum query worker thread pool size |
CLICKHOUSE_HOST | Required | Hostname of the ClickHouse server |
CLICKHOUSE_USER | Required | Username for ClickHouse authentication |
CLICKHOUSE_PASSWORDSecret | Optional | Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode |
CLICKHOUSE_PORT | Optional | ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise |
CLICKHOUSE_SECURE | Optional | Use HTTPS to connect to ClickHouse |
CLICKHOUSE_VERIFY | Optional | Verify SSL certificates |
CLICKHOUSE_CA_CERT | Optional | Path to a PEM CA bundle for ClickHouse server certificate verification |
CLICKHOUSE_CLIENT_CERT | Optional | Path to a PEM client certificate for the ClickHouse HTTPS connection |
CLICKHOUSE_CLIENT_CERT_KEY | Optional | Path to the PEM private key for CLICKHOUSE_CLIENT_CERT |
CLICKHOUSE_TLS_MODE | Optional | Client certificate mode: mutual, proxy, or strict |
CLICKHOUSE_DATABASE | Optional | Default database to use |
CLICKHOUSE_ROLE | Optional | ClickHouse role to activate for the session |
CLICKHOUSE_ALLOW_WRITE_ACCESS | Optional | Allow write operations (DDL and DML). Queries run read-only by default |
CLICKHOUSE_ALLOW_DROP | Optional | Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, OPTIMIZE DEDUPLICATE, MODIFY/MATERIALIZE TTL, MODIFY/ALTER COLUMN with TTL, and DETACH PERMANENTLY) when write access is also enabled |
CLICKHOUSE_MCP_QUERY_TIMEOUT | Optional | Query tool timeout in seconds |
CLICKHOUSE_MCP_MAX_WORKERS | Optional | Maximum query worker thread pool size |
Tools2Tool docs quality grade D
All capabilitiesnext_page_tokentoolPass this single-use value back before it expires to fetch the next page, or null when there are no more tables.
total_tablestoolTotal count of tables that match the supplied filters.
About
Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
Frequently asked questions
What is ClickHouse MCP Server?
Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
How do I install ClickHouse MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. ClickHouse MCP Server runs locally from the PyPI package mcp-clickhouse with the command uvx mcp-clickhouse.
Is ClickHouse MCP Server free and open source?
Yes. ClickHouse MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does ClickHouse MCP Server support remote (HTTP) connections?
No remote endpoint is listed for ClickHouse MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does ClickHouse MCP Server provide?
ClickHouse MCP Server provides 2 tools: next_page_token and total_tables. See the full tool list for descriptions and parameters.
How is ClickHouse MCP Server's trust score calculated?
ClickHouse MCP Server scores 36 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.