dbt Cloud MCP Server
Published · Updated
At a glance
- Category
- Data & analytics
- GitHub repository
- dbt-labs/dbt-mcp
- Watch out for
- dbt run and build change your warehouse; disable CLI tools if you only want read access.
dbt-mcp is dbt Labs' official MCP server, giving an agent context about your dbt project and the ability to work with it. It supports dbt Core, dbt Fusion and the dbt Platform, and comes in two forms: a self-hosted server you run with uvx dbt-mcp, and a remote server hosted on the dbt Platform.
The two suit different jobs. The self-hosted server is for development: it can run dbt commands such as build, compile, run, test, parse and show, generate code with dbt Codegen, and use the dbt language server, alongside the platform APIs if you connect them. The remote server is for consumption: querying metrics through the Semantic Layer, running SQL, exploring metadata and lineage through the Discovery API, and working with jobs through the Admin API, with no installation.
The Discovery tools are what make it good for understanding a project. An agent can list models, sources and exposures, read a node's details, health and performance, follow lineage and search across the project. That turns questions like which downstream models break if I change this column into something it can answer from real metadata. text_to_sql generates SQL from your project's context and is hidden when an admin turns off dbt AI features.
How it connects
Your AI app
An assistant or agent that supports MCP
dbt Cloud MCP Server
Runs as
- Python (uv / pip)
- Remote (HTTP)
Gives the agent
- Semantic Layer
- Discovery and lineage
- dbt CLI
- SQL
- Admin API and Codegen
dbt Cloud
The data or system the tools act on
What it can do
- Semantic Layer
- list_metrics, get_dimensions, get_entities, query_metrics and get_metrics_compiled_sql query governed metrics.
- Discovery and lineage
- get_all_models, get_all_sources, get_node_details, get_related_models, get_model_health and get_lineage describe the project.
- dbt CLI
- build, compile, run, test, parse, show, list and docs run dbt commands on the self-hosted server.
- SQL
- execute_sql runs SQL on dbt Platform infrastructure, and text_to_sql generates SQL from project context.
- Admin API and Codegen
- Job and run tools such as get_job_run_details and cancel_job_run, plus dbt Codegen helpers on the self-hosted server.
Setting it up
For the self-hosted server, install uv and add a server that runs uvx dbt-mcp. Then configure it through the environment variables in dbt's MCP reference, such as the path to your dbt project and dbt executable, and platform host and token if you use dbt Platform APIs. The same variables let you disable tool groups, which is worth doing for commands like run and build if the agent should not change your warehouse. For the remote server, follow dbt's documentation to connect to the dbt Platform endpoint; it needs a dbt Platform account and available tools depend on your plan. An experimental MCP bundle, dbt-mcp.mcpb, is published with each release for clients that support it.
claude mcp add dbt -- uvx dbt-mcpRuns the dbt-mcp package from PyPI. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Finding which downstream models depend on a column before changing it
- Running and testing a model you just edited from the assistant
- Answering a metric question through the Semantic Layer with governed definitions
- Checking why a scheduled job run failed through the Admin API
Limitations and things to watch
- dbt run and build change your warehouse; disable CLI tools if you only want read access.
- Discovery, Semantic Layer and Admin API features need a dbt Platform account.
- text_to_sql needs dbt AI features enabled and is hidden when an admin turns them off.
- The remote server does not support dbt CLI commands or Codegen.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /dbt-labs/dbt-mcp
- docs.getdbt.com /docs/dbt-ai/about-mcp
- docs.getdbt.com /docs/dbt-ai/setup-local-mcp
- docs.getdbt.com /docs/dbt-ai/setup-remote-mcp
- docs.getdbt.com /blog/introducing-dbt-mcp-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.