MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

MotherDuck MCP

by MotherDuck

Query and analyze data with MotherDuck serverless DuckDB and local files via SQL

database Python Intermediate Self-hostable Verified
⭐ 150 stars πŸ“… Updated: 1mo ago

Description

MCP server for MotherDuck that enables LLMs to query and analyze data using serverless DuckDB in the cloud and local DuckDB databases. Seamlessly combines cloud-hosted data with local files β€” query CSV, Parquet, and JSON files on your machine alongside cloud tables in a single SQL statement. Powered by DuckDB's blazing-fast analytical engine, it supports listing databases, describing schemas, executing queries, and working with local files directly. Perfect for data analysts and engineers who want AI-assisted analytics without moving data between systems.

βœ… Best for

Data analysts who want to query local files and cloud data together with AI assistance

⏭️ Skip if

You only need a traditional database connector without local file analysis

πŸ’‘ Use cases

  • Running SQL analytics on local CSV, Parquet, and JSON files through natural language
  • Querying cloud-hosted MotherDuck databases from AI assistants
  • Combining local and cloud data in a single analytical query
  • Exploring and profiling datasets without writing SQL manually

πŸ‘ Pros

  • βœ“ Hybrid local + cloud queries β€” analyze files on disk alongside cloud tables
  • βœ“ Built on DuckDB's fast analytical engine with zero-copy data access
  • βœ“ Serverless architecture β€” no infrastructure to manage on the cloud side
  • βœ“ Simple pip or uvx install with token-based authentication

πŸ‘Ž Cons

  • βœ— Requires a MotherDuck account and token for cloud features
  • βœ— Local-only mode has limited functionality compared to cloud-connected usage
  • βœ— Large result sets from analytical queries may consume significant LLM context

πŸ”§ Exposed tools (4 tools)

ToolCategoryDescription
list_databasesdiscoveryList all available databases in the MotherDuck workspace
describe_tablediscoveryGet the schema and column details of a table
execute_queryqueryExecute a SQL query against MotherDuck or local DuckDB
query_local_filesqueryQuery local CSV, Parquet, or JSON files using SQL

⚑ Installation

Prerequisites:

  • β€’ python v3.10+
  • β€’ MotherDuck authentication token
  • β€’ API key required

Check Claude Code documentation to configure this MCP server.

πŸ’‘ Tips & tricks

Set the MOTHERDUCK_TOKEN environment variable for authentication. You can query local files directly with SQL β€” try SELECT * FROM 'data.csv' LIMIT 10 to get started. Use the hybrid query capability to join local files with cloud tables seamlessly.

πŸ”„ Alternatives

Quick info

Author
MotherDuck
License
MIT
Runtime
Python 3.10+
Transport
stdio
Category
database
Difficulty
Intermediate
Self-hostable
βœ…
Auth
β€”
Docker
β€”
Version
latest
Updated
Feb 28, 2026

Client compatibility

  • βœ… Claude Code
  • βœ… Cursor
  • βœ… VS Code Copilot
  • ❓ Gemini CLI
  • βœ… Windsurf
  • βœ… Cline
  • ❓ JetBrains AI
  • ❓ Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows