MCP directory
C

ClickHouse

by github.com/ClickHouse · v0.7.0 · updated Sep 21, 2026

Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.

PyPIDocker

Run it locally

Install the package and point your AI client at it.

PyPI

uvx mcp-clickhouse==0.7.0

Environment variables

  • CLICKHOUSE_HOSTrequired

    Hostname of the ClickHouse server

  • CLICKHOUSE_USERrequired

    Username for ClickHouse authentication

  • CLICKHOUSE_PASSWORDsecret

    Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode

  • CLICKHOUSE_PORT

    ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise

  • CLICKHOUSE_SECURE

    Use HTTPS to connect to ClickHouse

  • CLICKHOUSE_VERIFY

    Verify SSL certificates

  • CLICKHOUSE_CA_CERT

    Path to a PEM CA bundle for ClickHouse server certificate verification

  • CLICKHOUSE_CLIENT_CERT

    Path to a PEM client certificate for the ClickHouse HTTPS connection

  • CLICKHOUSE_CLIENT_CERT_KEY

    Path to the PEM private key for CLICKHOUSE_CLIENT_CERT

  • CLICKHOUSE_TLS_MODE

    Client certificate mode: mutual, proxy, or strict

  • CLICKHOUSE_DATABASE

    Default database to use

  • CLICKHOUSE_ROLE

    ClickHouse role to activate for the session

  • CLICKHOUSE_ALLOW_WRITE_ACCESS

    Allow write operations (DDL and DML). Queries run read-only by default

  • CLICKHOUSE_ALLOW_DROP

    Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, and DETACH PERMANENTLY) when write access is also enabled

  • CLICKHOUSE_MCP_QUERY_TIMEOUT

    Query tool timeout in seconds

  • CLICKHOUSE_MCP_MAX_WORKERS

    Maximum query worker thread pool size

Docker

docker run -i --rm ghcr.io/clickhouse/mcp-clickhouse:0.7.0

Environment variables

  • CLICKHOUSE_HOSTrequired

    Hostname of the ClickHouse server

  • CLICKHOUSE_USERrequired

    Username for ClickHouse authentication

  • CLICKHOUSE_PASSWORDsecret

    Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode

  • CLICKHOUSE_PORT

    ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise

  • CLICKHOUSE_SECURE

    Use HTTPS to connect to ClickHouse

  • CLICKHOUSE_VERIFY

    Verify SSL certificates

  • CLICKHOUSE_CA_CERT

    Path to a PEM CA bundle for ClickHouse server certificate verification

  • CLICKHOUSE_CLIENT_CERT

    Path to a PEM client certificate for the ClickHouse HTTPS connection

  • CLICKHOUSE_CLIENT_CERT_KEY

    Path to the PEM private key for CLICKHOUSE_CLIENT_CERT

  • CLICKHOUSE_TLS_MODE

    Client certificate mode: mutual, proxy, or strict

  • CLICKHOUSE_DATABASE

    Default database to use

  • CLICKHOUSE_ROLE

    ClickHouse role to activate for the session

  • CLICKHOUSE_ALLOW_WRITE_ACCESS

    Allow write operations (DDL and DML). Queries run read-only by default

  • CLICKHOUSE_ALLOW_DROP

    Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, and DETACH PERMANENTLY) when write access is also enabled

  • CLICKHOUSE_MCP_QUERY_TIMEOUT

    Query tool timeout in seconds

  • CLICKHOUSE_MCP_MAX_WORKERS

    Maximum query worker thread pool size

More from github.com/ClickHouse

More MCP servers