Skip to content

MotherDuck MCP Server

Query MotherDuck cloud data or local DuckDB files with SQL from Claude.

Officialby MotherDuckHosted or on your computerChecked November 18, 2026

MotherDuck's hosted MCP server lets Claude browse your MotherDuck databases, search the catalog, run SQL in DuckDB's dialect and build Dives (interactive data visualizations), with a read-only query tool and a separate read-write tool, query_rw, that you can block. The open-source local server runs SQL the same way on DuckDB files, in-memory databases and S3 data, and opens a file read-only unless you pass --read-write; MotherDuck's Lite plan starts free with 10 GB of storage.

Who is MotherDuck MCP for?

  • Analysts using DuckDB or MotherDuck
  • Data engineers exploring files and tables
  • Solo founders who want quick answers from their data

What can you ask MotherDuck MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
List my MotherDuck databases and the tables in the analytics one.
Prompt 2
Which product categories grew fastest month over month this year?
Prompt 3
Compare revenue by region for the last two quarters using the sales table.

How to connect MotherDuck to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, ChatGPT, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the MotherDuck MCP server to Claude Code for me: run this command: claude mcp add --transport http MotherDuck https://api.motherduck.com/mcp
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

claude mcp add --transport http MotherDuck https://api.motherduck.com/mcp

Type /mcp inside Claude Code, pick the server and choose Authenticate to sign in.

Hosted address: https://api.motherduck.com/mcp

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

Run /mcp to sign in; for a local DuckDB file use claude mcp add --transport stdio duckdb -- uvx mcp-server-motherduck --db-path /absolute/path/to/db.duckdb instead, which opens the file read-only.

How did we check MotherDuck MCP?

Sources read on November 8, 2026 and reread on November 18: MotherDuck's MCP setup and read-only access guides, its MCP tool reference (core, Dive, Flight and Guide tools), its pricing page and the motherduckdb/mcp-server-motherduck repo (MIT, release v1.1.1 of November 11, 543 stars) with its PyPI package; the Claude connectors directory listing (made by MotherDuck Corporation) was read on November 8. On both days the hosted endpoint answered our initialize request with HTTP 401 and an OAuth challenge; we did not sign in or run queries.

Source: motherduck.com/docs/key-tasks/ai-and-motherduck/mcp-setup/

What do people ask about MotherDuck MCP?

Is the MotherDuck MCP server free?

Connecting it costs nothing extra; queries use your MotherDuck plan. On November 18, 2026 the Lite plan started at $0 with 10 GB of storage and 10 hours of Pulse compute a month, and Business cost $250 per organization a month plus usage.

How do I stop Claude from using query_rw?

In Claude, open Settings, Connectors, MotherDuck and block query_rw; in Claude Code, add mcp__MotherDuck__query_rw to the deny list in settings.json. For a server-side guarantee, connect with a read scaling token, which goes to read replicas that reject writes but can lag a few minutes behind.

Should a coding agent use MCP or the MotherDuck CLI?

MotherDuck suggests MCP for exploring data and answering questions in a chat, and its CLI for agents that have a shell and a filesystem, because large results and file work go to disk instead of through the model's context. The two can run side by side.

Is the local server safe to share with other people?

Not as it is. MotherDuck notes that read-only mode alone still lets DuckDB read local files and change settings, so a self-hosted server needs extra hardening before third parties use it. Results are capped at 1,024 rows and 50,000 characters by default (--max-rows, --max-chars).

Can Claude turn my MotherDuck data into a chart?

Yes, through the hosted server's Dive tools: Claude creates a Dive, an interactive visualization of your data, and clients that support the Dive Viewer MCP App show it inline so you can refine it against live data. For the questions behind the chart, the first lesson of our Claude Code course is free to read on the course page: it sets up the folder and CLAUDE.md file Claude works from. The full course is in early access.

We wrote these answers from the official pages of each product named, read on November 18, 2026.

Using servers like MotherDuck from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.