DuckDB MCP Server
Enables running read-only SQL queries and exploring DuckDB databases through MCP tools like listing tables, describing schemas, and fetching paginated data.
README
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.txt
Step 2 — Configure environment
cp .env.example .env
Edit .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 --reload
Step 4 — Health check
curl http://localhost:8001/health
Step 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 http
Tools
| Tool | Description |
|---|---|
query |
Run any read-only SQL query |
list_tables |
List all tables in the DB |
describe_table |
Get schema for a table |
get_suppliers |
Return all suppliers |
get_price_types |
Return all price types / price factors |
get_table_data |
Paginated row fetch |
Changelog
- v1.1 — Fixed get_suppliers + get_price_types table names. Added <<<REPLACE>>> placeholders.
- v1.0 — Initial build. Read-only, 6 tools, Bearer token auth.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.