Skip to main content

dbt MCP Server

OpenSSF Best Practices

This MCP (Model Context Protocol) server provides various tools to interact with dbt. You can use this MCP server to provide AI agents with context of your project in dbt Core, dbt Fusion, and dbt Platform.

Read our documentation here to learn more. This blog post provides more details for what is possible with the dbt MCP server.

Experimental MCP Bundle

We publish an experimental Model Context Protocol Bundle (dbt-mcp.mcpb) with each release so that MCPB-aware clients can import this server without additional setup. Download the bundle from the latest release assets and follow Anthropic's mcpb CLI docs to install or inspect it.

Feedback

If you have comments or questions, create a GitHub Issue or join us in the community Slack in the #tools-dbt-mcp channel.

Architecture

The dbt MCP server architecture allows for your agent to connect to a variety of tools.

architecture diagram of the dbt MCP server

Tools

SQL

  • execute_sql
  • text_to_sql

Semantic Layer

  • get_dimensions
  • get_entities
  • get_metrics_compiled_sql
  • list_metrics
  • list_saved_queries
  • query_metrics

Discovery

  • get_all_macros
  • get_all_models
  • get_all_sources
  • get_exposure_details
  • get_exposures
  • get_lineage
  • get_macro_details
  • get_mart_models
  • get_model_children
  • get_model_details
  • get_model_health
  • get_model_parents
  • get_model_performance
  • get_related_models
  • get_seed_details
  • get_semantic_model_details
  • get_snapshot_details
  • get_source_details
  • get_test_details
  • search

dbt CLI

  • build
  • compile
  • docs
  • get_lineage_dev
  • get_node_details_dev
  • list
  • parse
  • run
  • show
  • test

Admin API

  • cancel_job_run
  • get_job_details
  • get_job_run_artifact
  • get_job_run_details
  • get_job_run_error
  • get_project_details
  • list_job_run_artifacts
  • list_jobs
  • list_jobs_runs
  • retry_job_run
  • trigger_job_run

dbt Codegen

  • generate_model_yaml
  • generate_source
  • generate_staging_model

dbt LSP

  • fusion.compile_sql
  • fusion.get_column_lineage
  • get_column_lineage

MCP Server Metadata

  • get_mcp_server_version

Examples

Commonly, you will connect the dbt MCP server to an agent product like Claude or Cursor. However, if you are interested in creating your own agent, check out the examples directory for how to get started.

Contributing

Read CONTRIBUTING.md for instructions on how to get involved!

Metadata

Release files for iflow-mcp_dbt-labs-dbt-mcp 1.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_dbt-labs-dbt-mcp 1.8.2
File Size Uploaded
iflow_mcp_dbt_labs_dbt_mcp-1.8.2.tar.gz 103.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_dbt-labs-dbt-mcp 1.8.2
File Interpreter ABI Platform
iflow_mcp_dbt_labs_dbt_mcp-1.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 260.7 kB

Release files / iflow_mcp_dbt_labs_dbt_mcp-1.8.2.tar.gz

Download URL iflow_mcp_dbt_labs_dbt_mcp-1.8.2.tar.gz
Size 103.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e55748f29a4ea6285d2e3e646cd313c7435b980567d60f8d88aabd565bc1946b
BLAKE2b-256 checksum
How to use checksums
ff573419e33ece11cc63357b1c1906b88c55af6035927f8c59537f50a4e26fe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_dbt_labs_dbt_mcp-1.8.2-py3-none-any.whl

Download URL iflow_mcp_dbt_labs_dbt_mcp-1.8.2-py3-none-any.whl
Size 156.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18a0fa83030356584e052056f19ae0227f9aed3fd0af0517f7f7be47845a64c8
BLAKE2b-256 checksum
How to use checksums
f1bcfc325bb2693393c4014ec7f23898829c5d33685c42417fe7d1df8cc9c1ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.8.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page