ClickHouse MCP Server
Migrated to https://github.com/ClickHouse/mcp-clickhouse
An MCP server for ClickHouse.
Features
Tools
run_select_query- Execute SQL queries on your ClickHouse cluster.
- Input:
sql(string): The SQL query to execute. - All ClickHouse queries are run with
readonly = 1to ensure they are safe.
list_databases- List all databases on your ClickHouse cluster.
list_tables- List all tables in a database.
- Input:
database(string): The name of the database.
Configuration
Note: This is a temporary configuration process that will be significantly improved once the package is published.
Run
uv syncto install the dependencies. To installuvfollow the instructions here. Then dosource .venv/bin/activate.Setup the
.env.productionfile with the ClickHouse credentials.
CLICKHOUSE_HOST=<CLICKHOUSE_HOST>
CLICKHOUSE_PORT=<CLICKHOUSE_PORT>
CLICKHOUSE_USER=<CLICKHOUSE_USER>
CLICKHOUSE_PASSWORD=<CLICKHOUSE_PASSWORD>
Run
fastmcp install mcp_clickhouse/mcp_server.py -f .env.productionto install the server.Restart Claude Desktop.
Development
In
test-servicesdirectory rundocker compose up -dto start the ClickHouse cluster.Add the following variables to a
.envfile in the root of the repository.
CLICKHOUSE_HOST=localhost
CLICKHOUSE_PORT=8123
CLICKHOUSE_USER=default
CLICKHOUSE_PASSWORD=clickhouse
Run
uv syncto install the dependencies. To installuvfollow the instructions here. Then dosource .venv/bin/activate.For easy testing, you can run
fastmcp dev mcp_clickhouse/mcp_server.pyto start the MCP server.
ClickHouse MCP Server
Project Details
- iskakaushik/mcp-clickhouse
- Apache License 2.0
- Last Updated: 1/6/2025
Recomended MCP Servers
eladmin mybatis-plus版本:项目基于 Spring Boot 2.7.18 、MyBatis-Plus、Spring Security、Redis、Vue的前后端分离的后台管理系统, 权限控制采用 RBAC,支持数据字典与数据权限管理,支持一键生成前后端代码,支持动态路由
Context Portal (ConPort): A memory bank MCP server building a project-specific knowledge graph to supercharge AI assistants. Enables...
MCP GitHub Mapper is a MCP tool that will map any repository remotely and import the map directly...
A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
mcp server sopos open-api
Using ffmpeg command line to achieve an mcp server, can be very convenient, through the dialogue to achieve...
Convert Any OpenAPI V3 API to MCP Server
An MCP Server for managing posts on Ghost CMS
BigGo MCP Server utilizes APIs from BigGo, a professional price comparison website.





