martechdevs has been acquired by Growth and Analytics Partners LLC

Data pipelines and CDP

dbt MCP Server

dbt Labs publishes an official dbt MCP server in two forms. The remote server runs on the dbt platform (formerly dbt Cloud) with nothing to install, and suits metrics, metadata and lineage. The self-hosted server runs on your machine with uvx dbt-mcp and can run dbt commands. It works without a dbt platform account, but Semantic Layer, Discovery and Admin API tools need one.

Last updated: 6 November 2026

What does a dbt MCP server do?

A dbt MCP server gives an AI assistant governed access to models, metrics, lineage and freshness. It can browse models and sources, query Semantic Layer metrics, and read job runs and errors. The self-hosted server also runs dbt commands such as dbt run, dbt build and dbt test on your project.

Is there an official dbt MCP server?

Yes. dbt Labs publishes both forms. The self-hosted server is the Apache-2.0 dbt-labs/dbt-mcp repo, and the remote server runs the same project on the dbt platform. Claude's directory also lists a dbt connector from dbt Labs, marked Anthropic verified and added in June 2026.

What is the dbt MCP server URL, and how do you sign in?

The remote URL differs per account, so copy it from Account settings > Access URLs > MCP Endpoint URL. It follows https://YOUR_DBT_HOST_URL/api/ai/v1/mcp/. Sign in with OAuth, in public beta on Starter, Enterprise and Enterprise+, or a token in the Authorization header. The self-hosted server has no URL and runs from uvx dbt-mcp.

  • OAuth needs a static subdomain, such as abc123 in abc123.us1.dbt.com. Without one, contact dbt support.
  • Token setups also need the x-dbt-prod-environment-id header. execute_sql over a token needs a personal access token, x-dbt-dev-environment-id and x-dbt-user-id, and service tokens don't work for it.
  • The self-hosted server reads DBT_HOST and DBT_TOKEN for platform tools, and DBT_PROJECT_DIR and DBT_PATH for dbt commands. It turns off any toolset that's missing a required variable.

What can a dbt MCP server read and change?

Reads cover models, lineage, metrics, job history and dbt's docs. What can change depends on the form. Remote can trigger, retry and cancel jobs and run execute_sql, which doesn't block write statements. Self-hosted adds dbt commands, and dbt Labs warns they can modify models, sources and warehouse objects.

What it can read

What it can change

How do you set up a dbt MCP server in Claude, ChatGPT and Cursor?

For remote, copy your MCP Endpoint URL, add it to your client and approve scopes. dbt Labs documents Claude and Cursor in full, and names ChatGPT in one line. For self-hosted, install uv and add uvx dbt-mcp to your client's config with your project path.

Claude

Claude's directory lists a dbt connector from dbt Labs. dbt's own Claude guide doesn't mention that listing. It documents a custom connector, Claude Code and the self-hosted server, and the custom connector needs a static subdomain.

  1. Open the dbt connector listing and choose Add to Claude. For a custom connector, go to Customize > Connectors, click + Add, then Add custom connector.
  2. For a custom connector, enter a name and paste your MCP Endpoint URL, such as https://abc123.us1.dbt.com/api/ai/v1/mcp.
  3. Click Connect and complete the OAuth consent in dbt, approving only the scopes you need.
  4. For the self-hosted server in Claude Desktop, use the dbt-mcp.mcpb bundle from the latest release, which dbt Labs labels experimental, or claude_desktop_config.json. Local servers don't work in Claude on the web.

ChatGPT

dbt Labs gives one line for ChatGPT: Settings > Apps > Create App. ChatGPT's current flow is under Plugins. Use OAuth, because ChatGPT's form can't send dbt's token headers. The self-hosted server reaches ChatGPT only through OpenAI's Secure MCP Tunnel.

  1. On ChatGPT web, open Plugins, select the plus button, then Add custom MCP server.
  2. Enter a name and your MCP Endpoint URL as the server URL.
  3. Set authentication to OAuth, review the risk warning and select Create as a plugin.
  4. Sign in to dbt and approve the scopes you need on the consent screen.

Cursor

dbt Labs documents Cursor with Add to Cursor buttons for self-hosted setups and for remote with a token. For remote OAuth, its quickstart uses this entry in .cursor/mcp.json.

JSON
{
  "mcpServers": {
    "dbt": {
      "url": "https://YOUR_DBT_HOST_URL/api/ai/v1/mcp/"
    }
  }
}

What can you ask a dbt MCP server?

Start with lineage and job health, which read metadata and run nothing in your warehouse. Metric prompts run a query and count toward your plan. These examples fit the tools dbt Labs lists, so swap in your own names. The text_to_sql prompt uses a Copilot action, and the retry prompt rebuilds models.

  • Reads

    Which models feed fct_ad_spend? Show two levels of upstream lineage and flag any with failing tests or stale sources.

  • Reads

    Why did last night's production job fail? Show the failed run and the error.

  • Reads

    List the metrics in our Semantic Layer, then show revenue by channel for the last 30 days.

  • Spends credits

    Write SQL for weekly paid signups by channel using this project's models. Show me the SQL and don't run it.

  • Writes

    Retry the failed job run. Tell me the run ID and the job's commands first.

What are the limits of a dbt MCP server?

The remote server can't run dbt commands or reach local projects. It shares dbt's default limit of 5,000 requests per minute per IP. Self-hosted uses the public API limits, including 500 Discovery requests per minute. Self-hosted dbt commands time out after 60 seconds unless you raise DBT_CLI_TIMEOUT, which matters on a long build.

How much does a dbt MCP server cost?

The dbt-mcp code is open source, and dbt Labs hasn't published a separate MCP price. The Developer plan is free but excludes API access. Starter is $100 per user a month, with 15,000 models built and 5,000 queried metrics. Enterprise pricing is custom. Your warehouse bills every query and model build.

What are the alternatives to a dbt MCP server?

The main alternatives are a warehouse server, which queries tables without your dbt definitions, or a BI server with its own metric layer. Looker MCP fits if your metrics live in LookML. dbt Labs also documents guides for Snowflake Cortex and Databricks, so agents there can use the dbt server.

  • Snowflake MCP: Direct warehouse queries, without dbt's metric definitions.
  • BigQuery MCP: Direct warehouse queries, without dbt's metric definitions.
  • Databricks MCP: The warehouse route, if your dbt project runs on Databricks.
  • Looker MCP: Governed metrics, if your definitions live in LookML.

Which skill goes with a dbt MCP server?

Use the free Agent write safety skill before you allow job tools or dbt commands, because they can rebuild models and change warehouse objects. Use the Marketing context kit to record your metric definitions and model names once, so the assistant starts every prompt from the same rules and has less to guess.

We set up Claude Code and MCP for marketing teams, with access scoped per person and approval before anything changes. For dbt itself, see dbt implementation.

Sources

Want it set up for you? See implementation plans or book a free call.