ClickHouse

v0.12.1
io.github.alyiox/mcp-clickhousex Checked 7 hours ago Published 13 days ago

MCP 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.

ParameterTypeDescription
sql *stringOne read-only statement: SELECT, WITH or SHOW.
databaseSession default database for unqualified names. Src: system.databases.
parametersNamed parameters for driver placeholders (e.g. %(name)s or {name:Type}).
profileProfile name; default profile when omitted. Src: profiles.
snapshotbooleanSpill 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).

ParameterTypeDescription
sql *stringRead-only SELECT to EXPLAIN. One statement.
databaseSession default database for unqualified names. Src: system.databases.
parametersNamed parameters for driver placeholders (e.g. %(name)s or {name:Type}).
profileProfile name; default profile when omitted. Src: profiles.
typesEXPLAIN variants: plan (indexes), pipeline, syntax. Default plan and pipeline.