Overview
Features
run_select_query
Execute SQL queries on your ClickHouse cluster. Input: sql (string). All queries are executed with readonly = 1 to ensure safety.
list_databases
List all databases on your ClickHouse cluster.
list_tables
List tables in a database with pagination. Required input: database (string). Optional inputs: like/not_like (string) to filter table names; page_token (string) for fetching next page; page_size (int, default 50); include_detailed_columns (bool, default true). Response includes tables, next_page_token, total_tables.
run_chdb_select_query
Execute SQL queries using chDB's embedded ClickHouse engine. Input: sql (string). Query data directly from files, URLs, or databases without ETL.
Health Check Endpoint
Health check available at /health for HTTP/SSE transports. Returns 200 OK with the ClickHouse version if healthy, or 503 if unable to connect.
Dual Engine Support
Supports both ClickHouse and chDB backends, and can be enabled individually or together via environment configuration.
Who Is This For?
- Developers:Develop and test MCP integrations for ClickHouse using the server's SQL and health tools.
- Database Administrators:Query and monitor databases and tables via MCP tools with safety.
- Integrations Engineers:Configure and deploy MCP server in environments with ClickHouse and/or chDB.




