ClickHouse
v0.12.1MCP server for ClickHouse metadata, parameterized queries, plan analysis, and writes opt-in.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_profiles
[ClickHouse] List configured connection profiles.
run_query
[ClickHouse] Execute read-only SELECT or SHOW.
| Parameter | Type | Description |
|---|---|---|
sql * | string | One read-only statement: SELECT, WITH or SHOW. |
database | Session default database for unqualified names. Src: system.databases. | |
parameters | Named parameters for driver placeholders (e.g. %(name)s or {name:Type}). | |
profile | Profile name; default profile when omitted. Src: profiles. | |
snapshot | boolean | Spill the result to a CSV resource under a larger row cap, instead of returning rows inline. |
analyze_query
[ClickHouse] Explain read-only SELECT. Indexes names only the keys the plan used; confirm absent keys from system.tables (primary_key, sorting_key, partition_key).
| Parameter | Type | Description |
|---|---|---|
sql * | string | Read-only SELECT to EXPLAIN. One statement. |
database | Session default database for unqualified names. Src: system.databases. | |
parameters | Named parameters for driver placeholders (e.g. %(name)s or {name:Type}). | |
profile | Profile name; default profile when omitted. Src: profiles. | |
types | EXPLAIN variants: plan (indexes), pipeline, syntax. Default plan and pipeline. |