AdYour product here, seen by people installing AI tools every day Sponsor slots open: 12 of 12, from $249 a month

ClickHouse

Community

MCP server by ClickHouse · updated · ★ 889

Score 87

Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB. ClickHouse is a community project by ClickHouse, not verified by a company domain.

Yours? Claim it
Maintenance

Last commit 3 days ago

Licence

Apache-2.0: permissive, fine for commercial use

Quality

Clear description, published package or server URL, 889 stars, original repository

Security

No risky patterns in the files we checked

What you need

SettingNeededWhat it is
CLICKHOUSE_HOSTEnvironment variableRequiredHostname of the ClickHouse server
CLICKHOUSE_USEREnvironment variableRequiredUsername for ClickHouse authentication
CLICKHOUSE_PASSWORDEnvironment variable, secretOptionalPassword for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode
CLICKHOUSE_PORTEnvironment variableOptionalClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise
CLICKHOUSE_SECUREEnvironment variableOptionalUse HTTPS to connect to ClickHouse Default: true
CLICKHOUSE_VERIFYEnvironment variableOptionalVerify SSL certificates Default: true
CLICKHOUSE_CA_CERTEnvironment variableOptionalPath to a PEM CA bundle for ClickHouse server certificate verification
CLICKHOUSE_CLIENT_CERTEnvironment variableOptionalPath to a PEM client certificate for the ClickHouse HTTPS connection
CLICKHOUSE_CLIENT_CERT_KEYEnvironment variableOptionalPath to the PEM private key for CLICKHOUSE_CLIENT_CERT
CLICKHOUSE_TLS_MODEEnvironment variableOptionalClient certificate mode: mutual, proxy, or strict
CLICKHOUSE_DATABASEEnvironment variableOptionalDefault database to use
CLICKHOUSE_ROLEEnvironment variableOptionalClickHouse role to activate for the session
CLICKHOUSE_ALLOW_WRITE_ACCESSEnvironment variableOptionalAllow write operations (DDL and DML). Queries run read-only by default Default: false
CLICKHOUSE_ALLOW_DROPEnvironment variableOptionalAllow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, and DETACH PERMANENTLY) when write access is also enabled Default: false
CLICKHOUSE_MCP_QUERY_TIMEOUTEnvironment variableOptionalQuery tool timeout in seconds Default: 30
CLICKHOUSE_MCP_MAX_WORKERSEnvironment variableOptionalMaximum query worker thread pool size Default: 10

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Install ClickHouse

Built from the published package, never by AI
claude mcp add clickhouse -e CLICKHOUSE_HOST=YOUR_CLICKHOUSE_HOST -e CLICKHOUSE_USER=YOUR_CLICKHOUSE_USER -- uvx mcp-clickhouse

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install ClickHouse in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the clickhouse block.

Weekly newsletter

Like ClickHouse? Get the best new MCP servers every week

The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.

No spam. Unsubscribe in one click. Privacy

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to ClickHouse

All alternatives →

ClickHouse: common questions

How do I install ClickHouse?

In Claude Code run claude mcp add clickhouse -e CLICKHOUSE_HOST=YOUR_CLICKHOUSE_HOST -e CLICKHOUSE_USER=YOUR_CLICKHOUSE_USER -- uvx mcp-clickhouse. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is ClickHouse the official server?

ClickHouse is a community project by ClickHouse, not verified by a company domain.

Is ClickHouse free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is ClickHouse safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ClickHouse?

Similar MCP servers: Supabase, ArcadeDB MCP Server, MCP Toolbox for Databases, MCP Toolbox for Databases.

Does ClickHouse work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.