Skip to main content

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:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_motherduck-0.1.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_motherduck-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_motherduck-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_server_motherduck-0.1.0.tar.gz
Algorithm Hash digest
SHA256 145044cd7d5752ffcd9433c847ec0696f59f93848105740dd6f21a7c45b70b62
MD5 c9f488cb595b963115a9bb60ab7bcc08
BLAKE2b-256 8b880e356acc37e6dd220141194fb759b4bfa63d1401f58cf7845e483a0e50f8

See more details on using hashes here.

File details

Details for the file mcp_server_motherduck-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_motherduck-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28e7160516bd3fc4d4d5308cb30db7c2a7756bde8b54c69208d3ef40aa9f91fa
MD5 ab923f17a24b1307e59d4506a34692e1
BLAKE2b-256 691e56c0faab59aae1bcfc1e4eac71e21348ca5094fabeec4e42f01358be5a34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page