What is mcp-server-duckdb?
A Model Context Protocol (MCP) server that enables interaction with a DuckDB database through MCP tools, allowing LLMs to execute SQL queries, manage tables, and inspect schemas. It is designed for local data analysis.
How to use mcp-server-duckdb?
Install via Smithery or configure in Claude Desktop’s JSON file using uvx mcp-server-duckdb --db-path <path>. Optionally add --readonly or --keep-connection flags. The server accepts a single required parameter db-path and two optional flags.
Key features of mcp-server-duckdb
- Execute any SQL query via a single unified
query tool.
- Optional read‑only mode using DuckDB’s native protection.
- Optional persistent connection for TEMP objects and faster queries.
- Auto‑creates database file and parent directories (unless readonly).
- Integrates with MCP for LLM‑driven database interaction.
Use cases of mcp-server-duckdb
- LLM‑powered exploratory analysis on local DuckDB files.
- Automated table creation, schema inspection, and data insertion.
- Read‑only query access for security‑sensitive environments.
- Seamless integration with AI assistants for database operations.
评论