ClickHouse MCP by usefulapi
v1.2.1Run read-only SQL, list databases and tables, describe columns, explain queries in ClickHouse.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
clickhouse_get_server_info Get server info
Show the ClickHouse server version, the user this connection runs as, the server time zone and its uptime in seconds. Good first call to check the connection. ClickHouse HTTP interface: SELECT on the server.
clickhouse_list_running_queries List running queries
List the queries running now (system.processes), slowest first, with the user, elapsed seconds, rows and memory read. The query text is cut to 500 characters.
clickhouse_list_databases List databases
List the databases on the server with their engine and comment (system.databases).
clickhouse_list_tables List tables
List tables with their database, engine, row count, size in bytes and comment (system.tables). Give a database to list only its tables. Stops at 1000 tables.
| Parameter | Type | Description |
|---|---|---|
database | string | Only this database (optional). |
clickhouse_describe_table Describe table
Show the columns of one table: type, default, whether the column is in the primary key or sorting key, and comment (system.columns).
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, for example default or analytics (from clickhouse_list_databases). |
table * | string | Table name in that database (from clickhouse_list_tables). |
clickhouse_run_query Run a read-only query
Run one SELECT (or other read) statement and return the rows as JSON objects. The server refuses INSERT, CREATE, ALTER, DROP and any SETTINGS change. Results stop at 1 MiB; then truncated is true, so add a LIMIT or filter.
| Parameter | Type | Description |
|---|---|---|
sql * | string | One read-only SQL statement. Do not add a FORMAT clause; the output format is set for you. |
clickhouse_explain_query Explain a query
Show the query plan of one SELECT statement (EXPLAIN) without running it for results. Use it to check which parts and indexes a query reads.
| Parameter | Type | Description |
|---|---|---|
sql * | string | One read-only SQL statement. Do not add a FORMAT clause; the output format is set for you. |