DuckDB MCP Server
Allows interaction with a DuckDB database, providing tools for running SQL queries, listing tables, describing table schemas, and retrieving paginated data from tables.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DuckDB MCP ServerShow me the schema for the suppliers table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DuckDB MCP Server v1.1
MCP server for DuckDB — built for the ARC Pricing Engine. Exposes 6 tools via Streamable-HTTP transport for use with Fuelix copilots and Prisms.
Setup
Step 1 — Install dependencies
pip install -r requirements.txtStep 2 — Configure environment
cp .env.example .envEdit .env — replace ALL <<<REPLACE_WITH_...>>> placeholders:
DUCKDB_PATH=<<<REPLACE_WITH_YOUR_DUCKDB_PATH>>>
MCP_BEARER_TOKEN=<<<REPLACE_WITH_YOUR_BEARER_TOKEN>>>Generate a bearer token:
python -c "import secrets; print(secrets.token_urlsafe(32))"Step 3 — Run the server
uvicorn main:app --host 0.0.0.0 --port 8001 --reloadStep 4 — Health check
curl http://localhost:8001/healthStep 5 — Test a tool
curl http://localhost:8001/mcp/call \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <<<REPLACE_WITH_YOUR_BEARER_TOKEN>>>" \
-d '{"tool": "list_tables", "parameters": {}}'Step 6 — Test with MCP Inspector
npx @modelcontextprotocol/inspector --server-url http://localhost:8001/mcp --transport httpRelated MCP server: FastAPI Database MCP Server
Tools
Tool | Description |
| Run any read-only SQL query |
| List all tables in the DB |
| Get schema for a table |
| Return all suppliers |
| Return all price types / price factors |
| Paginated row fetch |
Changelog
v1.1 — Fixed get_suppliers + get_price_types table names. Added <<>> placeholders.
v1.0 — Initial build. Read-only, 6 tools, Bearer token auth.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables DuckDB database interaction through MCP, supporting SQL queries, table creation, and schema inspection with optional read-only mode.Last updated1MIT
- Flicense-qualityDmaintenanceProvides read-only SQL query access to Postgres and DuckDB databases via MCP tools, with extensive security hardening for public endpoints.Last updated1
- AlicenseBqualityCmaintenanceEnables SQL querying over CSV and Excel files using DuckDB, providing tools to load files, inspect schemas, and run read-only queries via MCP.Last updated5MIT
- FlicenseAqualityCmaintenanceEnables read-only exploration and querying of PostgreSQL or MySQL databases via MCP, with schema discovery, safe SQL validation, natural language to SQL conversion, and CSV export.Last updated111
Related MCP Connectors
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Read-only MCP server for wafergraph.com's semiconductor & AI supply-chain data: 30 tools, no auth.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/poovenp/duckdb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server