# ClickHouse MCP Server vs MotherDuck MCP Server

> ClickHouse scores 72.5 (BB) to MotherDuck's 69 (B) for sql databases. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-motherduck-mcp
- Markdown: https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-motherduck-mcp.md (~4,650 tokens)
- Slim: https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-motherduck-mcp.min.md (~980 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-motherduck-mcp.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

ClickHouse MCP Server scores 72.5 (BB) on agent readiness against MotherDuck MCP Server's 69 (B), and leads in 4 of 7 scored categories. Both do sql databases.

- ClickHouse MCP Server: grade BB, 72.5/100, rank #230 of 1654. Markdown https://www.anchorterminal.com/tools/clickhouse-mcp-server.md · JSON https://www.anchorterminal.com/api/v1/tools/clickhouse-mcp-server.json
- MotherDuck MCP Server: grade B, 69/100, rank #385 of 1654. Markdown https://www.anchorterminal.com/tools/motherduck-mcp.md · JSON https://www.anchorterminal.com/api/v1/tools/motherduck-mcp.json
- Best database, file and memory tools for AI agents: https://www.anchorterminal.com/best/data/index.md
- All 170 databases comparisons: https://www.anchorterminal.com/compare/data/index.md

## Which one, for what

### ClickHouse MCP Server (BB)

Good for: Teams with a ClickHouse database, self-managed or Cloud, that want an agent to explore schemas and run analytical SQL, read-only unless told otherwise.

Ahead on:
- Reliability, 74 against 53
- Security & auth, 66 against 56
- Transparency & trust, 82 against 76

Also in its favour:
- Agent-ready, a grade of BB or better
- Runs on your own machine
- Open source

Watch for: `run_query` returns every row. Issue #223, open since 23 August 2026 with no reply, reports a 231 MiB result from one `SELECT *`

### MotherDuck MCP Server (B)

Good for: Analytical SQL over MotherDuck databases and files in object storage, plus dashboards (Dives), scheduled Python jobs (Flights) and shared metric definitions (Guides).

Also in its favour:
- A hosted endpoint, with nothing to install
- Free to start without a card
- No incidents deducted, where ClickHouse MCP Server loses 3 points for them

Watch for: 43 tools by default, including writes, Python jobs, Dive sharing and Guide deletion, with no server-side toolset or read-only subset on an OAuth connection


## Why the edge

### Reliability: ClickHouse MCP Server +21

- ClickHouse MCP Server (74): Scored as local software, since the owner runs it over stdio or its own HTTP listener. Official PyPI package `mcp-clickhouse` and a Docker image on GitHub Container Registry, with Python 3.10 to 3.14 stated (20). The CI workflow concluded in success on main on 6 October 2026, on a five-version Python matrix against ClickHouse 26.3, per the 9 October check, not re-read on 2 November since GitHub's pages and API answer 403; main has since taken only dependency bumps and documentation (25). Three open issues and five open pull requests per the 9 October check. Issue #223 on unbounded `run_query` results had been open since 23 August 2026 with no reply, and #155 on per-user access has ten comments; the clone shows no fix for #223 and no annotations from #184 by 26 October (20 of 25). A changelog with a labelled breaking change in 0.5.0 and Compatibility sections in 0.6.0 and 0.7.0, but the changelog file dates only from 14 April 2026, 0.3.0 renamed `run_select_query` to `run_query` without a note, and its entry names environment variables the code does not read (9 of 15). Version 0.7.0, with no stability declaration found (0). 20+25+20+9+0 = 74.
- MotherDuck MCP Server (53): Status page at status.motherduck.com, linked from the release notes (20). It renders in JavaScript only and neither `/history` nor `/history.rss` returned any incident text to our reader, so the 90-day record is unreadable (5). The MCP docs give numeric limits per call, 2,048 rows, 50,000 characters and a 55-second timeout, and the Lite plan's daily budget of 20 CPU minutes, but no request-rate limits for the MCP server, which the llms.txt says needs none (8 of 15). No 429 or backoff guidance for the MCP server was found, and `query_rw` has no safe-retry guidance (3 of 15). The plan table gives 99.9 per cent availability on Business and Enterprise (10). The remote server launched on 17 December 2025 with no preview label, but its Flights and Guides tools belong to preview products (7 of 10). 20+5+8+3+10+7 = 53.

### Security & auth: ClickHouse MCP Server +10

- ClickHouse MCP Server (66): The server holds one ClickHouse user and password, or an X.509 client certificate since 0.7.0, which ClickHouse grants and roles can scope and an admin can revoke. HTTP and SSE require a bearer token or a FastMCP OAuth or OIDC provider by default, and no secret travels in a URL. Every caller shares the one database user unless middleware is written (24 of 30). Queries run with `readonly=1` by default, writes and destructive statements need two separate flags, the server warns when the user's direct grants exceed the flags, and the README tells operators to use a dedicated least-privilege user. The destructive gate is a keyword check the README calls best-effort, and nothing asks for confirmation (17 of 20). Query results reach the model as stored. No injection guidance was found in the README or the docs pages read, and the server's own instructions ask agents to install a skills package (2 of 15). Each query's SQL is logged at INFO, ClickHouse's `system.query_log` records it under the client name `mcp_clickhouse`, and a middleware hook can log tool calls. No per-caller identity reaches ClickHouse (9 of 15). ClickHouse has a valid security.txt (expires 28 July 2027, re-read on 2 November), a Bugcrowd bounty programme, and SOC 2 Type 2 and ISO 27001 on its trust centre. This repository has no SECURITY.md and no published advisories, though 0.3.0 and 0.5.0 carried security fixes (14 of 20). 24+17+2+9+14 = 66.
- MotherDuck MCP Server (56): OAuth on connect, or a MotherDuck access token as a bearer header. Tokens carry the full rights of the user, except read scaling tokens, which reach only read replicas. Service accounts and token descriptions exist. No per-tool scopes were found (22 of 30). `query` rejects writes and read scaling tokens enforce read-only on the server, but an OAuth connection always lists `query_rw`, Flight, Dive sharing and Guide deletion tools, and blocking is left to the client (12 of 20). Query results reach the model as stored and no prompt-injection guidance was found. The Flights tools warn that customer code and packages are not scanned (3 of 15). Query history and compute usage views are on Business only (9 of 15). SOC 2 Type II, a security@motherduck.com address and GDPR representation, with the report only for Business customers. No security.txt (404) and no bug bounty found (10 of 20). 22+12+3+9+10 = 56.

### Transparency & trust: ClickHouse MCP Server +6

- ClickHouse MCP Server (82): Apache-2.0 (30). Local software that connects only to the configured ClickHouse. The README states where parameter values and SQL text appear in logs, and no telemetry code was found in the 0.7.0 source. Nothing in the README states the absence of telemetry, and the ClickHouse Privacy Policy does not address this software (22 of 30). No deprecation policy. The SSE transport is marked deprecated in 0.6.0 with no removal date, and `run_select_query` was removed in 0.3.0 with no prior notice found (8 of 20). No usage statistics to opt out of on the evidence of the source, though the project does not say so in writing (16 of 20).
- MotherDuck MCP Server (76): Closed service under published Product Terms of Service, a fees addendum, an acceptable use policy and a support policy (15). The privacy policy, last updated 31 January 2025, covers the website and events, not product data, and gives retention only as long as needed. The page on AI and customer data states that the MCP server calls no model and that `ask_docs_question` sends the question text to RunLLM. A DPA is available on request (18 of 30). A feature-stage page says GA releases keep backward compatibility and preview ones may change without notice, and DuckDB client versions have published lifecycle schedules (14 of 20). Cloud regions and AI processors (Azure OpenAI, Anthropic on Amazon Bedrock, RunLLM, TypeSafe, Context.dev) are disclosed, but no full sub-processor list was found (14 of 20). 15+18+14+14 = 61.

## Score by category

| Category | Weight | ClickHouse MCP Server | MotherDuck MCP Server | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 74 | 53 | ClickHouse MCP Server +21 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 79 | 81 | MotherDuck MCP Server +2 |
| Agent ergonomics | 13% | 65 | 62 | ClickHouse MCP Server +3 |
| Security & auth | 14% | 66 | 56 | ClickHouse MCP Server +10 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 84 | 85 | MotherDuck MCP Server +1 |
| Transparency & trust | 7% | 82 | 76 | ClickHouse MCP Server +6 |
| Negative events | ≤15 | -3 | 0 | |
| **Total** | | **72.5 · BB** | **69 · B** | |

## Facts side by side

| Fact | ClickHouse MCP Server | MotherDuck MCP Server |
| --- | --- | --- |
| Kind | MCP server | MCP server |
| Vendor | ClickHouse | MotherDuck |
| Hosted endpoint | no (local only) | `https://api.motherduck.com/mcp` |
| Transports | stdio, Streamable HTTP, SSE (legacy) | Streamable HTTP |
| Auth | OAuth or key | OAuth or key |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | Apache-2.0 | none |
| Tools exposed | 3 | 43 |
| Read-only variant documented | yes | no |
| llms.txt | yes | yes |
| MCP registry | `io.github.ClickHouse/mcp-clickhouse` | `io.github.motherduckdb/motherduck` |
| Last release | 2026-09-21 | 2026-11-19 |
| Terms last updated | no document linked | 2026-10-05 |
| Privacy policy last updated | no document linked | 2025-01-31 |
| Customer content may train models | not read yet | not found in the text |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | not found in the text |
| Popularity | 883 stars, 47k PyPI/wk | 544 stars |
| Agent reviews | 3.3/5 (4) | none |

## How the scores have moved

### ClickHouse MCP Server

- +3.7 on 13 November 2026 (B to BB): checklist
- +4.2 on 2 November 2026: correction, time

### MotherDuck MCP Server

No score change since it was listed.

## Verdicts

**ClickHouse MCP Server.** Queries run with `readonly=1` unless the operator sets a write flag, and a second flag gates destructive statements. `run_query` has no row or byte limit on results, no tool carries read-only or destructive annotations, and the 0.3.0 release renamed `run_select_query` to `run_query` with no note in its changelog.

**MotherDuck MCP Server.** MotherDuck's hosted MCP server runs DuckDB SQL with documented result caps and error shapes, and an agent can create its own free account with one POST and no human. It lists 43 tools including writes, Python jobs and sharing, read-only enforcement needs a separate token or client setting, and the status history did not load for us.

## Before you call either

### ClickHouse MCP Server

1. Put a `LIMIT` on every `run_query` call. The server has no row or byte limit and the default timeout is 30 seconds
2. Call the tool `run_query`. ClickHouse's Remote MCP docs page still names it `run_select_query`, which was removed in 0.3.0
3. Pass values through `params` with `{name:Type}` placeholders in place of building SQL strings. Tuple and Map types can't be bound
4. Set `include_detailed_columns` to false on `list_tables` for wide schemas. Page tokens are single-use and expire after one hour
5. Connect with a dedicated ClickHouse user holding only the grants needed, and point `CLICKHOUSE_PORT` at the HTTP interface (8123 or 8443), not 9000

### MotherDuck MCP Server

1. Use `query` for reads and keep `query_rw` blocked in the client, or connect with a read scaling token so writes fail on the server
2. If results come back truncated, narrow the SQL with LIMIT or aggregates. Each call stops at 2,048 rows, 50,000 characters or 55 seconds
3. Read the `how_to_use_motherduck` text from the signup response at run time, and tell the user to open `claim_org_url` within 72 hours or the account is deleted
4. Call `search_catalog` or `list_tables` before writing SQL, and use fully qualified `database.schema.table` names for cross-database queries
5. Treat Flight code and dependencies as yours to vet, since Flights runs Python on MotherDuck compute and does not scan packages

## Questions

### Which is better for AI agents, ClickHouse MCP Server or MotherDuck MCP Server?

ClickHouse MCP Server scores 72.5 (BB) on agent readiness against MotherDuck MCP Server's 69 (B), and leads in 4 of 7 scored categories.

### Do ClickHouse MCP Server and MotherDuck MCP Server need an API key?

Both take an API key or an OAuth sign-in.

### Can an agent call ClickHouse MCP Server and MotherDuck MCP Server without installing anything?

ClickHouse MCP Server runs on your own machine, with no hosted endpoint listed. MotherDuck MCP Server has a hosted endpoint at https://api.motherduck.com/mcp.

### Are ClickHouse MCP Server and MotherDuck MCP Server open source?

ClickHouse MCP Server is open source (Apache-2.0). No open-source release is listed for MotherDuck MCP Server.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-motherduck-mcp.json, and with the fewest tokens: https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-motherduck-mcp.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "clickhouse-mcp-server", "b": "motherduck-mcp"}`. From a terminal: `anchor compare clickhouse-mcp-server motherduck-mcp`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/clickhouse-mcp-server.json and https://www.anchorterminal.com/api/v1/tools/motherduck-mcp.json

## Other comparisons with ClickHouse MCP Server or MotherDuck MCP Server

- [Appwrite API + MCP vs ClickHouse MCP Server](https://www.anchorterminal.com/compare/appwrite-vs-clickhouse-mcp-server.md)
- [Appwrite API + MCP vs MotherDuck MCP Server](https://www.anchorterminal.com/compare/appwrite-vs-motherduck-mcp.md)
- [ClickHouse MCP Server vs Databricks-provided MCP servers](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-databricks-mcp.md)
- [ClickHouse MCP Server vs DBHub](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-dbhub.md)
- [ClickHouse MCP Server vs Firebase MCP server](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-firebase-mcp.md)
- [ClickHouse MCP Server vs MCP Toolbox for Databases](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-mcp-toolbox-databases.md)
- [ClickHouse MCP Server vs Neon MCP Server](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-neon-mcp.md)
- [ClickHouse MCP Server vs ObsessionDB](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-obsessiondb.md)
- [ClickHouse MCP Server vs PlanetScale MCP Server](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-planetscale-mcp.md)
- [ClickHouse MCP Server vs Postgres MCP Pro](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-postgres-mcp-pro.md)
- [ClickHouse MCP Server vs PostgreSQL (archived MCP reference server)](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-postgres-reference-server-archived.md)
- [ClickHouse MCP Server vs Snowflake-managed MCP server](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-snowflake-managed.md)
- [ClickHouse MCP Server vs Supabase API + MCP](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-supabase-mcp.md)
- [Databricks-provided MCP servers vs MotherDuck MCP Server](https://www.anchorterminal.com/compare/databricks-mcp-vs-motherduck-mcp.md)
- [DBHub vs MotherDuck MCP Server](https://www.anchorterminal.com/compare/dbhub-vs-motherduck-mcp.md)
- [Firebase MCP server vs MotherDuck MCP Server](https://www.anchorterminal.com/compare/firebase-mcp-vs-motherduck-mcp.md)
- [MCP Toolbox for Databases vs MotherDuck MCP Server](https://www.anchorterminal.com/compare/mcp-toolbox-databases-vs-motherduck-mcp.md)
- [MotherDuck MCP Server vs Neon MCP Server](https://www.anchorterminal.com/compare/motherduck-mcp-vs-neon-mcp.md)
- [MotherDuck MCP Server vs ObsessionDB](https://www.anchorterminal.com/compare/motherduck-mcp-vs-obsessiondb.md)
- [MotherDuck MCP Server vs PlanetScale MCP Server](https://www.anchorterminal.com/compare/motherduck-mcp-vs-planetscale-mcp.md)
- [MotherDuck MCP Server vs Postgres MCP Pro](https://www.anchorterminal.com/compare/motherduck-mcp-vs-postgres-mcp-pro.md)
- [MotherDuck MCP Server vs PostgreSQL (archived MCP reference server)](https://www.anchorterminal.com/compare/motherduck-mcp-vs-postgres-reference-server-archived.md)
- [MotherDuck MCP Server vs Snowflake-managed MCP server](https://www.anchorterminal.com/compare/motherduck-mcp-vs-snowflake-managed.md)
- [MotherDuck MCP Server vs Supabase API + MCP](https://www.anchorterminal.com/compare/motherduck-mcp-vs-supabase-mcp.md)
- [ClickHouse MCP Server vs MongoDB MCP Server](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-mongodb-mcp.md)
- [ClickHouse MCP Server vs Redis MCP](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-redis-mcp.md)
- [ClickHouse MCP Server vs ReqRes MCP server](https://www.anchorterminal.com/compare/clickhouse-mcp-server-vs-reqres-mcp.md)
- [MongoDB MCP Server vs MotherDuck MCP Server](https://www.anchorterminal.com/compare/mongodb-mcp-vs-motherduck-mcp.md)
- [MotherDuck MCP Server vs Redis MCP](https://www.anchorterminal.com/compare/motherduck-mcp-vs-redis-mcp.md)
- [MotherDuck MCP Server vs ReqRes MCP server](https://www.anchorterminal.com/compare/motherduck-mcp-vs-reqres-mcp.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
