dbt-mcp  by dbt-labs

MCP server for dbt interaction

Created 7 months ago
412 stars

Top 70.9% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides an MCP (Model Context Protocol) server for interacting with dbt, enabling seamless integration of dbt functionalities into various IDEs and AI coding assistants. It targets developers and data engineers who leverage dbt for data transformation and want to enhance their workflow with intelligent tooling.

How It Works

The server acts as a bridge, exposing dbt's core commands (build, compile, docs, ls, parse, run, test, show) and Semantic Layer capabilities (list_metrics, get_dimensions, get_entities, query_metrics) via the MCP. It also supports Discovery API functions for model introspection and Remote capabilities for natural language to SQL generation and execution. Configuration is managed through environment variables, allowing customization for dbt Cloud instances, multi-cell setups, and specific tool group enablement.

Quick Start & Requirements

  • Install: Copy .env.example to .env and configure environment variables.
  • Prerequisites: A dbt project, dbt Cloud access token (with specific permissions for Semantic Layer), and potentially dbt CLI/Fusion executables.
  • Integration: Configuration snippets are provided for MCP clients like Claude Desktop, Cursor, and VS Code.

Highlighted Details

  • Exposes dbt CLI commands for model lifecycle management.
  • Provides access to dbt Semantic Layer metrics and entities.
  • Enables model discovery and introspection.
  • Supports natural language to SQL generation and execution via Remote tools.

Maintenance & Community

This project is from dbt-labs, the creators of dbt. Contribution instructions are available in CONTRIBUTING.md.

Licensing & Compatibility

The repository does not explicitly state a license in the provided README. Users should verify licensing for commercial use or closed-source integration.

Limitations & Caveats

The README does not specify a license, which may impact commercial adoption. Users must ensure their dbt Cloud service token has the necessary permissions for Semantic Layer and Metadata operations.

Health Check
Last Commit

21 hours ago

Responsiveness

1 day

Pull Requests (30d)
40
Issues (30d)
15
Star History
25 stars in the last 30 days

Explore Similar Projects

Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Michael Chiang Michael Chiang(Cofounder of Ollama), and
2 more.

enrichmcp by featureform

0.3%
618
ORM for AI agents
Created 7 months ago
Updated 3 days ago
Starred by Simon Willison Simon Willison(Coauthor of Django), Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX), and
2 more.

cli by planetscale

0.2%
628
CLI tool for PlanetScale database management
Created 4 years ago
Updated 1 day ago
Starred by Assaf Elovic Assaf Elovic(Cofounder of Tavily), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
3 more.

airweave by airweave-ai

1.4%
4k
Semantic MCP server for AI agents
Created 10 months ago
Updated 10 hours ago
Feedback? Help us improve.