Part of our Data & Analytics MCP category.

At a glance (GitHub API, checked 2026-11-10): motherduckdb/mcp-server-motherduck has 540 stars and 91 forks, MIT license, Python, latest release v1.1.0 (October 7, 2026). The local server exposes 4 tools plus an optional fifth; a separate hosted remote server has its own, larger toolset. PyPI downloads: ~18.8K in the last month, ~5.1K in the last week (pypistats, same date).

DuckDB is an embedded analytical database (42.9K GitHub stars). MotherDuck, the company that offers a managed cloud service around it, publishes an official MCP server that connects AI agents to DuckDB across local files, in-memory databases, S3-hosted databases, and MotherDuck itself, per the README.

There are two forms. The local open-source server runs on your machine. The remote server is hosted by MotherDuck at api.motherduck.com/mcp, connects through OAuth for most clients, and per MotherDuck’s docs is “fully managed, read-write.”

What It Does

Local server tools (README):

  • execute_query — runs SQL (DuckDB dialect)
  • list_databases — lists databases
  • list_tables — lists tables and views, optionally by database/schema
  • list_columns — lists columns of a table or view
  • switch_database_connection — switches databases; requires the --allow-switch-databases flag

All tools return JSON; results are limited by default to 1024 rows / 50,000 characters, configurable with --max-rows and --max-chars.

Remote server capabilities (MotherDuck docs): read-only and read-write SQL, schema exploration, attaching and detaching shares, documentation questions, and tools for creating and managing Dives (interactive visualizations), Flights (scheduled Python jobs), and Guides (markdown documents with org-specific metric definitions). MotherDuck also documents how to restrict the remote server to read-only access.

Setup

Local server (open-source):

{
  "mcpServers": {
    "motherduck": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", "my_database.db"]
    }
  }
}

Per the README: --db-path md: with a motherduck_token environment variable connects to MotherDuck, and s3://bucket/path.duckdb connects to a remote DuckDB file on S3. The README also provides one-click installs or CLI commands for Claude Desktop, Claude Code, Codex CLI, Gemini CLI, Cursor, VS Code, and Kiro.

Key flags (README command-line table): --read-write (default False) enables writes; --allow-switch-databases (default False) enables the switch tool; --max-rows (1024) and --max-chars (50000) cap results; --query-timeout (default -1, i.e. disabled) sets a timeout in seconds; --init-sql runs SQL on startup.

What’s Good

Read-only by default on the local server. Writes require an explicit --read-write flag, so a misconfigured agent connected to a local file can’t mutate it by default. The README also says read-only mode doesn’t hold the DuckDB file lock, so it can run alongside a write connection to the same file.

Two deployment options. The README’s remote-vs-local table lists the local server as the one that can query across local and remote databases and ingest from or export to the local filesystem; the remote server is zero-setup and hosted.

Active maintenance. The repo was last pushed on 2026-10-30 and has had eight releases between v1.0.2 (March 3, 2026) and v1.1.0 (October 7, 2026), per the releases page. v1.0.5 (April 28, 2026) shipped a fix redacting motherduck_token from switch_database_connection responses, merged the same day.

The --init-sql bug was fixed. Issue #79 (only the first statement of a multi-statement file ran) is now closed.

What’s Not

A credential leak shipped before it was fixed. Before v1.0.5, motherduck_token could appear in switch_database_connection responses (PR #83). It was fixed, but the token surfaced in tool output at all.

Coarse write permissions. --read-write is a single switch in the README’s flag table; we found no per-table or per-schema permission setting in it. The README points to the DuckDB securing guide and --init-sql for hardening, and recommends the remote server for third-party access. --query-timeout is disabled by default.

Small local toolset. Four to five tools means the agent does most of its work by writing SQL.

Open issue count. The GitHub API shows 8 open issues/PRs as of 2026-11-10.

Pricing, as listed. MotherDuck’s pricing page lists a Lite plan at $0 per org/month and a Business plan at $250 per org/month, with storage at $0.04 per GB/month on both and Pulse compute at $0.60 per CU hour.

Supply-chain context. In September 2025, Aikido reported that the duckdb npm package (148,000 weekly downloads, per Aikido) and related @duckdb packages were compromised with a payload that tried to drain crypto wallets. This concerned npm packages; the MCP server is distributed through PyPI.

Alternatives

The community server ktanaka101/mcp-server-duckdb has 179 stars and its last push was May 5, 2025 (GitHub API, 2026-11-10); it appears unmaintained. The SQLite MCP server is a local-only option; see our review for its current status. For a managed analytics alternative, see our Tinybird MCP review.

Rating: 4/5

A maintained, official database MCP server with a read-only default on the local server, a clear remote/local split, and recent releases. It loses points for the earlier token leak, all-or-nothing write access, a disabled-by-default query timeout, and a small local toolset.

Use this if: you use DuckDB for analytics and want agents to run SQL against local files, S3 data, or a MotherDuck warehouse.

Skip this if: you need a general database admin server (consider Postgres MCP or Supabase MCP), or transactional write-heavy access.

This review was researched and written by an AI agent (Claude, Anthropic). We did not hands-on test this server — our analysis is based on public documentation, GitHub data, and PyPI statistics. Claim-level source audit completed 2026-11-10.