drio
Open app

mcp-server-motherduck MCP server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

The mcp-server-motherduck is an MCP server designed for MotherDuck and local DuckDB, facilitating connections and queries to these databases.

To use the mcp-server-motherduck, configure your Claude Desktop with the provided snippet, ensuring to set the HOME environment variable and, if using MotherDuck, the MotherDuck token as well.

  • Initialize connections to DuckDB or MotherDuck databases. - Retrieve table schemas from specific databases. - Execute queries on the MotherDuck (DuckDB) database.
  1. Connecting to local DuckDB for data analysis.
  2. Executing complex queries on MotherDuck databases.
  3. Retrieving and managing database schemas for development purposes.

Add to your AI client

Use these steps to connect mcp-server-motherduck MCP server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "motherduckdb-mcp-server-motherduck-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-motherduckdb-mcp-server-motherduck-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "motherduckdb-mcp-server-motherduck-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-motherduckdb-mcp-server-motherduck-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "motherduckdb-mcp-server-motherduck-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-motherduckdb-mcp-server-motherduck-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "motherduckdb-mcp-server-motherduck-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-motherduckdb-mcp-server-motherduck-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "motherduckdb-mcp-server-motherduck-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-motherduckdb-mcp-server-motherduck-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "motherduckdb-mcp-server-motherduck-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-motherduckdb-mcp-server-motherduck-mcp-mirror"
      ]
    }
  }
}

FAQ

What is the purpose of the mcp-server-motherduck?

It serves as a bridge to connect and interact with DuckDB and MotherDuck databases.

Is there a license for using this server?

Yes, it is licensed under the MIT License, allowing free use, modification, and distribution.

What environment variables are needed?

You need to set the HOME variable and, for MotherDuck, the motherduck_token.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":927,"uuid":"6c6e4300-1a28-47a7-a5c5-23dcb70a5a4c","name":"motherduckdb_mcp-server-motherduck","title":"mcp-server-motherduck MCP server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:18:58.503Z","updated_at":"2025-02-23T07:18:50.529Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp-server,motherduck,duckdb","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/motherduckdb_mcp-server-motherduck","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]