DuckDB MCP Server

Databasestdiov0.6.0
代码仓库

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.

连接

将此配置添加到 .claude/mcp.json

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

工具 (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": {}
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
MotherDuck (@motherduckdb)
代码仓库
https://github.com/motherduckdb/mcp-server-motherduck
许可证
MIT
版本
0.6.0
星标
780
最后更新
2026年7月9日