# Connect dbt Core to Your AI Agent (Universal MCP)

> Use your AI to manage databases, monitor systems, and query data in dbt Core — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http dbt-core https://api.universalmcp.app/mcp/dbt-core`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/dbt-core` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "dbt-core", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: dbt Core (Fivetran + dbt Labs is now Fivetran) | Category: Marketing & Analytics | Auth: Encrypted API key or guided local/on-prem setup | Deployment: hybrid
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Project manifests, Warehouse query results, Code change drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=dbt-core | Guide: https://universalmcp.app/mcp/dbt-core
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (16 actions: 9 Read, 7 Write)
Perform over 10 actions across model development, lineage & governance, deployment, testing & validation, and learning & support. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Model Development (4):** Write SQL Data Model (write), Compile Models for Target Warehouse (read), Rename Model and Update Refs (write), Install Open Source dbt Packages (write)
- **Lineage & Governance (4):** Trace Column-Level Lineage (read), Filter Lineage DAG (read), Review Upstream Dependencies (read), Audit Lineage for Renamed Fields (read)
- **Deployment (4):** Deploy Data Pipeline (write), Version Control Project Changes (write), Connect Supported Data Platform (write), Check dbt System Status (read)
- **Testing & Validation (3):** Run Local SQL Validation (read), Write Data Tests (write), Review Validation Failures (read)
- **Learning & Support (1):** Search dbt Documentation (read)

## Example Prompts for dbt Core
- **Failing tests:** "In dbt Core, list every failing schema and data test from the last run with its model, column, and row count."
- **Lineage impact:** "In dbt Core, trace the downstream models and exposures affected by the failed fct_orders build."
- **Model docs:** "In dbt Core, show which models lack column descriptions or have no tests in the marts folder."
- **Draft fix PR:** "Draft a dbt Core fix for the not_null_payment_id test in stg_payments as a PR for my review before merging."
