MCP Catalogs
Homedbt-mcp screenshot

dbt-mcp

by dbt-labs·562·Score 53

A comprehensive MCP server for dbt Core, Fusion, and Platform, providing SQL, semantic layer, and dbt CLI tools.

databasedeveloper-toolsai-llm
120
Forks
32
Open issues
this month
Last commit
2d ago
Indexed

Overview

The dbt MCP server is a production-ready implementation by dbt Labs that enables AI agents to interact with dbt projects through the Model Context Protocol. It offers extensive functionality across multiple categories including SQL execution, semantic layer operations, dbt CLI commands, and documentation management. The server provides tools for model discovery, lineage analysis, metric queries, and even code generation, making it a powerful integration for data teams looking to enhance their dbt workflows with AI assistance.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI-powered data analysis and SQL generation in dbt projects
you:Automating dbt project documentation and model lineage analysis
you:Integrating dbt with AI agents for automated data modeling and testing
you:What is the dbt MCP server?
you:Which dbt products does this server support?

When to choose this

Choose dbt MCP if you're working with dbt projects and want AI agents to understand your data model structure, execute SQL against your warehouse, or manage dbt operations through natural language.

When NOT to choose this

Don't choose this if you're not using dbt or need write access beyond what dbt CLI provides - it's designed for read analysis and dbt-specific operations rather than general database management.

Tools this server exposes

12 tools extracted from the README
  • execute_sql

    Executes SQL on dbt Platform infrastructure with Semantic Layer support.

  • text_to_sql

    Generates SQL from natural language using project context.

  • query_metrics

    Executes metric queries with filtering and grouping options.

  • get_model_details

    Gets model details including compiled SQL, columns, and schema.

  • get_lineage

    Gets full lineage graph with type and depth filtering.

  • run

    Executes models to materialize them in the database.

  • generate_model_yaml

    Generates model YAML with columns, option to inherit upstream descriptions.

  • fusion.compile_sql

    Compiles SQL in project context via dbt Platform.

  • search_product_docs

    Searches docs.getdbt.com for pages matching a query.

  • get_job_details

    Gets job configuration including triggers, schedule, and dbt commands.

  • list_metrics

    Retrieves all defined metrics.

  • get_model_health

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

Comparable tools

sql-mcppostgresql-mcpdbt-core

Installation

Installation

Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": ["@dbt-labs/dbt-mcp"],
      "env": {
        "DBT_PROJECT_DIR": "/path/to/your/dbt/project"
      }
    }
  }
}

Other MCP clients

Use the experimental MCP bundle (dbt-mcp.mcpb) available in the latest release assets. Follow the [mcpb CLI](https://github.com/modelcontextprotocol/mcpb) documentation to install or inspect the bundle.

npm install -g @modelcontextprotocol/mcpb
mcpb install https://github.com/dbt-labs/dbt-mcp/releases/download/vX.X.X/dbt-mcp.mcpb

FAQ

What is the dbt MCP server?
The dbt MCP server is a Model Context Protocol implementation that provides AI agents with tools to interact with dbt projects, including SQL execution, semantic layer operations, and dbt CLI commands.
Which dbt products does this server support?
The server supports dbt Core, dbt Fusion, and dbt Platform, with varying functionality available depending on your specific dbt setup and access level.

On Hacker News

Recent discussion from the developer community.

Compare dbt-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.