Mmcp.market

Motherduck MCP server

by motherduckdb·io.github.motherduckdb/mcp-server-motherduck·v1.0.8

SQL analytics and data engineering for AI Assistants and IDEs

A85/100grade A
What users say
No reviews yet
Be the first
Safety scan
A85/100

full report

Adoption
Growing

523 stars

Reviews

Write one

Nobody has reviewed Motherduck yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Motherduck tools (5, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • execute_querywrite action

    Execute a SQL query on the DuckDB or MotherDuck database. Unqualified table names resolve to current_database() and current_schema() automatically. Fully qualified names (database.schema.table) are only needed when multiple DuckDB databases are attached or when connected to MotherDuck.

  • list_columns

    List all columns of a table or view with their types and comments. If database/schema are not specified, uses the current database/schema.

  • list_databases

    List all databases available in the connection. Useful when multiple DuckDB databases are attached or when connected to MotherDuck.

  • list_tables

    List all tables and views in a database with their comments. If database is not specified, uses the current database.

  • switch_database_connection

    Switch to a different database connection. For local files, use absolute paths only. The new connection respects the server's read-only/read-write mode. For local files, the file must exist unless create_if_not_exists=True (requires read-write mode).

Public scan report

scanner v0.1.9 · 2026-09-22 · same rubric, same numbers if you re-run it

no findings
  • Code scan15 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 4 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
Overall 85/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

From the Motherduck repository's README, as published. We do not edit it. Read it on GitHub

DuckDB / MotherDuck Local MCP Server

SQL analytics and data engineering for AI Assistants and IDEs.

Connect AI assistants to your data using DuckDB's powerful analytical SQL engine. Supports connecting to local DuckDB files, in-memory databases, S3-hosted databases, and MotherDuck. Allows executing SQL read- and write-queries, browsing database catalogs, and switching between different database connections on-the-fly.

Looking for a fully-managed remote MCP server for MotherDuck? → Go to the MotherDuck Remote MCP docs

Remote vs Local MCP

📝 Migrating from v0.x?

- Read-only by default: The server now runs in read-only mode by default. Add --read-write to enable write access. See Securing for Production.

- Default database changed: --db-path default changed from md: to :memory:. Add --db-path md: explicitly for MotherDuck.

- MotherDuck read-only requires read-scaling token: MotherDuck connections in read-only mode require a read-scaling token. Regular tokens require --read-write.

Quick Start

Prerequisites: Install uv via pip install uv or brew install uv

Connecting to In-Memory DuckDB (Dev Mode)

{
  "mcpServers": {
    "DuckDB (in-memory, r/w)": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", ":memory:", "--read-write", "--allow-switch-databases"]
    }
  }
}

Full flexibility with no guardrails — read-write access and the ability to switch to any database (local files, S3, or MotherDuck) at runtime.

Connecting to a Local DuckDB File in Read-Only Mode

{
  "mcpServers": {
    "DuckDB (read-only)": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", "/absolute/path/to/your.duckdb"]
    }
  }
}

Connects to a specific DuckDB file in read-only mode. Won't hold on to the file lock, so convenient to use alongside a write connection to the same DuckDB file. You can also connect to remote DuckDB files on S3 using s3://bucket/path.duckdb — see Environment Variables for S3 authentication. If you're considering third-party access to the MCP, see Securing for Production.

Connecting to MotherDuck in Read-Write Mode

{
  "mcpServers": {
    "MotherDuck (local, r/w)": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", "md:", "--read-write"],
      "env": {
        "motherduck_token": "<YOUR_MOTHERDUCK_TOKEN>"
      }
    }
  }
}

See Command Line Parameters for more options, Securing for Production for deployment guidance, and Troubleshooting if you encounter issues.

Client Setup

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Install directly

claude mcp add mcp-server-motherduck -- uvx mcp-server-motherduck
Add to Cursor

Motherduck: common questions

Is Motherduck MCP server safe?
Yes, by our scan: it is graded A (85/100). Read the Motherduck safety report
How do I install Motherduck?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does Motherduck need an API key?
Yes. The registry entry asks for motherduck_token, MOTHERDUCK_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and 1 more.
Is Motherduck maintained?
The last commit was 6 days ago (2026-09-19). The latest release is v1.0.8.
What can I use instead of Motherduck?
Servers from other publishers that do the same job: fabric-dw MCP server, DBHub MCP server and GeoLens MCP server. Compare all Motherduck alternatives.

Alternatives to Motherduck

Same job from other publishers: the closest match first, then the best rated.

All Motherduck alternatives →
  • fabric-dw
    MCP server for Microsoft Fabric Data Warehouses and SQL Analytics Endpoints
    A
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • GeoLens
    Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.
    B
  • LINQ to DB
    Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.
    A
  • StackQL MCP Server
    SQL-native query and provisioning engine for cloud infrastructure, served over MCP.
    A

More from motherduckdb →