A MCP server for MotherDuck
Project description
mcp-server-motherduck MCP server
A MCP server for MotherDuck
Components
Resources
Prompts
Tools
The server implements one tool:
- read-query-motherduck: Executes a single SQL SELECT statement on MotherDuck and retrieves the result
- Takes "query" as required string arguments
Configuration
Set MotherDuck token as environment variable:
export motherduck_token='<token>'
Quickstart
Install
Claude Desktop
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Development/Unpublished Servers Configuration
``` "mcpServers": { "mcp-server-motherduck": { "command": "uv", "args": [ "--directory", "/Users//mcp-server/mcp-server-motherduck", "run", "mcp-server-motherduck" ] } } ```Published Servers Configuration
``` "mcpServers": { "mcp-server-motherduck": { "command": "uvx", "args": [ "mcp-server-motherduck" ] } } ```Development
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
This will create source and wheel distributions in the dist/ directory.
- Publish to PyPI:
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:
--tokenorUV_PUBLISH_TOKEN - Or username/password:
--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /Users/doehmen/Documents/Research/docs/ai-playground/mcp-server/mcp-server-motherduck run mcp-server-motherduck
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_motherduck-0.1.0.tar.gz.
File metadata
- Download URL: mcp_server_motherduck-0.1.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
145044cd7d5752ffcd9433c847ec0696f59f93848105740dd6f21a7c45b70b62
|
|
| MD5 |
c9f488cb595b963115a9bb60ab7bcc08
|
|
| BLAKE2b-256 |
8b880e356acc37e6dd220141194fb759b4bfa63d1401f58cf7845e483a0e50f8
|
File details
Details for the file mcp_server_motherduck-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_motherduck-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28e7160516bd3fc4d4d5308cb30db7c2a7756bde8b54c69208d3ef40aa9f91fa
|
|
| MD5 |
ab923f17a24b1307e59d4506a34692e1
|
|
| BLAKE2b-256 |
691e56c0faab59aae1bcfc1e4eac71e21348ca5094fabeec4e42f01358be5a34
|