Skip to content
ClickHouse logo
MCP server
Registry

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.

by clickhouseApache-2.0Python918 stars
Trust score
36Limited
Trust score 36 of 100, Limited

Limited trust

36 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 36 comes from

0 + 6 + 10 + 10 + 7 + 3 = 36. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity10 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 10 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security7 / 10

Not archived, a secure install path, a pinned version.

Security: 7 of 10 points.
Docs3 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "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

NameRequiredNotes
CLICKHOUSE_HOSTRequiredHostname of the ClickHouse server
CLICKHOUSE_USERRequiredUsername for ClickHouse authentication
CLICKHOUSE_PASSWORDSecretOptionalPassword for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode
CLICKHOUSE_PORTOptionalClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise
CLICKHOUSE_SECUREOptionalUse HTTPS to connect to ClickHouse
CLICKHOUSE_VERIFYOptionalVerify SSL certificates
CLICKHOUSE_CA_CERTOptionalPath to a PEM CA bundle for ClickHouse server certificate verification
CLICKHOUSE_CLIENT_CERTOptionalPath to a PEM client certificate for the ClickHouse HTTPS connection
CLICKHOUSE_CLIENT_CERT_KEYOptionalPath to the PEM private key for CLICKHOUSE_CLIENT_CERT
CLICKHOUSE_TLS_MODEOptionalClient certificate mode: mutual, proxy, or strict
CLICKHOUSE_DATABASEOptionalDefault database to use
CLICKHOUSE_ROLEOptionalClickHouse role to activate for the session
CLICKHOUSE_ALLOW_WRITE_ACCESSOptionalAllow write operations (DDL and DML). Queries run read-only by default
CLICKHOUSE_ALLOW_DROPOptionalAllow 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_TIMEOUTOptionalQuery tool timeout in seconds
CLICKHOUSE_MCP_MAX_WORKERSOptionalMaximum query worker thread pool size
CLICKHOUSE_HOSTRequiredHostname of the ClickHouse server
CLICKHOUSE_USERRequiredUsername for ClickHouse authentication
CLICKHOUSE_PASSWORDSecretOptionalPassword for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode
CLICKHOUSE_PORTOptionalClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise
CLICKHOUSE_SECUREOptionalUse HTTPS to connect to ClickHouse
CLICKHOUSE_VERIFYOptionalVerify SSL certificates
CLICKHOUSE_CA_CERTOptionalPath to a PEM CA bundle for ClickHouse server certificate verification
CLICKHOUSE_CLIENT_CERTOptionalPath to a PEM client certificate for the ClickHouse HTTPS connection
CLICKHOUSE_CLIENT_CERT_KEYOptionalPath to the PEM private key for CLICKHOUSE_CLIENT_CERT
CLICKHOUSE_TLS_MODEOptionalClient certificate mode: mutual, proxy, or strict
CLICKHOUSE_DATABASEOptionalDefault database to use
CLICKHOUSE_ROLEOptionalClickHouse role to activate for the session
CLICKHOUSE_ALLOW_WRITE_ACCESSOptionalAllow write operations (DDL and DML). Queries run read-only by default
CLICKHOUSE_ALLOW_DROPOptionalAllow 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_TIMEOUTOptionalQuery tool timeout in seconds
CLICKHOUSE_MCP_MAX_WORKERSOptionalMaximum query worker thread pool size

Tools2Tool docs quality grade D

All capabilities
  • Pass this single-use value back before it expires to fetch the next page, or null when there are no more tables.

  • Total 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server