by dbt-labs
A MCP (Model Context Protocol) server for interacting with dbt.
# Add to your Claude Code skills
git clone https://github.com/dbt-labs/dbt-mcpThis 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.
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.
If you have comments or questions, create a GitHub Issue or join us in the community Slack in the #tools-dbt-mcp channel.
The dbt MCP server architecture allows for your agent to connect to a variety of tools.

execute_sql: Executes SQL on dbt Platform infrastructure with Semantic Layer support.text_to_sql: Generates SQL from natural language using project context.get_dimensions: Gets dimensions for specified metrics.No comments yet. Be the first to share your thoughts!
get_entities: Gets entities for specified metrics.get_metrics_compiled_sql: Returns compiled SQL for metrics without executing the query.list_metrics: Retrieves all defined metrics.list_saved_queries: Retrieves all saved queries.query_metrics: Executes metric queries with filtering and grouping options.get_all_macros: Retrieves macros; option to filter by package or return package names only.get_all_models: Retrieves name and description of all models.get_all_sources: Gets all sources with freshness status; option to filter by source name.get_exposure_details: Gets exposure details including owner, parents, and freshness status.get_exposures: Gets all exposures (downstream dashboards, apps, or analyses).get_lineage: Gets full lineage graph (ancestors and descendants) with type and depth filtering.get_macro_details: Gets details for a specific macro.get_mart_models: Retrieves all mart models.get_model_children: Gets downstream dependents of a model.get_model_details: Gets model details including compiled SQL, columns, and schema.get_model_health: Gets health signals: run status, test results, and upstream source freshness.get_model_parents: Gets upstream dependencies of a model.get_model_performance: Gets execution history for a model; opt...