MCP Server Motherduck
MCP Server Motherduck is an MCP server that adds data and analytics tools to AI assistants such as Claude Desktop, Claude Code and Cursor. SQL analytics and data engineering for AI Assistants and IDEs. It has 526 GitHub stars, is released under the MIT license and runs locally with uvx mcp-server-motherduck.
github.com/motherduckdb/mcp-server-motherduck (opens in a new tab)
- Needs API key
- Data & analytics
- MIT
- Actively maintained
Install MCP Server Motherduck
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"mcp-server-motherduck": {
"command": "uvx",
"args": [
"mcp-server-motherduck"
],
"env": {
"MOTHERDUCK_TOKEN": "your-value",
"AWS_ACCESS_KEY_ID": "your-value",
"AWS_SECRET_ACCESS_KEY": "your-value",
"AWS_SESSION_TOKEN": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env MOTHERDUCK_TOKEN=your-value --env AWS_ACCESS_KEY_ID=your-value --env AWS_SECRET_ACCESS_KEY=your-value --env AWS_SESSION_TOKEN=your-value --transport stdio mcp-server-motherduck -- uvx mcp-server-motherduckCursor
{
"mcpServers": {
"mcp-server-motherduck": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-motherduck"
],
"env": {
"MOTHERDUCK_TOKEN": "your-value",
"AWS_ACCESS_KEY_ID": "your-value",
"AWS_SECRET_ACCESS_KEY": "your-value",
"AWS_SESSION_TOKEN": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "motherduck_token",
"description": "MOTHERDUCK_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "aws_access_key_id",
"description": "AWS_ACCESS_KEY_ID",
"password": true
},
{
"type": "promptString",
"id": "aws_secret_access_key",
"description": "AWS_SECRET_ACCESS_KEY",
"password": true
},
{
"type": "promptString",
"id": "aws_session_token",
"description": "AWS_SESSION_TOKEN",
"password": true
}
],
"servers": {
"mcp-server-motherduck": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-motherduck"
],
"env": {
"MOTHERDUCK_TOKEN": "${input:motherduck_token}",
"AWS_ACCESS_KEY_ID": "${input:aws_access_key_id}",
"AWS_SECRET_ACCESS_KEY": "${input:aws_secret_access_key}",
"AWS_SESSION_TOKEN": "${input:aws_session_token}"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
MOTHERDUCK_TOKENsecret | No | Access token for MotherDuck connections (alternative to --motherduck-token) |
HOME | No | Used by DuckDB for extensions and config. Override with --home-dir if not set. |
AWS_ACCESS_KEY_IDsecret | No | AWS access key for S3 database connections |
AWS_SECRET_ACCESS_KEYsecret | No | AWS secret access key for S3 database connections |
AWS_SESSION_TOKENsecret | No | AWS session token for temporary credentials |
AWS_DEFAULT_REGION | No | AWS region for S3 database connections |
AWS_ENDPOINT | No | AWS endpoint for S3 database connections |
Tools (4)
Parsed from the Tools section of the README; check the repository for the current list.
execute_queryExecute SQL query (DuckDB dialect)
list_databasesList all databases (useful for MotherDuck or multiple attached DBs)
list_tablesList tables and views
list_columnsList columns of a table/view
About MCP Server Motherduck
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.
- ai
- duckdb
- motherduck
Similar MCP servers
More data & analytics MCP servers
Ida Pro MCP
mrexodia/ida-pro-mcp
AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Data & analyticsPythonAsk Jev
pollinations/pollinations
Evaluate state with typed choice, score, and probability questions.
Data & analyticsTypeScriptJitsu
jitsucom/jitsu
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
OfficialData & analyticsTypeScriptGoogle Ads + Meta Ads + SEO/GEO MCP
irinabuht12-oss/google-ads-meta-ads-mcp
Google Ads, Meta Ads, SEO, GEO & GA4 MCP by Ryze AI - audits, reports, keywords, Search Console.
Data & analyticsBlitz
blitzdotdev/blitz-mac
Give AI agents full control over iOS/macOS development via a native macOS app with 30+ MCP tools.
Data & analyticsSwiftChunkhound
chunkhound/chunkhound
Your entire engineering context, deeply understood.
OfficialData & analyticsPython
What is MCP Server Motherduck?
MCP Server Motherduck is an MCP server that adds data and analytics tools to AI assistants such as Claude Desktop, Claude Code and Cursor. SQL analytics and data engineering for AI Assistants and IDEs. It has 526 GitHub stars, is released under the MIT license and runs locally with uvx mcp-server-motherduck. The source code is at github.com/motherduckdb/mcp-server-motherduck.
How do I install the MCP Server Motherduck MCP server?
Add the command uvx mcp-server-motherduck to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is MCP Server Motherduck free?
The server is open source under the MIT license, so running it is free. It needs credentials (MOTHERDUCK_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN) for the service it connects to, which may require a paid account.
Is MCP Server Motherduck actively maintained?
The most recent commit was on Aug 19, 2026. The latest release is v1.0.8, published Aug 19, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.