[ AI Setup ] · by dbt Labs
Gives Claude Code or Cursor a live connection to your dbt project — lineage, model health, YAML generation, and 40+ dbt CLI tools inside the agent's context window. No dbt Cloud account required.
Runs locally. No account, no backend, no API keys required. Forever free.
TERMINAL
uvx dbt-mcpPREREQUISITES
STEPS
Install
Run uvx dbt-mcp to verify it works. For a permanent install, run pip install dbt-mcp instead.
Add .mcp.json to your dbt project root
Create a .mcp.json file pointing to your dbt project directory and dbt executable. This tells Claude Code to connect to the server whenever you open the project.
Open Claude Code in your dbt project
Once the config is in place, Claude has access to 40+ tools — full DAG traversal, model health checks, YAML generation, and live dbt CLI commands.
Try this exact prompt
"My fct_revenue model failed last night. Trace its full upstream lineage, show me the last test result for each model in the chain, and tell me which one is most likely the source of the issue."