This dbt MCP (Model Context Protocol) server enables comprehensive interaction with dbt projects through multiple capabilities:
dbt CLI Operations: Execute commands like
build
,compile
,run
,test
, andshow
to manage models and run SQL queries against your data warehouseSemantic Layer Integration: List, query, and get details about metrics, dimensions, and entities
Model Discovery: Retrieve information about dbt models using tools like
get_all_models
,get_model_details
,get_model_parents
, andget_mart_models
Remote Configuration: Configure and interact with dbt Cloud environments
Integration with MCP Clients: Works with tools like Claude Desktop, Cursor, and VS Code
Custom Configuration: Customize behavior through environment variables
Provides tools to interact with dbt, including executing dbt CLI commands (build, compile, run, test), accessing Semantic Layer for metric querying, and using Discovery API to explore models and their relationships in a dbt project.
dbt MCP Server
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.
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.
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!
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
dbt-mcp
Related MCP Servers
- MIT License
- MIT License
- MIT License