Skip to main content

MCP server for a locally-running DuckQuery backend

Project description

duckquery-mcp

An MCP server that exposes a locally-running DuckQuery backend to MCP clients (Claude Code, Cursor, Codex). Start DuckQuery first (desktop app, Docker, or uvicorn main:app --port 48001); this server auto-discovers it.

Run

uvx duckquery-mcp            # zero-install
# or: pipx run duckquery-mcp

Env:

  • DUCKQUERY_API_BASE — explicit backend URL (e.g. http://127.0.0.1:48001). Optional; auto-discovered otherwise (runtime.json, then probes 48001/8000/8001).
  • DUCKQUERY_MCP_MODEread-only | normal (default) | full.

Add to a CLI

Claude Code:

claude mcp add duckquery -- uvx duckquery-mcp

Cursor / Codex (mcp.json):

{
  "mcpServers": {
    "duckquery": {
      "command": "uvx",
      "args": ["duckquery-mcp"],
      "env": { "DUCKQUERY_MCP_MODE": "normal" }
    }
  }
}

Tools

High-level tools (query, ask, discover, add sources, configure LLM, transform, export) plus a generic duckquery_request passthrough. Safety mode gates which tools are exposed: read-only hides all mutating tools; normal exposes them but destructive raw SQL and non-GET passthrough require confirm=true; full removes the gate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duckquery_mcp-0.1.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

duckquery_mcp-0.1.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file duckquery_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: duckquery_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for duckquery_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d8ed6df163535d8eb53d8ee19727a030b0cc3dd556ec7cae343c921aed23f1ca
MD5 82fc4376f111de197c2665f3f262c492
BLAKE2b-256 c9a18afc1002d6c2faf451c4c08195c5769f37feb4cee77ad9cb906d9ebce41b

See more details on using hashes here.

File details

Details for the file duckquery_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: duckquery_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for duckquery_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb0d238ab3689a263a2be8f590391b8a8d1eaa95497228bb14396b1e4f7deb3
MD5 31e2d30d00119abbc07354e8edb3d544
BLAKE2b-256 ad8e0cee8419d1a128082864dfc620cb0d801e0afeb2f9a01bae7a95361158a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page