dbt Labs' official MCP server exposes dbt project metadata, lineage and model details, Semantic Layer metric queries, SQL generation and execution, and dbt CLI commands such as run, build and test. The self-hosted server runs locally with uvx dbt-mcp and works with dbt Core, Fusion and the dbt platform; a remote server hosted by dbt is also available for dbt platform accounts.
Connect
- 1Add the server to Codex
codex mcp add dbt -- uvx dbt-mcp
Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.
Tools 11
execute_sqltext_to_sqllist_metricsquery_metricsget_dimensionsget_all_modelsget_model_detailsget_model_parentsget_model_childrenget_lineageget_model_healthThings to ask
- “Which models depend on stg_orders?”
- “Query the revenue metric by month for the last year”
- “Run dbt build for the marketing models and summarize failures”
- “Which models have failing tests or stale sources?”