Database · Developer Tools

Dbt MCP logo

Dbt MCP

dbt-labs/dbt-mcp

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.

Install

See repository

Setup steps are in the repository README.

Open README
GitHub stars
132
Author
@dbt-labs
Category
Database, Developer Tools
Updated
Oct 6, 2026

About Dbt MCP

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

Tools (40)

  • execute_sql

    Executes SQL on dbt Platform infrastructure with Semantic Layer support.

  • text_to_sql

    Generates SQL from natural language using project context.

  • get_dimension_values

    Gets distinct values for a dimension; option to scope to specific metrics.

  • get_dimensions

    Gets dimensions for specified metrics.

  • 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

    (deprecated — use get_node_details instead)

  • get_exposures

    Gets all exposures (downstream dashboards, apps, or analyses).

  • get_lineage

    Gets a bounded lineage graph with type, depth, and direction filtering.

  • get_macro_details

    (deprecated — use get_node_details instead)

  • get_mart_models

    Retrieves all mart models.

  • get_model_children

    (deprecated — use get_lineage instead)

  • get_model_details

    (deprecated — use get_node_details instead)

  • get_model_health

    Gets health signals: run status, test results, and upstream source freshness.

  • get_model_parents

    (deprecated — use get_lineage instead)

  • get_model_performance

    Gets execution history for a model; option to include test results.

  • get_node_details

    Gets full details for any dbt resource type (model, source, exposure, test, seed, snapshot, macro, semantic_model).

  • get_related_models

    Finds similar models using semantic search.

  • get_seed_details

    (deprecated — use get_node_details instead)

  • get_semantic_model_details

    (deprecated — use get_node_details instead)

  • get_snapshot_details

    (deprecated — use get_node_details instead)

  • get_source_details

    (deprecated — use get_node_details instead)

  • get_test_details

    (deprecated — use get_node_details instead)

  • search

    [Alpha] Searches for resources across the dbt project (not generally available).

  • build

    Executes models, tests, snapshots, and seeds in DAG order.

  • clone

    Clones selected nodes from the specified state to the target schema(s).

  • compile

    Generates executable SQL from models/tests/analyses; useful for validating Jinja logic.

  • docs

    Generates documentation for the dbt project.

  • get_lineage_dev

    Retrieves lineage from local manifest.json with type and depth filtering.

  • get_node_details_dev

    Retrieves node details from local manifest.json (models, seeds, snapshots, sources).

  • list

    Lists resources in the dbt project by type with selector support.

  • parse

    Parses and validates project files for syntax correctness.

  • run

    Executes models to materialize them in the database.

  • show

    Executes SQL against the database and returns results.

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux

Related MCP servers

More servers
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.

Database
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects your AI agents, IDEs, and applications directly to your enterprise databases.

Database
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Query MCP is an open-source MCP server that lets your IDE safely run SQL, manage schema changes, call the Supabase Management API, and use Auth Admin SDK — all with built-in safety controls.

Database
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

This is a continuously updated curated list of MCP servers, covering categories such as browser control, arts and culture, cloud platforms, command line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, gaming, knowledge and memory, location services, marketing, monitoring, search and utilities. Each project includes a GitHub link and star count for quick reference and use.

Database
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP is a server implementation of the Model Context Protocol for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.

Database
dbhub logo

dbhub

bytebase/dbhub

332

[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

Database