# dbt MCP server

> Ask in plain English about dbt models, lineage, metrics and SQL, and get answers from your project.

- Sign-in: Sign-in or token
- Connect in RevampKey: https://revampkey.com/marketplace/dbt

## Agent skills (4)

- [dbt MCP Server Essentials: Connect and Query Safely with AI](https://revampkey.com/marketplace/dbt/skills/essentials.md): Sets up how an AI assistant connects to your dbt project, picks the right dbt tool for each question, and keeps results small. It asks before running anything that changes data or switches environments.
- [dbt Data Discovery with AI: Find the Right Model or Metric](https://revampkey.com/marketplace/dbt/skills/data-discovery.md): Finds the dbt model, mart, source or metric that answers a warehouse question, and explains why it is the canonical choice over the alternatives. It reads metadata and health before recommending anything, and makes no changes.
- [dbt Metric Question Answering with AI](https://revampkey.com/marketplace/dbt/skills/metric-question-answering.md): Answers a business question with a governed dbt metric or saved query through the Semantic Layer, checking grain, dimensions and filters, and falling back to SQL only when the metric layer cannot answer.
- [dbt Model Impact Analysis with AI: Trace Downstream Breakage Before You Change Anything](https://revampkey.com/marketplace/dbt/skills/model-impact-analysis.md): Traces what depends on a dbt model, source or macro through lineage, children and exposures, and rates how risky the change is. It reads the graph and does not edit your project.

All skills: https://revampkey.com/marketplace/dbt/skills.md

dbt is a tool for building data pipelines with SQL. Teams write models, which are SQL transformations, and dbt compiles them for their data platform. Each model can be tested, documented and kept in version control, the same way software engineers handle code. dbt Labs makes dbt. Data engineers and analytics teams use it, and dbt's homepage lists 80k+ teams using it weekly.

Connect dbt in the Connectors tab, then ask about your project in plain English. The agent can look up your models, sources, macros, seeds and exposures. It can trace lineage, showing which models sit upstream or downstream of a model. It can list metrics from the Semantic Layer, query them, and show their dimensions and saved queries. It can also run SQL or turn a question into SQL. It asks before it changes anything.

## What you can do

### Check what a model change will touch

You are about to change a model called fct_orders. You ask the agent what depends on it. The agent reads its parents, children and related models, traces lineage, and lists any exposures that use it. You get the list before you touch the code.

### Find unhealthy models before standup

Your pipeline runs slow this morning. You ask which models look unhealthy. The agent checks model health and model performance, then reads the details for the models you name, so you know where to look first.

### Answer a metrics question from the Semantic Layer

A stakeholder asks how many new customers signed up last month, split by region. You ask the agent. It lists metrics, checks the dimensions you can split by, and runs query_metrics. Then you can ask for the compiled SQL behind the number.

## Things to ask

- Which models sit upstream of fct_orders, and which exposures use it?
- Which of my models look unhealthy right now?
- What metrics do we have, and what can I slice revenue by?
- Run a SQL query that counts orders per day for the last 7 days.
- What macros does this project define, and what does the country_codes seed contain?

## What the agent can do

### Models and lineage

Find models and read their details. See the parents and children of a model, trace lineage through the project, find related models, and list mart models.

`get_all_models`, `get_model_details`, `get_model_parents`, `get_model_children`, `get_lineage`, `get_related_models`, `get_mart_models`

### Model health and performance

Check how a model is doing, including its health status and performance figures, and get the details behind them.

`get_model_health`, `get_model_performance`

### Sources, macros and seeds

List the sources and macros in your project, open one macro to read it, and read the details of a seed.

`get_all_sources`, `get_all_macros`, `get_macro_details`, `get_seed_details`

### Exposures

List the exposures in your project, then open one to see its details.

`get_exposures`, `get_exposure_details`

### Metrics and the Semantic Layer

List metrics and saved queries, then query metrics. Check which dimensions and entities you can use, see the values in a dimension, and view the SQL a metric compiles to.

`list_metrics`, `query_metrics`, `get_metrics_compiled_sql`, `get_dimensions`, `get_dimension_values`, `get_entities`, `list_saved_queries`

### SQL

Run SQL you write or ask for, or turn a plain English question into SQL. Text-to-SQL uses dbt Copilot actions, so it stops working when your account runs out until the limit resets.

`execute_sql`, `text_to_sql`

## FAQ

### What do I need to connect dbt to RevampKey?

Open the Connectors tab in RevampKey and add dbt. dbt's docs say its remote MCP server runs on the dbt platform and is available on all dbt platform plans. The tools you get depend on your plan, because the dbt APIs behind them vary by plan.

### What can the agent do in dbt, and what can't it do?

It can read models, sources, macros, seeds, exposures, lineage and metrics, and it can run SQL. It asks before it changes anything. The tools for this connector include no way to create or edit dbt models, and no way to run dbt build or dbt test. Check the agent's answers before you act on them.

### Does the agent see my data, and who approves changes?

dbt's homepage says dbt never stores your data. The agent reads project information and returns query results when you ask. It asks you before it changes anything. Only text_to_sql uses your dbt Copilot action allotment, so check that allotment if text-to-SQL stops working.

### Can I ask an AI agent about dbt lineage and metrics?

Yes. Ask which models feed a model, and the agent reads its parents, children and lineage. Ask for a metric, and it can query it through the Semantic Layer and show the compiled SQL. You can also list exposures and open one for its details.

### What is the dbt MCP server URL?

Each dbt account has its own MCP server URL: dbt platform: Account settings > Access URLs RevampKey asks for it when you connect.

### How does the dbt MCP server authenticate?

With dbt's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

### What can an AI agent do with the dbt MCP server?

It exposes 24 tools: 23 that read and 1 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for dbt?

Yes. 4 SKILL.md playbooks teach an agent how to do real dbt work step by step. RevampKey installs them when you connect dbt; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (24)

- `execute_sql` (changes data)
- `get_all_macros`
- `get_all_models`
- `get_all_sources`
- `get_dimension_values`
- `get_dimensions`
- `get_entities`
- `get_exposure_details`
- `get_exposures`
- `get_lineage`
- `get_macro_details`
- `get_mart_models`
- `get_metrics_compiled_sql`
- `get_model_children`
- `get_model_details`
- `get_model_health`
- `get_model_parents`
- `get_model_performance`
- `get_related_models`
- `get_seed_details`
- `list_metrics`
- `list_saved_queries`
- `query_metrics`
- `text_to_sql`

## Details

- Maker: dbt Labs
- Setup: Connect from the app
- Category: Data & analytics
- Documentation: https://docs.getdbt.com/docs/dbt-ai/about-mcp

Page: https://revampkey.com/marketplace/dbt
