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)
| Tool | Category | Description |
|---|---|---|
| list_databases | discovery | List all available databases in the MotherDuck workspace |
| describe_table | discovery | Get the schema and column details of a table |
| execute_query | query | Execute a SQL query against MotherDuck or local DuckDB |
| query_local_files | query | Query 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