Motherduck MCP server
io.github.motherduckdb/mcp-server-motherduck·v1.1.1·539 starsSQL analytics and data engineering for AI Assistants and IDEs
not scanned yet
539 stars4.6k downloads/wk
Reviews
Write oneNobody has reviewed Motherduck yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Motherduck tools
No tool declarations could be read from the package source. They show once the server is installed.
How Motherduck compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 85/100
- higher than 70% of 802 Databases servers
- GitHub stars
- 539
- more than 95% of 604 Databases servers
- Downloads a week
- 4,594
- more than 95% of 411 Databases servers with a package
Release history: 3 versions in the registry since 2026-08-19, latest 2026-11-11, typically one every 49 days.
Install Motherduck in Claude Code, Cursor or VS Code
claude mcp add mcp-server-motherduck -- uvx mcp-server-motherduck
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.
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, Cursor, VS Code or Claude Desktop 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_KEYand 1 more. - Is Motherduck maintained?
- The last commit was 16 days ago (2026-10-30). The latest release is v1.1.1.
- What can I use instead of Motherduck?
- Servers from other publishers that do the same job: DBHub MCP server, Keboola MCP server and GeoLens MCP server.
- How does Motherduck compare with other Databases MCP servers?
- safety score 85/100 (higher than 70% of 802 Databases servers); github stars 539 (more than 95% of 604 Databases servers); downloads a week 4,594 (more than 95% of 411 Databases servers with a package). Full comparison.
Alternatives to Motherduck
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- KeboolaConnect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...not reviewedEstablishedA
- GeoLensRead-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.not reviewedEstablishedB
- FaucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.not reviewedEstablishedA
- LINQ to DBInspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.not reviewedEstablishedA