# MotherDuck MCP server

> Ask in plain English to find tables, run SQL on MotherDuck, and read or update your Dives.

## Server URL

`https://api.motherduck.com/mcp` (Streamable HTTP)

- Sign-in: Sign in with MotherDuck
- Connect in RevampKey: https://revampkey.com/marketplace/motherduck

## Agent skills (4)

- [MotherDuck Connector with AI: Safe Setup and Query Guidance](https://revampkey.com/marketplace/motherduck/skills/essentials.md): Works out which database and access level you mean before any query, picks the lightest tool for the job, and asks for your explicit yes before anything changes data or shares it.
- [MotherDuck Data Quality Audit with AI: Nulls, Duplicates and Freshness](https://revampkey.com/marketplace/motherduck/skills/data-quality-audit.md): Runs a read-only audit of a database or table for nulls, duplicates, unexpected values, freshness gaps and suspicious row counts. It returns a prioritised findings report with counts and evidence, and changes no data.
- [MotherDuck Dive Authoring and Sharing with AI](https://revampkey.com/marketplace/motherduck/skills/dive-authoring-and-sharing.md): Turns one business question into a clear, verified MotherDuck Dive, reviews and updates existing Dives without breaking them, and asks before sharing any data.
- [MotherDuck Schema Explorer and Data Q&A with AI](https://revampkey.com/marketplace/motherduck/skills/explore-schema-and-answer-data-questions.md): Maps an unfamiliar MotherDuck database through its tables and columns, then writes read-only SQL to answer a business question. It checks grain, joins and sample sizes before reporting a number, and asks before changing anything.

All skills: https://revampkey.com/marketplace/motherduck/skills.md

MotherDuck is a cloud data warehouse built on DuckDB, the open-source analytics database. It runs serverless. Each user, dashboard, and agent session can get its own isolated DuckDB instance, which MotherDuck calls a Duckling. Teams use it for analytics and for data apps. Data engineers load pipelines into it. Teams building AI agents use it to give those agents fast queries over their data.

To connect MotherDuck, click Connect in RevampKey and approve access on MotherDuck's own sign-in page. After that, you can ask the agent to list your databases, tables, and columns, and to search the catalog for a name. It can run SQL queries for you. It can also answer questions from DuckDB and MotherDuck documentation.

You can also work with Dives, which MotherDuck describes as interactive data visualizations. The agent can list your Dives, read one, save a Dive, and share its data. It can update or delete a Dive, but it asks you first each time. It can also fetch the Dive guide.

## What you can do

### Checking a number before a meeting

A sales lead wants last month's order count by region. She asks the agent. It finds the orders table and its columns with list_tables and list_columns. Then it runs a query and returns the totals in a short table. Nothing in her databases changes.

### Updating a Dive before a review

Before a Monday review, a sales lead asks the agent to find her weekly revenue Dive. The agent lists her Dives with list_dives and reads the chosen one with read_dive. She asks it to change the chart title. The agent asks her to confirm before it runs update_dive.

### Finding the right DuckDB syntax

A new analyst is unsure how to write a window function in DuckDB. She asks the agent. It uses ask_docs_question to pull an answer from DuckDB and MotherDuck documentation. Then it runs a small test query with query on a table she names, so she can see the result.

## Things to ask

- Which tables in my analytics database have a customer_id column?
- Run a query that totals orders by region for last month.
- How do I use QUALIFY in DuckDB SQL?
- Show me my Dives and open the one called weekly revenue.
- Change the title of my weekly revenue Dive to Q3 revenue, but ask me first.

## What the agent can do

### Databases, shares, tables and columns

Ask which databases, shares, tables, and columns exist, or search the catalog for a name. Use this to find the right table before you write a query. These tools only read.

`list_databases`, `list_shares`, `list_tables`, `list_columns`, `search_catalog`

### Running SQL

Run SQL against your MotherDuck databases. query runs read-only SQL. query_rw runs read-write SQL, so review what it will run before you approve it.

`query`, `query_rw`

### Documentation questions

Ask how DuckDB or MotherDuck works, such as syntax, settings, or features. The agent answers from DuckDB and MotherDuck documentation.

`ask_docs_question`

### Dives

List, read, and save Dives, and share their data. Fetch the Dive guide for building one. Updating or deleting a Dive needs your approval, and the agent asks you first each time.

`get_dive_guide`, `list_dives`, `read_dive`, `save_dive`, `update_dive`, `delete_dive`, `share_dive_data`

## FAQ

### What do I need to connect MotherDuck to RevampKey?

You need access to MotherDuck databases. In RevampKey, click Connect for MotherDuck. You then approve access on MotherDuck's own sign-in page, which uses OAuth. Once you approve, the agent can work with the databases and Dives your account can reach.

### What can the agent do in MotherDuck, and what can't it do?

It can list databases, tables, and columns, run SQL queries, answer documentation questions, and list, read, and save Dives. It can update or delete a Dive, but only after you approve it. It does not have tools for Flights or Guides, so it cannot manage those.

### Where does my data go, and what needs approval?

Your data is processed in your MotherDuck organization's region. Query results pass through MotherDuck's remote server. The agent asks before it updates or deletes a Dive. Check the agent's answers before you rely on them.

### Can I make the MotherDuck agent read-only?

MotherDuck's docs describe a way to restrict its MCP server to read-only access. The agent also has read-write tools such as query_rw, so use that setting if you want reads only. The docs do not say how it applies to a RevampKey connection, so check MotherDuck's MCP server docs.

### What is the MotherDuck MCP server URL?

The MotherDuck MCP server URL is https://api.motherduck.com/mcp. It uses the Streamable HTTP transport, so any client that supports remote MCP servers can connect to it.

### How does the MotherDuck MCP server authenticate?

With MotherDuck's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

### What can an AI agent do with the MotherDuck MCP server?

It exposes 15 tools: 13 that read and 2 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for MotherDuck?

Yes. 4 SKILL.md playbooks teach an agent how to do real MotherDuck work step by step. RevampKey installs them when you connect MotherDuck; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (15)

- `ask_docs_question`
- `delete_dive` (changes data)
- `get_dive_guide`
- `list_columns`
- `list_databases`
- `list_dives`
- `list_shares`
- `list_tables`
- `query`
- `query_rw`
- `read_dive`
- `save_dive`
- `search_catalog`
- `share_dive_data`
- `update_dive` (changes data)

## Details

- Maker: MotherDuck Corporation
- Setup: Sign in with your account
- Category: Data & analytics
- Documentation: https://motherduck.com/docs/sql-reference/mcp/

Page: https://revampkey.com/marketplace/motherduck
