MCP directory
C

ClickHouse

by github.com/burakdirin · v0.2.0 · updated Dec 3, 2026

Query ClickHouse databases from AI assistants, read-only by default with opt-in writes.

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx clickhouse-mcp-server==0.2.0

Environment variables

  • CLICKHOUSE_HOSTrequired

    ClickHouse host name or IP address, without scheme or port.

  • CLICKHOUSE_PORT

    HTTP(S) port; 8123, or 8443 when CLICKHOUSE_SECURE is true.

  • CLICKHOUSE_USER

    User name; use a dedicated user with SELECT grants only.

  • CLICKHOUSE_PASSWORDsecret

    Password of the ClickHouse user.

  • CLICKHOUSE_DATABASE

    Default database for unqualified table names.

  • CLICKHOUSE_SECURE

    Connect over HTTPS.

  • CLICKHOUSE_VERIFY

    Verify the server's TLS certificate.

  • CLICKHOUSE_ALLOW_WRITE

    Offer the clickhouse_execute tool, which can change data and schema.

  • CLICKHOUSE_QUERY_TIMEOUT

    Seconds before ClickHouse stops a statement.

  • CLICKHOUSE_MAX_ROWS

    Most rows clickhouse_query returns.

More MCP servers