dbt-mcp  by dbt-labs

MCP server for dbt interaction

Created 6 months ago
378 stars

Top 75.2% 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

20 hours ago

Responsiveness

1 day

Pull Requests (30d)
40
Issues (30d)
8
Star History
29 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%
611
ORM for AI agents
Created 5 months ago
Updated 1 week ago
Starred by Simon Willison Simon Willison(Coauthor of Django), Jared Palmer Jared Palmer(Ex-VP AI at Vercel; Founder of Turborepo; Author of Formik, TSDX), and
2 more.

cli by planetscale

0%
626
CLI tool for PlanetScale database management
Created 4 years ago
Updated 6 days ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Gregor Zunic Gregor Zunic(Cofounder of Browser Use), and
2 more.

airweave by airweave-ai

0.5%
3k
Semantic MCP server for AI agents
Created 8 months ago
Updated 16 hours ago
Feedback? Help us improve.