ClickHouse/mcp-clickhouse
FreeClickHouse 官方集成,连接 ClickHouse 数据库进行查询和模式检查。
About ClickHouse/mcp-clickhouse
ClickHouse MCP Server is an open-source MCP (Model Context Protocol) integration that connects ClickHouse databases to AI assistants. It exposes tools such as run_query (execute SQL in read-only mode by default, with optional write access), list_databases, list_tables (with pagination, LIKE/NOT LIKE filters, and column detail control), and run_chdb_select_query (using the embedded chDB engine for querying files, URLs, and databases without ETL). The server supports HTTP/SSE transports with authentication modes including static bearer tokens, OAuth/OIDC, or disabled for development, and provides a minimal /health endpoint for orchestrator probes. It is built with FastMCP and the ClickHouse Python driver, and is licensed under the MIT License.
Key Features
Pros & Cons
- Read-only default mode provides safety against accidental data modification
- Supports pagination and filtering for large databases, reducing response payload
- Optional chDB integration allows querying files and URLs directly without ETL
- Health check endpoint unauthenticated for easy integration with Kubernetes and load balancers
- Multiple authentication options (static token, OAuth/OIDC) for various deployment environments
- Open source with permissive MIT license
- Authentication configuration required for HTTP/SSE transports, which adds setup complexity
- Write access must be explicitly enabled and is disabled by default, limiting update operations
- Only supports ClickHouse databases; not a general-purpose database connector
- Requires a running ClickHouse server or chDB dependency for full functionality