dbt MCP

v1.0.3โ€ขData Science & MLโ€ขstable

๐ŸŽ–๏ธ ๐Ÿ ๐Ÿ  โ˜๏ธ - Official MCP server for [dbt (data build tool)](https://www.getdbt.com/product/what-is-dbt) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.

data-analyticsdata-engineeringdbtllmmcp
Share:
566
Stars
0
Downloads
0
Weekly
0/5

What is dbt MCP?

dbt MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐ŸŽ–๏ธ ๐Ÿ ๐Ÿ  โ˜๏ธ - official mcp server for [dbt (data build tool)](https://www.getdbt.com/product/what-is-dbt) providing integration with dbt core/cloud cli, project metadata discovery, model information,...

๐ŸŽ–๏ธ ๐Ÿ ๐Ÿ  โ˜๏ธ - Official MCP server for [dbt (data build tool)](https://www.getdbt.com/product/what-is-dbt) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP protocol support

Use Cases

dbt Core and Cloud integration
Data model metadata discovery
Semantic layer querying
dbt-labs

Maintainer

LicenseApache-2.0
Languagepython
Versionv1.0.3
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @us-all/dbt-mcp

Manual Installation

npx -y @us-all/dbt-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use dbt MCP

The official dbt MCP server by dbt Labs connects Claude to your dbt Core or dbt Cloud project, providing over 40 tools organized across SQL execution, Semantic Layer querying, Discovery API metadata, dbt CLI commands, Admin API job management, code generation, LSP-based lineage analysis, and documentation search. Data engineers and analytics engineers use it to run dbt builds, query metrics, explore model lineage, and generate boilerplate code without leaving their AI assistant. It supports dbt Core, dbt Fusion, and dbt Platform (Cloud) environments.

Prerequisites

  • dbt Core or dbt Cloud project already set up and configured
  • Python 3.9+ (for dbt Core usage) or a dbt Cloud account with API access
  • Node.js 18+ and npx (for running via the npm bundle)
  • dbt Cloud service token with appropriate permissions if using Cloud features
  • Claude Desktop or another MCP-compatible client
1

Install via npx or download the MCP bundle

The recommended approach is to run the server directly via npx using the published npm package. Alternatively, download the experimental dbt-mcp.mcpb bundle from the latest GitHub release assets.

npx -y @us-all/dbt-mcp
2

Locate your dbt profiles and project

The server needs to know where your dbt project lives and how to connect to your warehouse. Make sure your dbt profiles.yml is configured correctly and that 'dbt debug' passes before adding the MCP server.

dbt debug  # Verify dbt connection works
3

Configure Claude Desktop

Add the dbt MCP server to your Claude Desktop configuration file. On macOS this is at ~/Library/Application Support/Claude/claude_desktop_config.json. Point to your dbt project directory and include any required environment variables for dbt Cloud if needed.

{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": ["-y", "@us-all/dbt-mcp"],
      "env": {
        "DBT_PROJECT_DIR": "/path/to/your/dbt/project",
        "DBT_PROFILES_DIR": "~/.dbt"
      }
    }
  }
}
4

Configure dbt Cloud credentials (if using Cloud features)

For Discovery API, Admin API, and Semantic Layer tools you need a dbt Cloud service token. Set the relevant environment variables so the server can authenticate with the dbt Platform APIs.

{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": ["-y", "@us-all/dbt-mcp"],
      "env": {
        "DBT_PROJECT_DIR": "/path/to/your/dbt/project",
        "DBT_PROFILES_DIR": "~/.dbt",
        "DBT_CLOUD_SERVICE_TOKEN": "your-dbt-cloud-service-token",
        "DBT_CLOUD_ACCOUNT_ID": "your-account-id"
      }
    }
  }
}
5

Restart Claude Desktop and explore tools

Fully quit and reopen Claude Desktop. The dbt MCP server exposes tools across SQL, Semantic Layer, Discovery, CLI, Admin, Codegen, LSP, and Docs categories. You can ask Claude to list available dbt models, run builds, or query metrics.

dbt MCP Examples

Client configuration

Claude Desktop JSON configuration for the dbt MCP server with both Core and Cloud environment variables.

{
  "mcpServers": {
    "dbt": {
      "command": "npx",
      "args": ["-y", "@us-all/dbt-mcp"],
      "env": {
        "DBT_PROJECT_DIR": "/path/to/your/dbt/project",
        "DBT_PROFILES_DIR": "~/.dbt",
        "DBT_CLOUD_SERVICE_TOKEN": "your-dbt-cloud-service-token",
        "DBT_CLOUD_ACCOUNT_ID": "your-account-id"
      }
    }
  }
}

Prompts to try

Sample prompts that make use of the dbt MCP server's SQL, Semantic Layer, and CLI tools.

- "List all models in my dbt project and show their descriptions and tags"
- "Run dbt build for the orders model and show me the test results"
- "Query the revenue metric broken down by customer_segment for the last 30 days"
- "Show me the lineage for the fct_orders model โ€” what sources feed into it and what exposures use it?"
- "Generate the model YAML for my staging models in the marketing schema"
- "Search the dbt docs for how to use incremental models with merge strategy"

Troubleshooting dbt MCP

dbt CLI commands fail with 'profile not found' errors

Ensure DBT_PROFILES_DIR points to the directory containing your profiles.yml (usually ~/.dbt) and DBT_PROJECT_DIR points to the folder with your dbt_project.yml. Run 'dbt debug' in that directory first to confirm the connection works independently.

Discovery API or Semantic Layer tools return authentication errors

These tools require a valid dbt Cloud service token. Generate one in the dbt Cloud UI under Account Settings > Service Tokens, then add DBT_CLOUD_SERVICE_TOKEN and DBT_CLOUD_ACCOUNT_ID to the env block in your config.

npx fails to find or run @us-all/dbt-mcp

Ensure Node.js 18+ is installed and npx is available on your PATH. Try running 'npx -y @us-all/dbt-mcp --version' in a terminal to confirm the package resolves. If you see network errors, check your npm registry settings.

Frequently Asked Questions about dbt MCP

What is dbt MCP?

dbt MCP is a Model Context Protocol (MCP) server that ๐ŸŽ–๏ธ ๐Ÿ ๐Ÿ  โ˜๏ธ - official mcp server for [dbt (data build tool)](https://www.getdbt.com/product/what-is-dbt) providing integration with dbt core/cloud cli, project metadata discovery, model information, and semantic layer querying capabilities. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install dbt MCP?

Install via npm with the command: npx -y @us-all/dbt-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with dbt MCP?

dbt MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is dbt MCP free to use?

Yes, dbt MCP is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "dbt": { "command": "npx", "args": ["-y", "@us-all/dbt-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use dbt MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides