$ timeahead.in
/ servers/pypi/dbt-mcp
pypi

dbt-mcp

A MCP (Model Context Protocol) server for interacting with dbt.

587 stars26k/wkupdated 3d agogithub ↗
83good
▣ Overview

What it does

The dbt MCP server, maintained by dbt Labs, provides AI agents with programmatic access to dbt projects across dbt Core, Fusion, and dbt Platform. It exposes tools organized into five areas: SQL execution and generation (including Semantic Layer queries for metrics and dimensions), project discovery (lineage, models, sources, exposures), local dbt CLI commands (run, test, build, parse), dbt Cloud job management (trigger runs, cancel, retry), and dbt Codegen utilities. Agents can generate SQL from natural language, inspect data lineage, retrieve model details and freshness status, and orchestrate dbt workflows.

Who it's for

Analytics engineers and data engineers using dbt who want to embed AI agents—like Claude—directly into their data stack. Useful for teams where agents need to author SQL, inspect project metadata, or automate routine dbt operations without human intervention.

Common use cases

  • Generate SQL from plain-English descriptions using compiled project context.
  • Query the dbt Semantic Layer for metrics, dimensions, and pre-defined saved queries.
  • Explore lineage, upstream sources, and downstream exposures.
  • Automate dbt runs, test executions, and model materialization.
  • Trigger dbt Cloud jobs, monitor run status, and retrieve execution artifacts.

Setup pitfalls

  • Credential exposure: Stores dbt API keys and authentication tokens; protect these in restricted environments.
  • Warehouse mutations: dbt CLI tools can modify data models and warehouse tables—only enable if you trust the AI instructions and have audit logging in place.
  • Embedded credentials detected: The codebase contains detected secrets; review the code and configuration before production deployment to ensure no API keys or tokens are hardcoded.
  • Broad access requirements: Requires filesystem read/write access and network connectivity to dbt Cloud, increasing the attack surface if credentials are compromised.
1 credential detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
80
28.0
Freshness
25%
100
25.0
Adoption
20%
81
16.1
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
83.1
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "dbt-1": {
      "command": "uvx",
      "args": [
        "dbt-mcp"
      ]
    }
  }
}
📈 Score historylast 45 snapshots
5/10/20267/6/2026 · 45 snapshots
⚙ Maintenance health
71/ 100 · is this project alive?
contributors (1y)34
top contributor share32%
releases (1y)69
last release4d ago
ci⚠ failing
⛁ Raw data
weekly downloads26k
github stars587
forks123
open issues35
license✓ present
readme length7904 chars
last publish0d ago
last commit3d ago
last updated1d ago
install verified✓ pass · 52d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points