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".
For an analytics engineer or analyst who works in Claude.
For someone on the team who works in ChatGPT.
For a data team where engineers, a data lead and business users share the morning.
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
- 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 minA good fit if you explore models and debug jobs in Claude.
- 1In dbt, open Account settings, then Access URLs, and copy the MCP Endpoint URL.
- 2In Claude, open Customize, then Connectors. Find dbt in the directory, or click +, choose Add custom connector and paste the URL.
- 3Click Connect, sign in to dbt and approve the scopes.
- 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 minA good fit if you work in ChatGPT.
- 1Copy your MCP Endpoint URL from dbt, as for Claude.
- 2In ChatGPT, open Plugins and create a custom app with your MCP Endpoint URL. On ChatGPT Business, an admin or owner adds it.
- 3Sign in to dbt and approve the scopes.
- 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.
- All
- AI
- Analytics
- Communication
- Finance
- Marketing
- Productivity
- Sales
- Social
Connect to dbt Cloud to manage data-transformation projects: list projects, environments, and jobs; trigger job runs; inspect runs and their artifacts (manifest, catalog, run_results); and audit users, groups, and service tokens.
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.
Rory asked the data agent. From dbt jobs, runs and artifacts. Nothing is posted until Teodora approves it.
- Find the model behind the Daily revenue dashboardfct_daily_revenue, from the exposures in the job's manifest
- Check last night's runFinished 06:12. The model built and all 9 of its tests passed
- Reply to Rory in the ecommerce channel"Yes, rebuilt at 06:12 and all 9 of its tests passed."
- Rerun the job to pick up orders since 06:12Left unticked: Kwame decides if an extra run is worth it
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.