MotherDuck MCP Server

Databasestdiohttp-streaming
Repository

Official MCP server for DuckDB and MotherDuck. Lets AI assistants run SQL analytics directly against local DuckDB files, in-memory databases, S3-hosted data, and MotherDuck cloud warehouses. Supports read and write queries, browsing database catalogs, and switching between connections on the fly, making it well suited for conversational data exploration and lightweight analytics.

Connect

Add this configuration to .claude/mcp.json

Transport:
{
  "mcpServers": {
    "motherduck": {
      "command": "uvx",
      "args": [
        "mcp-server-motherduck",
        "--db-path",
        "md:"
      ],
      "env": {
        "motherduck_token": "<YOUR_motherduck_token>"
      }
    }
  }
}

Tools (1)

query

Execute a SQL query against DuckDB or MotherDuck and return the results.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "SQL statement to execute (read or write)"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
MotherDuck (@motherduckdb)
Repository
https://github.com/motherduckdb/mcp-server-motherduck
Stars
0
Last Updated
July 12, 2026