BASE

dbt MCP

dbt MCP

MCP tools for developers · Free

The official dbt Labs MCP server for dbt Core/Cloud: model metadata, project commands, and Semantic Layer queries.

Also known as: dbt-labs/dbt-mcp

Resource illustration: dbt MCP

Open resource ↗

What you can use for free

You can use the code under the stated license; servers, APIs, and compute must be provided separately.

Paid features and costs

Warehouse compute, dbt Cloud, and model APIs are billed separately.

Access and limitations

You can use the code under the stated license; servers, APIs, and compute must be provided separately. Warehouse compute, dbt Cloud, and model APIs are billed separately.

Use cases

  • Choose Core or Cloud mode and restrict the target.
  • Inspect model lineage and run the required dbt command on a test target.

Example workflow

A possible workflow; this is not a report of hands-on testing.

The official dbt Labs MCP server for dbt Core/Cloud

Before you start

  • A dbt project, profiles, and a test warehouse.

Steps

  1. Choose Core or Cloud mode and restrict the target.
  2. Inspect model lineage and run the required dbt command on a test target.
  3. Compare the result with the workflow's goal; after changing the project, run its standard checks.

Check your result

  • Models and data tests pass; a test warehouse and target are selected.
  • Check connection permissions and dependency terms; confirm external service costs if the workflow requires them.

Choosing dbt MCP

Choose Core or Cloud mode and restrict the target.

Choose this when

  • Choose Core or Cloud mode and restrict the target.
  • Inspect model lineage and run the required dbt command on a test target.

Requirements

  • Prepare a dbt project and target for local CLI commands; configure the relevant platform access for Semantic Layer.

Things to consider

  • Costs and limits of free use: Warehouse compute, dbt Cloud, and model APIs are billed separately.
  • Terms of use: Apache-2.0 for this repository; connected services, models, and data have separate terms.
  • The toolset is not entirely read-only: dbt run can create or update models in the warehouse.

Frequently asked questions

What can you use for free in dbt MCP?

You can use the code under the stated license; servers, APIs, and compute must be provided separately.

What additional costs might arise with dbt MCP?

Warehouse compute, dbt Cloud, and model APIs are billed separately.

What terms of use matter for dbt MCP?

Apache-2.0 for this repository; connected services, models, and data have separate terms.

How do you get started with dbt MCP?

Choose Core or Cloud mode and restrict the target. Inspect model lineage and run the required dbt command on a test target. Compare the result with the workflow's goal; after changing the project, run its standard checks.

How does retrieving compiled SQL differ from executing a query?

get_metrics_compiled_sql returns SQL without executing the query, while query_metrics executes it. Similarly, dbt compile and dbt run serve different purposes: compilation is not the same as materializing models in the warehouse.

License

Apache-2.0 for this repository; connected services, models, and data have separate terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • dbt MCP
  • dbt-labs
  • MCP

Sources

Other resources