MotherDuck
让智能体通过 SQL 读写 MotherDuck 和 DuckDB 中的数据,并查看数据库目录。 摘要由 AI Index 撰写。
Registry 描述:SQL analytics and data engineering for AI Assistants and IDEs
添加到你的客户端
把 MotherDuck MCP 服务器添加到 Claude Code
运行命令
claude mcp add motherduck -- uvx mcp-server-motherduck填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Cursor
打开 mcp.json· 文件位置:
~/.cursor/mcp.json,.cursor/mcp.json粘贴服务器配置
{ "mcpServers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 VS Code
打开 mcp.json· 文件位置:
.vscode/mcp.json粘贴服务器配置
{ "servers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Codex
运行命令
codex mcp add motherduck -- uvx mcp-server-motherduck填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Devin Desktop
打开 mcp_config.json· 文件位置:
~/.config/devin/mcp_config.json,%APPDATA%\devin\mcp_config.json粘贴服务器配置
{ "mcpServers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Gemini CLI
打开 settings.json· 文件位置:
~/.gemini/settings.json,.gemini/settings.json粘贴服务器配置
{ "mcpServers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 GitHub Copilot
运行命令
copilot mcp add motherduck -- uvx mcp-server-motherduck填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Cline
打开 cline_mcp_settings.json· 文件位置:
~/.cline/data/settings/cline_mcp_settings.json粘贴服务器配置
{ "mcpServers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Kiro
打开 mcp.json· 文件位置:
.kiro/settings/mcp.json,~/.kiro/settings/mcp.json粘贴服务器配置
{ "mcpServers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 Zed
打开 settings.json
粘贴服务器配置
{ "context_servers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ], "env": {} } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 OpenCode
打开 opencode.json· 文件位置:
~/.config/opencode/opencode.json,opencode.json粘贴服务器配置
{ "$schema": "https://opencode.ai/config.json", "mcp": { "motherduck": { "type": "local", "command": [ "uvx", "mcp-server-motherduck" ], "enabled": true } } }填写取值 ↓
确认已连接
把 MotherDuck MCP 服务器添加到 JetBrains AI Assistant
打开 JetBrains AI Assistant 的 MCP 配置
- 打开 Settings | Tools | AI Assistant | Model Context Protocol (MCP)。
- 选择 Add。
粘贴服务器配置
{ "mcpServers": { "motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } }填写取值 ↓
确认已连接
如果文件里已有其他服务器,把这一项加到已有的对象里。 确认是否已连接:重启或重新加载客户端,在它的 MCP 服务器列表里找到 motherduck。需要登录的服务器会在第一次使用时打开登录。
需要填写的值
必填项以 <NAME> 占位符出现在片段里;可选项按同样方式添加。说明来自服务器在 Registry 里的条目。
<motherduck_token>环境变量 可选 · 密钥Access token for MotherDuck connections (alternative to --motherduck-token)
<MOTHERDUCK_TOKEN>环境变量 可选 · 密钥Access token for MotherDuck connections (alternative to --motherduck-token)
<HOME>环境变量 可选Used by DuckDB for extensions and config. Override with --home-dir if not set.
<AWS_ACCESS_KEY_ID>环境变量 可选 · 密钥AWS access key for S3 database connections
<AWS_SECRET_ACCESS_KEY>环境变量 可选 · 密钥AWS secret access key for S3 database connections
<AWS_SESSION_TOKEN>环境变量 可选 · 密钥AWS session token for temporary credentials
<AWS_DEFAULT_REGION>环境变量 可选AWS region for S3 database connections
<AWS_ENDPOINT>环境变量 可选AWS endpoint for S3 database connections
客户端兼容性
按传输方式判断:客户端文档列出的传输方式里是否有这个服务器提供的。不涉及登录等其他要求。
- Claude Code 支持该传输方式
- Cursor 支持该传输方式
- VS Code 客户端文档未列出传输方式
- Codex 支持该传输方式
- Devin Desktop 支持该传输方式
- Gemini CLI 支持该传输方式
- GitHub Copilot 客户端文档未列出传输方式
- Cline 支持该传输方式
- Kiro 支持该传输方式
- Zed 客户端文档未列出传输方式
- OpenCode 客户端文档未列出传输方式
- JetBrains AI Assistant 支持该传输方式
- Claude 客户端文档未列出传输方式
- ChatGPT 没有共同的传输方式
来源
- Official MCP Registry registry.modelcontextprotocol.io · 核对于 2026年11月4日
- MotherDuck: vendor documentation motherduck.com · 核对于 2026年11月1日
This data comes from the Official MCP Registry.