dbt-mcp
The official MCP server for dbt (data build tool), providing integration with dbt Core/Cloud, metadata discovery, model info, and semantic layer querying.
About this tool
dbt-mcp
Description
dbt-mcp is an open-source MCP (Model Context Protocol) server designed for integration with dbt (data build tool). It enables interaction with dbt resources, providing metadata discovery, model information, and semantic layer querying capabilities. It works with both dbt Core and dbt Cloud environments.
Features
Integration with dbt
- Connects to both dbt Core and dbt Cloud installations
- Allows running commands through the local dbt Core or dbt Cloud CLI
Model Information and Metadata Discovery
- Retrieve information about models and transformations in a dbt project
- Discovery API:
get_mart_models: Fetch all mart modelsget_all_models: Fetch all modelsget_model_details: Fetch details for a specific modelget_model_parents: Fetch parent models of a specific model
Semantic Layer Querying
- Interact with the dbt Cloud Semantic Layer gateway
- Retrieve and query analytics metrics and dimensions:
list_metrics: List all defined metricsget_dimensions: Get dimensions for specified metricsget_entities: Get entities for specified metricsquery_metrics: Query metrics with grouping, ordering, filtering, and limiting
dbt CLI Command Support
build: Execute models, tests, snapshots, and seedscompile: Generate executable SQL from models, tests, and analysesdocs: Generate documentation for the dbt projectls: List resources in the dbt projectparse: Parse and validate project files for syntaxrun: Execute models to materialize them in the databasetest: Run tests to validate data and model integrityshow: Run a query against the data warehouse
Flexible Configuration
- Enable or disable CLI, Semantic Layer, and Discovery features via environment variables
- Support for multi-cell dbt Cloud configurations
- Customizable connection and authentication settings
Client Integrations
- Can be used with MCP clients such as Claude Desktop, Cursor, and VS Code
- Example configurations provided for client setup
Installation and Setup
- Easy installation via shell script or manual setup
- Environment variable-based configuration
Pricing
No pricing information is provided; dbt-mcp is an open-source project.
Tags
mcp, dbt, data-integration, metadata, data-analysis
Surveys
Loading more......
Information
Websitegithub.com
PublishedMay 14, 2025