Basic information
About DuckDB MCP Server
Execute SQL queries and analyze data efficiently in DuckDB databases. Unlock powerful analytics with DuckDB.
DuckDB is a MCP server in the Databases category listed in the AddMCP.net directory, published by ktanaka101. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 177 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, community, databases, duckdb, mcp.
Setup
{
"mcpServers": {
"duckdb": {
"command": "uvx",
"args": [
"mcp-server-duckdb",
"--db-path",
"~/mcp-server-duckdb/data/data.db"
]
}
}
}
{
"mcpServers": {
"duckdb": {
"command": "uvx",
"args": [
"mcp-server-duckdb",
"--db-path",
"~/mcp-server-duckdb/data/data.db"
]
}
}
}
{
"servers": {
"duckdb": {
"command": "uvx",
"args": [
"mcp-server-duckdb",
"--db-path",
"~/mcp-server-duckdb/data/data.db"
]
}
}
}
DuckDB MCP Server — by ktanaka101 config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"duckdb": {
"command": "uvx",
"args": [
"mcp-server-duckdb",
"--db-path",
"~/mcp-server-duckdb/data/data.db"
]
}
}
}
DuckDB MCP Server — by ktanaka101 tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is 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 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 DuckDB
- Execute any SQL query via a single unified
querytool. - 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 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.
Frequently asked questions
1 How does read‑only mode differ from read‑write?
In read‑only mode the DuckDB database is opened with read_only=True, preventing any write operations (CREATE, INSERT, UPDATE, DELETE) and refusing to create missing database files. Read‑write mode allows full SQL and auto‑creates missing files.
2 What are the runtime requirements?
Python with the uv package manager, the DuckDB Python package, and MCP server dependencies.
3 Where is the database file stored?
The path is specified by the user via the --db-path argument. The server creates the file and any needed parent directories unless --readonly is used and the file does not exist.
4 Does the server offer separate tools for different operations?
No, it provides a single unified query tool. The LLM generates appropriate SQL for any operation (SELECT, CREATE, INSERT, etc.) without requiring separate endpoints.
5 What transport does the server use?
It uses stdio-based communication, typical of MCP servers. Debugging is recommended with the MCP Inspector, which can be launched via npx @modelcontextprotocol/inspector.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In