BLUENEXUS INTEGRATIONSCONNECTION GUIDE

dbt in Claude, ChatGPT and MCP: what each can do, and how to connect

dbt Labs has an official MCP server, and it's in Claude's connector directory. Connected to Claude or ChatGPT, it can find models and trace lineage, query Semantic Layer metrics, read job errors and run artifacts, and trigger, retry or cancel runs. Some tools can change data: SQL that writes, and on the local version, dbt commands that build models. This guide covers both versions, what each tool can do, how to connect, what reruns cost, and what changes when a data team shares the morning.

MCP (Model Context Protocol) is an open standard for plugging AI assistants into other apps. Claude and ChatGPT are a great fit for an analytics engineer's own work. BlueNexus is for when data quality is shared work.

A note on names: dbt Cloud is now called the dbt platform, and dbt Labs has merged with Fivetran. This guide uses "dbt".

ON YOUR OWN Claude

For an analytics engineer or analyst who works in Claude.

Models, lineage and metricsYes, with dbt's MCP server
JobsList, rerun and cancel; reruns count toward your plan
SQLexecute_sql can write, so turn it off if you don't need it
Who uses itJust you, in your own chats
ON YOUR OWN ChatGPT

For someone on the team who works in ChatGPT.

Models, lineage and metricsYes, with dbt's MCP server
JobsList, rerun and cancel; reruns count toward your plan
SQLexecute_sql can write, so turn it off if you don't need it
Who uses itJust you, in your own chats
WITH YOUR TEAM BlueNexus

For a data team where engineers, a data lead and business users share the morning.

Models, lineage and metricsJobs, runs and their artifacts; no metrics or SQL
JobsTrigger runs after a person approves
SQLNo: our connector doesn't run SQL
Who uses itYour team and your AI agents

Remote or local, and what each can do

dbt's MCP server comes in two versions:

  • Remote. Hosted by dbt at your account's MCP address. It's built for exploring and querying: models, sources, lineage, model health, metrics and SQL, plus job tools. It has no dbt CLI. It's available on every dbt platform plan, but which tools you get depends on your plan.
  • Local. You run it with uvx dbt-mcp. It adds dbt CLI tools like build, run and test, and code generation. dbt-mcp's README warns that the CLI tools could modify your data models, sources and warehouse objects.

Three tools deserve care. execute_sql doesn't block write statements. trigger_job_run and retry_job_run start real runs, and dbt counts each model that builds successfully in a deployment environment, even if the run later fails, while your warehouse bills the compute. Ask before any of these run.

What dbt's MCP server lets an AI do

Models and lineageFind models and sources, trace lineage, and check model health and exposures.
MetricsQuery Semantic Layer metrics by dimension, if your plan includes it.
Jobs and runsList jobs and runs, read errors and artifacts, and trigger, retry or cancel runs.
SQLTurn questions into SQL and run it. execute_sql doesn't block writes.
Works with
The remote server on every dbt platform plan; tools depend on your planClaude, Claude Code, ChatGPT and CursorOAuth (beta, Starter and up) or a personal or service token
Keep in mind
  • execute_sql can change data
  • Reruns count toward models built and use warehouse compute
  • The remote server has no dbt CLI; the local one does
  • Remote tools can change without notice

Connect dbt to Claude or ChatGPT

Both use your account's MCP Endpoint URL and sign in with dbt.

Connect dbt to Claude

5 min

A good fit if you explore models and debug jobs in Claude.

  1. 1In dbt, open Account settings, then Access URLs, and copy the MCP Endpoint URL.
  2. 2In Claude, open Customize, then Connectors. Find dbt in the directory, or click +, choose Add custom connector and paste the URL.
  3. 3Click Connect, sign in to dbt and approve the scopes.
  4. 4Ask which production jobs failed in the last 24 hours, and why.

dbt's Claude guide says OAuth is in public beta for Starter, Enterprise and Enterprise+, and needs a static subdomain. In Claude Code, run claude mcp add --transport http dbt with your URL.

Connect dbt to ChatGPT

5 min

A good fit if you work in ChatGPT.

  1. 1Copy your MCP Endpoint URL from dbt, as for Claude.
  2. 2In ChatGPT, open Plugins and create a custom app with your MCP Endpoint URL. On ChatGPT Business, an admin or owner adds it.
  3. 3Sign in to dbt and approve the scopes.
  4. 4Ask which models feed your revenue dashboard.

dbt says its plugin in ChatGPT is generally available. Custom MCP apps are for ChatGPT Business, Enterprise and Edu, on the web. dbt's remote setup guide has the current steps.

For developers

