DuckDB MCP Server

Databasestdiov0.6.0
Repository

MCP server for DuckDB, the fast in-process analytical database. Lets AI agents run analytical SQL over local files (CSV, Parquet, JSON), attach databases, inspect schemas, and profile queries. Ideal for ad-hoc data analysis, ETL prototyping, and querying large columnar files without a separate database server.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "duckdb": {
      "command": "npx",
      "args": [
        "-y",
        "@motherduck/mcp-server-motherduck"
      ],
      "env": {
        "MOTHERDUCK_TOKEN": "<YOUR_MOTHERDUCK_TOKEN>"
      }
    }
  }
}

Tools (2)

query

Execute a read-only SQL query against DuckDB and return the results.

{
  "type": "object",
  "required": [
    "sql"
  ],
  "properties": {
    "sql": {
      "type": "string",
      "description": "SQL query to execute"
    }
  }
}

list_tables

List tables and views available in the current DuckDB database.

{
  "type": "object",
  "properties": {}
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
MotherDuck (@motherduckdb)
Repository
https://github.com/motherduckdb/mcp-server-motherduck
License
MIT
Version
0.6.0
Stars
780
Last Updated
July 9, 2026