(First off, a big apology if this isn’t appropriate; I’m sharing/announcing below an open source tool we’ve built on top of dbt.)
MXCP (Model eXecution Context Protocol) lets you expose governed, testable, MCP servers directly from your dbt + DuckDB environment—optimized for fast, local serving and enterprise-grade control.
Unlike typical “SQL agents,” MXCP gives you full control:
Write custom SQL or Python logic —not just expose dbt models
Integrates cleanly with dbt: your models become stable foundations for tools
Uses DuckDB as the runtime engine—fast, embeddable, no server required
Enforces policies and contracts using CEL (mask fields, block access, require freshness)
Supports auth (GitHub, API keys, Vault), audit logging, and structured metadata
Outputs MCP-compatible tool specs—connects seamlessly to Claude Desktop or your own agent
Quick start:
pip install mxcp
mxcp init --bootstrap
to scaffold an MXCP project, including dbt +DuckDB integration- Run
mxcp serve
; your first API is ready for LLMs - Define additional MCP tools in YAML + SQL, referencing your dbt models
- Add optional policies, test cases, etc
We built it for our own needs: building MCP servers that give you strict control, governance, and performance—all on top of the tools we already use.
Try it at https://mxcp.dev
Ask questions, share feedback, and if helpful, star us on GitHub!