ClickHouse for SQL databases
Across SQL databases, the safest agent setups expose schema introspection and default to read-only so the model explores before it mutates. ClickHouse's official MCP server does both, but it is our fifth pick of five here for one honest reason: this list spans transactional engines, and ClickHouse is columnar, built for analytical SQL rather than the operational reads and writes the other four handle.
That places it at the bottom of a transactional roundup while still being the right answer for a narrow case. When the SQL you run is analytical and the tables are large, ClickHouse is the columnar option among otherwise row-oriented picks.
How ClickHouse fits
The server is read-and-introspect by design. list_databases and list_tables expose the schema (column and engine metadata on the table list) and run_select_query runs queries in a read-only session by default; run_chdb_select_query adds chDB's embedded engine over local files or URLs behind the chDB extra and CHDB_ENABLED. There are no tools here to write rows or apply schema changes, which is fine for analytics but limiting for a general operational database.
That limit is exactly why the siblings rank ahead for this task. DBHub (Postgres) and MySQL (DBHub), our top picks, cover the transactional engines most apps run on, with schema introspection and safe exploration. Neon adds serverless Postgres with branching. CockroachDB is the distributed SQL option that survives node failure. Choose ClickHouse here only when your SQL is analytical, scanning and aggregating large tables, rather than the transactional reads and writes the rest of this list targets.
Tools you would use
| Tool | What it does |
|---|---|
| list_databases | Lists all databases on the connected ClickHouse cluster. |
| list_tables | Lists the tables in a database, with column and engine metadata and pagination support. |
| run_select_query | Executes a SQL SELECT query against the ClickHouse cluster in a read-only session by default. |
| run_chdb_select_query | Runs a SELECT query through chDB's embedded engine over local files or URLs (requires the chDB extra and CHDB_ENABLED). |
FAQ
- Why is ClickHouse ranked last among SQL database servers?
- Because the list targets transactional SQL, and ClickHouse is columnar, built for analytical aggregation rather than operational reads and writes. Its tools (list_databases, list_tables, run_select_query) are read-only by default. For transactional work, DBHub (Postgres) and MySQL (DBHub) are the top picks.
- Can ClickHouse's server modify data or schema?
- Not through these tools. run_select_query is read-only by default and the rest are introspection (list_databases, list_tables) or chDB-based reads (run_chdb_select_query). For schema changes or writes, a transactional engine like Neon or CockroachDB fits the job better.