Skip to main content

A MCP server for MotherDuck and local DuckDB

Project description

mcp-server-motherduck MCP server

A MCP server for MotherDuck and local DuckDB

Components

Resources

Prompts

The server provides one prompt:

  • duckdb-motherduck-initial-prompt: A prompt to initialize a connection to duckdb or motherduck and start working with it

Tools

The server offers three tools:

  • initialize-connection: Create a connection to either a local DuckDB or MotherDuck and retrieve available databases
    • Takes "type" (DuckDB or MotherDuck) as input
  • read-schemas: Get table schemas from a specific DuckDB/MotherDuck database
    • Takes "database_name" as required string arguments
  • execute-query: Execute a query on the MotherDuck (DuckDB) database
    • Takes "query" as required string arguments

Usage with Claude Desktop

Add the snippet below to your Claude Desktop config and make sure to set the HOME var to your home folder (needed by DuckDB).

When using MotherDuck, you also need to set a MotherDuck token env var.

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

Servers Configuration

"mcpServers": {
  "mcp-server-motherduck": {
    "command": "uvx",
    "args": [
      "mcp-server-motherduck"
    ],
    "env": {
      "motherduck_token": "",
      "HOME": ""
    }
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

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.2.2.tar.gz (36.5 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.2.2-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_server_motherduck-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ba28bf24e213477fbee74540407cd27263c4e23d0e97d1e401e47cb30a04080c
MD5 ead9a0261eb52fb8d777641174ac5789
BLAKE2b-256 ca09881171880a2f5efc9f8d7b2d30e337cdb83a7c09eacb619136ab1426630a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_motherduck-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f8c273ad3d306ba7e11f59050a35c38a4bbd1231870555771c8b82222698fb8
MD5 a6fdafd1644c164e71b425235e7dfbe7
BLAKE2b-256 c2fc22b5b3931fbb80d5e063a31eab7234f3ddc9d91f4dfd6545081bc463a0d6

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