dbt logo

dbt MCP Server

CommunityDatabase

Browses dbt models, sources, macros, exposures and lineage, queries semantic layer metrics and runs SQL, builds, compiles, runs and tests models, triggers, retries and cancels jobs on the dbt platform, and generates model YAML, sources and staging models. It is community-maintained. Works in Claude.

dbt

What dbt can do

Browses dbt models, sources, macros, exposures, lineage
Queries semantic layer metrics
Runs SQL
Builds, compiles
Runs, tests models, triggers, retries, cancels jobs on the dbt platform
Generates model YAML, sources, staging models

Try asking Claude

Example prompts once dbt is connected.

Tracing a model's upstream lineage before changing it.
Query a metric from the semantic layer.
Retrying a failed job run and reading its error.

Set up dbt

Pick your client. Every snippet is copy-ready.

Claude Desktop → Settings → Developer → Edit Config (claude_desktop_config.json).

Permissions & safety

Read & write

Runs locally, so your data stays on your machine and only what the AI needs is sent to the model.

To stay safe, connect with least-privilege scopes and use a read-only credential where the service supports one.

Troubleshooting

“command not found” when the client starts the server
Install the runtime it needs (Node.js for npx, uv for uvx) and make sure it’s on your PATH.
Tools don’t appear after adding it
Fully restart the client (Claude Desktop, Cursor). Local servers load on startup.
A tool returns nothing for your dbt data
Confirm the account you authorised actually contains that data, and that your plan includes it.

FAQ

dbt runs as a local MCP server. Get its install command from its repo, add it to your client's MCP config, then restart the client.

More Database MCP servers

A
Written by Ari · Founder

Running a digital business since 2019 and a local SEO agency, Ari built and shipped GBPAudit.AI as a Claude connector. Every server here is connected and its tools read before it's listed.

Something wrong with this listing? Report it.