By dbt-labsCreated 16 days ago
starstarstarstarstar

Official MCP server for dbt: CLI integration, project metadata discovery, and semantic-layer querying.

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

DbtMcpData TransformationSemantic Layer

What is the dbt MCP Server?

The dbt MCP Server is an official server for dbt (data build tool) that provides integration between dbt and MCP (Model Context Protocol). It enables CLI integration, project metadata discovery, and semantic-layer querying for dbt projects.

How to Use the dbt MCP Server?

  1. Install the required dependencies (e.g., uv).
  2. Set up the configuration by copying the .env.example file to .env and setting environment variables.
  3. Use the server with MCP clients like Claude Desktop, Cursor, or VS Code by adding the server configuration to their respective files.

Key Features of dbt MCP Server?

  • CLI integration for dbt commands (e.g., run, test, build) to manage data models and tests.
  • Metadata discovery to retrieve model details, relationships, and project structure.
  • Semantic-layer querying to fetch metrics, dimensions, and entities for business insights.
  • Remote execution of SQL queries through dbt Cloud’s infrastructure.
  • Supports natural language to SQL conversion for easy querying.

Use Cases of dbt MCP Server?

  1. Managing data transformation pipelines in dbt projects via CLI commands.
  2. Exploring and documenting project metadata for data lineage and understanding.
  3. Querying business metrics through the dbt Semantic Layer for analysis.
  4. Translating natural language questions into SQL queries for database interactions.

FAQ from dbt MCP Server?

  • What does DISABLE_DBT_CLI do?

    Disabling this allows dbt CLI, dbt Cloud CLI, and dbt Fusion MCP tools to be used. Default is false (enabled).

  • Is Multi-cell supported in the configuration?

    Yes, set MULTICELL_ACCOUNT_PREFIX with your account prefix if using Multi-cell.

  • What permissions are needed for the Semantic Layer?

    A service token with at least Semantic Layer Only, Metadata Only, and Developer permissions is required.