本项目提供了母亲鸭MCP服务器的安装、配置、使用等相关说明,帮助用户快速搭建并使用该服务器。
claude_desktop_config.json文件中添加如下配置:{
"mcpServers": {
"mcp-server-motherduck": {
"command": "uvx",
"args": [
"mcp-server-motherduck",
"--db-path",
"md:",
"--motherduck-token",
""
]
}
}
}
⚠️ 重要提示
- 请将
替换为您的实际MotherDuck令牌。- 可根据需要设置
--home-dir参数(例如:--home-dir /Users/your_username)。
您可以在.vscode/mcp.json文件中添加以下配置,也可将此内容直接复制到工作区的mcp.json文件中:
{
"inputs": [
{
"type": "promptString",
"id": "motherduck_token",
"description": "MotherDuck令牌",
"password": true
}
],
"servers": {
"motherduck": {
"command": "uvx",
"args": [
"mcp-server-motherduck",
"--db-path",
"md:",
"--motherduck-token",
"${input:motherduck_token}"
]
}
}
}
配置完成后,您可以让Claude执行以下操作:
要连接到默认的MotherDuck数据库,需要使用--motherduck-token参数指定令牌:
uvx mcp-server-motherduck --db-path md: --motherduck-token
uvx mcp-server-motherduck --db-path md:your_database_name --motherduck-token
uvx mcp-server-motherduck --db-path /path/to/your/local.db
uvx mcp-server-motherduck --db-path :memory:
💡 使用建议
如果未指定数据库路径但设置了
motherduck_token环境变量,服务器将自动连接到默认的MotherDuck数据库(md:)。
要以SSE模式运行服务器,请使用supergateway工具:
npx -y supergateway --stdio "uvx mcp-server-motherduck --db-path md: --motherduck-token "
spawn uvx ENOENT错误,请确认uvx工具已正确安装并位于系统路径中。本项目遵循MIT许可证。更多信息请参考MIT License。