Overview
The mcp-server-duckdb is a Model Context Protocol (MCP) server implementation for DuckDB, designed to facilitate database interactions through various MCP tools. It allows users to perform operations such as querying, table creation, and schema inspection on a DuckDB database.
To use the mcp-server-duckdb, install it via Smithery and configure it in the Claude Desktop application. You can execute SQL commands through the provided tools to interact with the DuckDB database.
- Execute SELECT, INSERT, UPDATE, and DELETE queries. - Create new tables and list existing tables in the database. - Retrieve schema information for specific tables. - Operate in read-only mode to maintain data integrity.
- Performing data analysis using SQL queries on DuckDB.
- Integrating with applications that require database interactions.
- Debugging and inspecting database operations through the MCP Inspector.
Add to your AI client
Use these steps to connect mcp-server-duckdb in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"ktanaka101-mcp-server-duckdb-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ktanaka101-mcp-server-duckdb-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"ktanaka101-mcp-server-duckdb-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ktanaka101-mcp-server-duckdb-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"ktanaka101-mcp-server-duckdb-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ktanaka101-mcp-server-duckdb-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"ktanaka101-mcp-server-duckdb-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ktanaka101-mcp-server-duckdb-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ktanaka101-mcp-server-duckdb-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ktanaka101-mcp-server-duckdb-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"ktanaka101-mcp-server-duckdb-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ktanaka101-mcp-server-duckdb-mcp-mirror"
]
}
}
}FAQ
Can I run the server in read-only mode?
Yes! You can run the server in read-only mode to prevent any write operations.
What are the prerequisites for installation?
You need Python with the `uv` package manager and the DuckDB Python package.
How can I debug the server?
Use the MCP Inspector for a better debugging experience.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":625,"uuid":"ab7cefa5-87b6-4b6d-bb03-7a99888c3217","name":"ktanaka101_mcp-server-duckdb","title":"mcp-server-duckdb","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:24:25.708Z","updated_at":"2025-02-23T07:15:12.720Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp-server,duckdb,database-interaction","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/ktanaka101_mcp-server-duckdb","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/352e08895a7fcb116b932d18cc7779ec02b2c4130550c09890a32b0e276ab1ab/68747470733a2f2f736d6974686572792e61692f62616467652f6d63702d7365727665722d6475636b6462","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]