Clickhouse MCP server
@burakdirin
About Clickhouse MCP server
An MCP server implementation that enables Claude AI to interact with Clickhouse databases.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"clickhouse-mcp-server-burakdirin": {
"command": "uv",
"args": [
"pip",
"install",
"clickhouse-mcp-server"
]
}
}
}Tools
2Connects to a specific Clickhouse database
Executes Clickhouse queries
Overview
What is Clickhouse MCP server?
Clickhouse MCP server is an MCP server that connects to a Clickhouse database, allowing users to execute SQL queries through the Model Context Protocol. It is designed for developers and AI assistants that need to interact with Clickhouse databases.
How to use Clickhouse MCP server?
Install the package with uv pip install clickhouse-mcp-server or pip install clickhouse-mcp-server. Configure environment variables for Clickhouse connection, then configure the MCP client (e.g., Claude Desktop) with the server definition, specifying the command uvx clickhouse-mcp-server and your connection settings. Use the provided connect_database and execute_query tools to interact with the database.
Key features of Clickhouse MCP server
- Connects to Clickhouse databases and executes queries.
- Provides
connect_databaseandexecute_querytools. - Supports read-only mode via environment variable.
- Configurable through environment variables for host, user, password, database.
- Multiple queries can be sent separated by semicolons.
Use cases of Clickhouse MCP server
- Query a Clickhouse database from an AI assistant.
- Enable natural‑language database exploration via MCP.
- Integrate Clickhouse into automated workflows with read‑only access.
- Debug or inspect database schemas and data interactively.
FAQ from Clickhouse MCP server
What tools does Clickhouse MCP server provide?
It provides connect_database to connect to a specific database and execute_query to run Clickhouse SQL queries, returning results in JSON format.
How do I configure Clickhouse MCP server for read‑only mode?
Set the CLICKHOUSE_READONLY environment variable to true or 1. The default is false, allowing write queries.
What are the runtime requirements?
The server requires Python and the package can be installed via uv or pip. It runs as a stdio‑based MCP server, best debugged with the MCP Inspector.
How do I publish the server to PyPI?
Build with uv build and publish with uv publish, providing PyPI credentials via token or username/password.
Can I use Clickhouse MCP server with Claude Desktop?
Yes, configure it in the Claude Desktop config file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%/Claude/claude_desktop_config.json) with the published server configuration using uvx.
Frequently asked questions
What tools does Clickhouse MCP server provide?
It provides `connect_database` to connect to a specific database and `execute_query` to run Clickhouse SQL queries, returning results in JSON format.
How do I configure Clickhouse MCP server for read‑only mode?
Set the `CLICKHOUSE_READONLY` environment variable to `true` or `1`. The default is false, allowing write queries.
What are the runtime requirements?
The server requires Python and the package can be installed via `uv` or `pip`. It runs as a stdio‑based MCP server, best debugged with the MCP Inspector.
How do I publish the server to PyPI?
Build with `uv build` and publish with `uv publish`, providing PyPI credentials via token or username/password.
Can I use Clickhouse MCP server with Claude Desktop?
Yes, configure it in the Claude Desktop config file (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`, Windows: `%APPDATA%/Claude/claude_desktop_config.json`) with the published server configuration using `uvx`.
Basic information
More Databases MCP servers

nuzur
nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Postgres Mcp
crystaldbaPostgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

Fund Momentum MCP Server
schneidavieFund Momentum MCP Server — VC intelligence for AI assistants. 1000+ active VC funds, live investor signals, AI-powered startup matching.
mcp-server-qdrant: A Qdrant MCP server
qdrantAn official Qdrant Model Context Protocol (MCP) server implementation
Comments