The remote server also takes a personal access token or a service token in an Authorization header, with an x-dbt-prod-environment-id header. Service tokens can't run execute_sql. For SQL, use a personal token and also send x-dbt-dev-environment-id and x-dbt-user-id. To hide tools, send x-dbt-disable-tools or x-dbt-disable-toolsets. On the local server, flags like DISABLE_DBT_CLI and DISABLE_ADMIN_API turn whole toolsets off, and SQL is off by default. The Admin API allows 5,000 requests a minute and the Discovery API 500, with a five-minute cooldown after a 429. dbt says remote tools can change without notice.

Who can do what

  • Permissions carry over. OAuth scopes filter your existing dbt permissions. They don't add any.
  • Watch service tokens. dbt says Account Admin service tokens have full read and write access, and tokens have no expiry unless you set one when you create them. On Starter, service tokens can only get Semantic Layer permissions.
  • API access depends on plan. The free Developer plan doesn't include API access, so job tools need Starter or above.
  • Audit logs are Enterprise. On Enterprise plans, actions through OAuth apps are logged with the user as the actor.
  • Your data. dbt Labs says it doesn't use customer content processed by its own AI, dbt Wizard, for training. Through MCP, results go to Claude or ChatGPT, and that app's settings apply.

When it doesn't work

  • OAuth isn't offered. OAuth needs Starter or above and a static subdomain. Use a token instead, in Claude Code, Cursor, or Claude Desktop with dbt's mcp-remote setup.
  • 401 with a token. Check the token's permission set against dbt's Claude guide.
  • execute_sql fails. Service tokens can't run it. Use a personal token or OAuth.
  • Staging jobs are missing. Job lists default to production. Ask for a specific project or environment.
  • 429 Too Many Requests. Wait five minutes before trying again.

With a team: dbt in BlueNexus

In Claude or ChatGPT, each person connects and works in their own chats. That suits an analytics engineer debugging a model. In a retailer's data team, engineers fix models, the data lead decides what to rerun, and the head of ecommerce wants to know if this morning's numbers are right.

BlueNexus is a shared AI workspace where people and AI agents work in the same projects, channels and tasks. The BlueNexus dbt connector, our own integration, has 24 tools, 19 that read and 5 that act, for listing projects, environments and jobs, triggering job runs, inspecting runs and their artifacts, and auditing users, groups and service tokens. It doesn't run SQL or query metrics. Every run it triggers waits for a person in Needs you.

Open Add a connector, search for dbt, click Connect and follow the steps.

Illustration of the BlueNexus app with example data.

At Wavecrest Apparel, a 140-person online clothing retailer in San Diego, Rory, the head of ecommerce, asks the data agent whether the daily revenue dashboard is right before a trading meeting. The answer waits for Teodora, the data lead, in Needs you.

The agent checked the run and the tests. Whether another run is worth the cost stays with the data team.

Illustration of the BlueNexus app with example data.

For failed jobs, see dbt job failed? Find the cause and rerun from failure. For the team, see a morning dbt data check for the whole data team.

Which way fits you

If you work in dbt yourself, connect the remote server to Claude or ChatGPT, keep SQL and job tools off until you need them, and use the local server for development. If you'd rather stay in dbt, dbt Wizard, dbt's own AI agent, in preview, can help debug a failed job.

If data quality is shared work, across engineers, a data lead and business users, you'll get more from one shared space than from several private chats. That's what BlueNexus is built for, and you can sign up for BlueNexus to bring your team in.

Questions people ask about dbt and AI

Does dbt have an MCP server?

Yes. dbt Labs has an official MCP server in two versions: a remote one hosted by dbt, available on every dbt platform plan, and a local one you run with uvx dbt-mcp. It's in Claude's connector directory.

What's the difference between the remote and local dbt MCP server?

The remote server is hosted by dbt and built for exploring models, lineage and metrics, plus job tools. It has no dbt CLI. The local server can also run dbt build, run and test, which can change your warehouse, and its CLI tools work without a dbt platform account.

How do I connect dbt to Claude?

Copy the MCP Endpoint URL from dbt's Account settings, Access URLs. In Claude, open Customize, then Connectors, find dbt or add a custom connector with the URL, and sign in.

Can the dbt MCP server change my data?

Some tools can. dbt says execute_sql doesn't block write statements, and the local server's CLI tools can modify models and warehouse objects. Job tools can trigger, retry and cancel runs. Turn off what you don't need.

Does rerunning a dbt job through AI cost anything?

Yes. dbt counts each model that builds successfully in a deployment environment, including runs started through the API, even if the run later fails. Reruns also use warehouse compute.

Subscribe to our blog

Product insights, AI and product thinking delivered to your inbox.