$ timeahead.in
/ servers/pypi/mcp-server-duckdb
pypi

mcp-server-duckdb

A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities

176 stars70k/wkupdated 402d agogithub ↗
87good
▣ Overview
PyPI - VersionPyPI - License

What it does

The server exposes a single query tool that executes SQL statements against a local DuckDB database. DuckDB is an in-process analytical SQL engine optimized for interactive analysis of local data. It can query CSV and Parquet files directly without importing, join against structured datasets, and run aggregations entirely within a single process. The query tool accepts any valid DuckDB SQL—SELECT, CREATE TABLE, INSERT, UPDATE, DELETE—and returns results as plain text. The server supports a read-only mode that enforces DuckDB's native write protection, preventing the LLM from performing mutations.

Who it's for

Data analysts and engineers who want to ground Claude's reasoning in local structured data without cloud dependencies. Teams working with embedded analytics, local databases, or file-based datasets. Developers prototyping data analysis workflows or building reasoning chains that combine Claude's language capabilities with local SQL execution.

Common use cases

  • Query CSV or Parquet files directly in natural language without a separate import step
  • Explore schema and run analytical queries on existing DuckDB databases
  • Analyze local datasets in read-only mode to prevent accidental data mutations
  • Build reasoning chains where Claude generates and executes SQL queries iteratively
  • Prototype and validate complex queries or data transformations locally before production deployment

Setup pitfalls

  • Read-only mode requires the database file to exist before startup; it will not be created if --readonly is specified
  • The --db-path parameter is required; ensure the path and parent directory exist or can be created
  • Using --keep-connection holds an exclusive lock on the database file, preventing concurrent access from other processes
  • Last active ~11 months ago; verify compatibility with your installed DuckDB version
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
85
21.3
Adoption
20%
81
16.1
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
87.4
⚿ Capabilities & Risk Explainer
no elevated permissions
◆ Risk level: low
No elevated permissions requested — safe to connect.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "mcp-duckdb": {
      "command": "uvx",
      "args": [
        "mcp-server-duckdb"
      ]
    }
  }
}
📈 Score historylast 30 snapshots
5/10/20266/11/2026 · 30 snapshots
⚙ Maintenance health
23/ 100 · is this project alive?
contributors (1y)0
top contributor share0%
releases (1y)0
last release402d ago
ci✓ passing
⛁ Raw data
weekly downloads70k
github stars176
forks22
open issues5
license✓ present
readme length4751 chars
last publish15d ago
last commit402d ago
last updated1d ago
install verified✓ pass · 25d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points