dbt MCP Server

by @dbt-labs

Dbt MCP Server

dbt MCP Server gives agents project context and operations across dbt Core, Fusion, and Platform. It covers SQL, metrics, lineage, model health, CLI commands, job management, and documentation retrieval.

Data & Analytics609pythonApache-2.0

Server facts

dbt MCP Server

GitHub stars

609

Last commit

Oct 17, 2026

Runtime

python

License

Apache-2.0

Project

Author
dbt-labs
License
Apache-2.0

Tech

Runtime
pythonPython
Transports
stdio
Remote access
No

Activity

GitHub stars
609
Last commit
Data as of

Tags

  • Analytics Engineering
  • Data Lineage
  • Dbt
  • Semantic Layer
  • Sql

Overview

dbt MCP Server connects AI agents to dbt project information and operational tools across dbt Core, dbt Fusion, and dbt Platform. Its SQL tools can generate queries from natural-language requests and execute SQL on Platform infrastructure. Semantic Layer operations expose metrics, dimensions, entities, saved queries, and compiled metric SQL. Discovery tools provide model descriptions, source freshness, macros, exposures, dependencies, and execution history. Together, these surfaces let an assistant inspect a project before proposing changes or interpreting analytical results. Model health combines run status, test results, and upstream freshness, while lineage tools cover both broader dependency graphs and column-level relationships.

The integration also reaches into development and administration. CLI tools can parse, compile, build, run, and test project resources, and code-generation tools create model YAML, source YAML, and staging SQL. Administrative operations inspect jobs and artifacts, trigger runs, retry failures, or cancel active work. Documentation tools search official dbt pages and retrieve their Markdown content. These capabilities are not all read-only: the README warns that CLI access can change models, sources, and warehouse objects. Search across project resources is marked alpha, and local column lineage requires dbt-lsp through the dbt Labs VSCE. An experimental MCP bundle is published with releases, but the supplied README does not provide a runnable server command or environment-variable setup.

Install & configure

Not stated in the README: a runnable command, launch arguments, or required environment variables. An experimental dbt-mcp.mcpb bundle is available in release assets for compatible clients; detailed setup is linked externally.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
execute_sqlRun SQL on dbt Platform with Semantic Layer support.
text_to_sqlGenerate SQL from a natural-language request and project context.
get_dimension_valuesRetrieve distinct dimension values, optionally limited to selected metrics.
get_dimensionsInspect dimensions associated with chosen metrics.
get_entitiesInspect entities associated with chosen metrics.
get_metrics_compiled_sqlCompile a metric query without running it.
list_metricsList metrics defined in the Semantic Layer.
list_saved_queriesList available saved queries.
query_metricsRun metric queries with grouping and filters.
get_all_macrosList macros with optional package filtering.
get_all_modelsList model names and descriptions.
get_all_sourcesList sources and freshness, optionally narrowing by source name.
get_exposure_detailsInspect an exposure, its owner, dependencies, and freshness.
get_exposuresList downstream exposures such as dashboards and applications.
get_lineageInspect ancestors and descendants with depth and resource-type controls.
get_macro_detailsInspect one macro.
get_mart_modelsList mart models.
get_model_childrenFind downstream resources depending on a model.
get_model_detailsInspect model columns, schema, and compiled SQL.
get_model_healthReview run status, tests, and upstream source freshness.
get_model_parentsFind resources a model depends on.
get_model_performanceInspect model execution history, optionally including tests.
Find models through semantic similarity.
get_seed_detailsInspect a seed resource.
get_semantic_model_detailsInspect one semantic model.
get_snapshot_detailsInspect a snapshot resource.
get_source_detailsInspect source columns and freshness.
get_test_detailsInspect a test resource.
searchSearch project resources; this capability is alpha.
buildMaterialize selected resources and run tests in dependency order.
cloneClone selected state nodes into target schemas.
compileCompile project SQL and validate Jinja expressions.
docsGenerate project documentation.
get_lineage_devRead dependency relationships from a local manifest.
get_node_details_devInspect local manifest entries for project resources.
listEnumerate project resources with type and selector filters.
parseCheck project parsing and syntax.
runExecute models to create their database materializations.
showExecute SQL and return database results.
testRun model and data validation tests.
cancel_job_runStop an active job run.
get_job_detailsInspect job schedules, triggers, and dbt commands.
get_job_run_detailsInspect run status, timing, steps, and artifacts.
get_job_run_errorRetrieve errors and optional warnings from a run.
list_job_run_artifactsList artifacts produced by a job run.
list_jobsList account jobs with optional project or environment filters.
list_jobs_runsList job runs with job, status, and ordering controls.
list_projectsList projects in a dbt Platform account.
retry_job_runRetry a failed run.
trigger_job_runStart a job run with optional setting overrides.
generate_model_yamlGenerate model YAML, optionally reusing upstream column descriptions.
generate_sourceGenerate source YAML by inspecting database schemas.
generate_staging_modelGenerate staging SQL for a source table.
fusion.compile_sqlCompile SQL using Platform project context and Fusion.
fusion.get_column_lineageTrace column relationships through dbt Platform.
get_column_lineageTrace local column relationships using dbt-lsp.
get_product_doc_pagesFetch Markdown for selected official dbt documentation pages.
search_product_docsFind relevant official documentation pages and ranked references.
get_mcp_server_branchReport the running server checkout branch.
get_mcp_server_versionReport the running server version.

Use cases

  • Inspect model lineage, freshness, and test health
  • Query defined metrics through the Semantic Layer
  • Generate staging SQL and model documentation YAML
  • Inspect, trigger, retry, or cancel Platform job runs
  • Search official dbt product documentation

Strengths

  • Combines project metadata with development and operational tools
  • Includes Semantic Layer and column-lineage capabilities
  • Provides official documentation search and retrieval

Limitations

  • CLI tools can modify models and warehouse objects
  • Project-wide search is alpha and not generally available
  • Runnable server setup is not stated in the README

dbt MCP Server setup notes

  • dbt MCP Server records stdio only; confirm a network transport upstream before planning remote access.

Frequently asked questions

The README names dbt Core, Fusion, and Platform.

Related MCP servers