ClickHouse
by github.com/ClickHouse · v0.7.0 · updated Sep 21, 2026
Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
Run it locally
Install the package and point your AI client at it.
PyPI
uvx mcp-clickhouse==0.7.0Environment variables
CLICKHOUSE_HOSTrequiredHostname of the ClickHouse server
CLICKHOUSE_USERrequiredUsername for ClickHouse authentication
CLICKHOUSE_PASSWORDsecretPassword for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode
CLICKHOUSE_PORTClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise
CLICKHOUSE_SECUREUse HTTPS to connect to ClickHouse
CLICKHOUSE_VERIFYVerify SSL certificates
CLICKHOUSE_CA_CERTPath to a PEM CA bundle for ClickHouse server certificate verification
CLICKHOUSE_CLIENT_CERTPath to a PEM client certificate for the ClickHouse HTTPS connection
CLICKHOUSE_CLIENT_CERT_KEYPath to the PEM private key for CLICKHOUSE_CLIENT_CERT
CLICKHOUSE_TLS_MODEClient certificate mode: mutual, proxy, or strict
CLICKHOUSE_DATABASEDefault database to use
CLICKHOUSE_ROLEClickHouse role to activate for the session
CLICKHOUSE_ALLOW_WRITE_ACCESSAllow write operations (DDL and DML). Queries run read-only by default
CLICKHOUSE_ALLOW_DROPAllow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, and DETACH PERMANENTLY) when write access is also enabled
CLICKHOUSE_MCP_QUERY_TIMEOUTQuery tool timeout in seconds
CLICKHOUSE_MCP_MAX_WORKERSMaximum query worker thread pool size
Docker
docker run -i --rm ghcr.io/clickhouse/mcp-clickhouse:0.7.0Environment variables
CLICKHOUSE_HOSTrequiredHostname of the ClickHouse server
CLICKHOUSE_USERrequiredUsername for ClickHouse authentication
CLICKHOUSE_PASSWORDsecretPassword for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode
CLICKHOUSE_PORTClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise
CLICKHOUSE_SECUREUse HTTPS to connect to ClickHouse
CLICKHOUSE_VERIFYVerify SSL certificates
CLICKHOUSE_CA_CERTPath to a PEM CA bundle for ClickHouse server certificate verification
CLICKHOUSE_CLIENT_CERTPath to a PEM client certificate for the ClickHouse HTTPS connection
CLICKHOUSE_CLIENT_CERT_KEYPath to the PEM private key for CLICKHOUSE_CLIENT_CERT
CLICKHOUSE_TLS_MODEClient certificate mode: mutual, proxy, or strict
CLICKHOUSE_DATABASEDefault database to use
CLICKHOUSE_ROLEClickHouse role to activate for the session
CLICKHOUSE_ALLOW_WRITE_ACCESSAllow write operations (DDL and DML). Queries run read-only by default
CLICKHOUSE_ALLOW_DROPAllow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, and DETACH PERMANENTLY) when write access is also enabled
CLICKHOUSE_MCP_QUERY_TIMEOUTQuery tool timeout in seconds
CLICKHOUSE_MCP_MAX_WORKERSMaximum query worker thread pool size
More from github.com/ClickHouse
More MCP servers
Tandoor Recipe Mcp
github.com/Cliftonz
Recipes, meal plans, shopping lists and more for your local or self-hosted Tandoor instance.
Ranks Hawk
github.com/ClimStefan
SEO competitor intelligence for AI agents: content gaps, backlink opportunities, AI-citation topics.
Clipform
github.com/Clipform
Interactive video forms that capture authentic responses. Build engaging forms in minutes.
Cloaked Agent
github.com/CloakedAgent
Trustless spending accounts for AI agents on Solana with on-chain enforced limits.
Mcp
github.com/ClockNext
Meter usage and manage usage-based billing from AI tools via the ClockNext API.
Mcp
github.com/Clocknext-Inc
Meter usage and manage usage-based billing from AI tools via the Clocknext API.