dbt MCP server enterprise setup: remote vs local and OAuth

The dbt MCP server has a self-hosted and a remote form, and remote OAuth is listed as public beta on Starter, Enterprise and Enterprise+ accounts. This page explains how to choose between them for a team and which token types fit shared or CI use.

On this page

Does the dbt MCP server fit an enterprise SSO and token requirement?

A team that wants AI assistants to query dbt metadata under company control has to decide which server fits its identity model. The remote server supports OAuth in public beta on Starter, Enterprise and Enterprise+ accounts, and it needs an MCP client that supports OAuth for remote HTTP servers. OAuth lets users connect without copying API tokens into the client. The self-hosted server, by contrast, authenticates with a token configured on the user's machine, using DBT_HOST, DBT_TOKEN and DBT_PROD_ENV_ID. Neither option is documented here as tied to the company identity provider beyond dbt platform sign-in, so an SSO requirement cannot be assumed to be met by either path.

Start by checking which sign-in path your identity team needs. If the requirement is that every user authenticates through the corporate identity provider and access is removed when someone leaves, ask dbt whether the platform's SSO configuration carries through to the remote MCP OAuth flow, and whether the public beta status affects your support terms. Ask how sessions are revoked and how an administrator can see which clients are connected. For token-based use, a service token suits shared team setups and CI, but dbt notes that it does not work for execute_sql, so a team that needs SQL access will need a personal access token for that tool, which ties access to one person.

Confirm three things in writing before approval: the plan that applies to your account, the authentication method your MCP client supports, and who owns the token lifecycle. The remote endpoint appears under Account settings, Access URLs, MCP Endpoint URL, in the form ` Where a token sits on a laptop or in a CI secret store, your security team should set the rotation and storage rules before rollout, not after.

Which server and authentication option each edition supports

This table compares the self-hosted and remote dbt MCP servers on OAuth, token types, CLI and Codegen tools, and the Administrative API. Each cell starts with one of four markers: built in, paid edition only, outside component needed, or not documented. Remote tool sets vary by plan, so confirm the tools your own account exposes before approving either server.

CapabilitySelf-hosted serverRemote server
OAuth sign-inNot documented in the supplied dbt sources; confirm with dbt before relying on itPublic beta; built in on Starter, Enterprise and Enterprise+ accounts, needs an OAuth-capable client
Personal access tokenBuilt in; supplied through the DBT_TOKEN settingBuilt in; dbt recommends it with service tokens for token-based auth
Service tokenBuilt in; suits shared team setups and CI through DBT_TOKENBuilt in; suits shared team setups and CI, but not execute_sql
execute_sql toolOutside component needed; also requires DBT_DEV_ENV_ID and DBT_USER_IDNot with service tokens; confirm the token type your plan accepts
dbt CLI commandsBuilt in; runs on the user's machine and is started with uvxNot available; CLI commands are supported only on the self-hosted server
Codegen toolsBuilt in; supported only on the self-hosted serverNot available on the remote server
Administrative API toolsBuilt in; subject to the public Administrative and Discovery API limitsBuilt in; the tool set depends on the plan
Default rate limitPublic Administrative and Discovery API limits applyDefault of 5,000 requests per minute per IP, per dbt's About dbt MCP server page

How the remote and self-hosted servers reach the dbt platform

The two dbt MCP server flavors reach the dbt platform by different routes, and that difference decides where authorization happens and which rate limits apply. The self-hosted server is a process that runs on the user's machine, started with the uvx command. It makes its own calls to the dbt platform using DBT_HOST and DBT_TOKEN, with DBT_PROD_ENV_ID required for platform features and DBT_DEV_ENV_ID and DBT_USER_ID added when execute_sql is used. Every request therefore carries the identity and permissions of the token it was given, and the endpoint's network path runs from the laptop or runner straight to the platform.

The remote server is an HTTP endpoint hosted in the dbt platform. Administrators find its address under Account settings, Access URLs, as the MCP Endpoint URL, which takes the form ` Clients connect to it over HTTP with either OAuth or a token, and no code runs on the user's device. Because the server sits inside the platform, the platform applies the authorization decision for each call. dbt documents a default rate limit of 5,000 requests per minute per IP for the remote server. Reviewers should confirm with dbt whether that limit can be changed for their account and how it behaves when many staff share one egress IP, such as behind a corporate NAT.

Self-hosted calls fall under the public Administrative and Discovery API limits rather than the remote server's per-IP figure, according to dbt's documentation. Teams should check those public limits against their expected load, especially for shared service tokens used by CI jobs that may run in bursts. Practically, a reviewer should record which path each client uses, confirm the endpoint URL and host for each environment, and ask dbt which limits apply to the specific account before approving a rollout.

Decisions to make before choosing remote or self-hosted

Each choice below changes who owns the connection, whose identity appears in dbt's audit trail, and which tools the AI client can reach. Settle them in this order: the server type, the authentication method, the token type for shared or CI use, and the version policy. Most of the later decisions depend on the first.

Remote OAuth or token authentication

OAuth lets a user connect the remote server without copying API tokens into the MCP client. Per dbt's docs, remote MCP OAuth is public beta for Starter, Enterprise and Enterprise+ accounts and requires an MCP client that supports OAuth for remote HTTP servers. Token-based auth is the fallback when the client cannot do OAuth. Confirm which plan your account is on before standardizing on OAuth, since actions are attributed to the signed-in user.

Remote OAuth status
Public beta
Remote MCP setup

Personal access token or service token

A personal access token ties every call to one person, so audit records and permissions follow that user. A service token suits shared team setups and CI because it is not tied to one employee's identity, but it is a shared credential that needs an owner, rotation and storage in a secrets manager. Note that service tokens do not work for execute_sql, so teams that need SQL access must use a personal access token for that tool.

Need for dbt commands and Codegen

dbt CLI commands and Codegen tools run only on the self-hosted server, not the remote server. If analysts or CI jobs need to run dbt commands or generate model code, the self-hosted server is required, and it runs on each user's machine, so each install is a separate endpoint to manage. If the need is limited to reading models, metrics, lineage and freshness, the remote server avoids local installs. Confirm the tool list for your plan before deciding.

Pinning the self-hosted version

dbt states that remote MCP tools can change without notice or a deprecation period. The self-hosted server can be pinned to a fixed version, which freezes the tool set and gives change control a fixed baseline for review. Pinning shifts maintenance to your team, since you must schedule upgrades and retest each one. Ask dbt which version tracks the tools your reviewers approved, and record that version in your change log.

Available tools

OAuth support in each MCP client

Remote OAuth only works where the MCP client supports OAuth for remote HTTP servers, and dbt says any MCP client that supports OAuth or token authentication and tool use can connect. Check each client your staff use against this requirement and record which clients fall back to token auth. Clients that need a token leave the shared credential decision to you, so confirm that before rollout.

How the answer changes by team and environment

A single analytics team working in a desktop MCP client usually fits the self-hosted server. It runs on each user's machine, starts with the uvx command, and supports the dbt platform CLI. Authentication uses a personal access token, because the self-hosted server reads DBT_HOST, DBT_TOKEN and DBT_PROD_ENV_ID to reach dbt platform features, and requests run under that analyst's identity. The execute_sql tool also needs DBT_DEV_ENV_ID and DBT_USER_ID, so collect those values before the first test. Points to settle:

  • Server: self-hosted, started with uvx on each analyst's machine.
  • Token: one personal access token per analyst, set in DBT_TOKEN.
  • SQL variables: DBT_DEV_ENV_ID and DBT_USER_ID only if analysts will run execute_sql.
  • Version: pin the server version if the team needs a stable tool set.
  • Remote option: consider the remote server only if the desktop client supports OAuth for remote HTTP servers.

Confirm which desktop client each analyst uses, whether it can start a uvx process on a managed laptop, and whether your dbt platform plan includes the tools the team plans to use.

Order of work before the server goes to production

This sequence confirms the plan, OAuth status and client support in writing, then picks the server flavor, credential type and owner for each use case. It ends with a test account run that proves the tool list and rate limits before any staff member connects.

  1. Confirm the dbt plan and OAuth status in writing

    Ask your dbt account contact to confirm in writing which dbt platform plan your account is on and whether remote MCP OAuth is available to it. The public beta covers Starter, Enterprise and Enterprise+ accounts, and the remote tool set varies by plan because the Discovery and Semantic Layer APIs differ. Done means you hold a dated written answer that names the plan, the OAuth status and the tool set you will receive, filed with the rollout record.

  2. Map each use case to remote or self-hosted

    List the actual jobs staff want from an AI assistant, such as querying metrics, reading lineage and freshness, or running dbt CLI commands and Codegen. The dbt docs state that dbt platform CLI commands and Codegen run only on the self-hosted server, while the remote server covers Semantic Layer, SQL, Discovery, Admin API and dbt v2 tools and suits data consumption. Done means each use case is assigned to one server flavor, with the reason written beside it.

  3. Select the token type and named owner

    For each remote or self-hosted connection, choose between OAuth, a personal access token and a service token. OAuth avoids copying API tokens into the MCP client, so it is the preferred path where the client supports it. Service tokens suit shared team setups and CI, but dbt notes they do not work for execute_sql, so plan that tool around a personal access token or OAuth. Record a named owner, a rotation process and the environment IDs each token can reach. Done means an approved credential register lists every token type, its owner and its scope.

  4. Confirm the MCP client supports OAuth or tokens

    Check the exact client version your staff will run, such as Claude, Cursor, VS Code or another MCP client, against the dbt integration guides and the requirement that the client supports OAuth for remote HTTP servers or token authentication with tool use. Confirm in a test install whether the client can complete the OAuth flow or accept a bearer token for the remote endpoint. Done means a client matrix names each supported client, version and authentication method, and clients that fail the check are excluded from the rollout.

  5. Pin the self-hosted server version if needed

    Because dbt states that remote MCP tools can change without notice or a deprecation period, decide whether the tool set must stay fixed for audit or change control. If it must, pin a specific version of the self-hosted dbt-mcp server from the dbt-labs/dbt-mcp repository and record the version in your configuration management. Confirm the pinned version still supports the features each use case needs. Done means the pinned version, its source and the upgrade approval path are written down.

  6. Confirm the remote endpoint and environment variables

    Copy the MCP Endpoint URL from Account settings under Access URLs in the dbt platform, which takes the form of your dbt host followed by the API AI MCP path, and check it matches your approved hostname. For the self-hosted server, confirm the required variables for DBT_HOST, DBT_TOKEN and DBT_PROD_ENV_ID are set, and add DBT_DEV_ENV_ID and DBT_USER_ID where execute_sql is needed. Done means a reviewed configuration file shows the endpoint and variables, with secrets stored outside plain config files.

  7. Verify tool lists and rate limits in a test account

    Connect a dedicated test account with the same plan and credential type planned for production. List the tools the client actually receives and compare them with the Available tools page, noting that the tool list is fetched from the dbt-mcp README when the docs are built. Check the remote rate limit, which dbt documents as a default of 5,000 requests per minute per IP, and confirm how self-hosted calls count against the public Administrative and Discovery API limits. Done means a signed test record lists the tools, limits and any mismatches, and production is blocked until mismatches are resolved.

  8. Approve production access and schedule a tool review

    Give the security or platform owner the test record, the client matrix, the credential register and the pinned version, then approve only the connections that passed. Set a recurring review of the dbt tool list, because remote tools can change without notice, and re-run the test account check after each change. Done means a written approval names the approved clients, server flavors, owners and review trigger, and no staff connection exists outside that list.

What a security reviewer asks to see for this setup

This table lists the evidence a reviewer should collect before approving a dbt MCP server setup, and where each item comes from. Use it as a checklist: each row names the source page or internal record that proves the point, so the approval file can be traced back to vendor documentation and your own configuration.

Evidence itemWhat to collectWhere it comes from
Plan and OAuth statusConfirm the dbt platform plan in use and that remote MCP OAuth is still labeled public beta for that plandbt Developer Hub pages on remote MCP setup and the About dbt MCP server page, checked on the approval date
Server flavor chosenRecord whether the team uses the remote server, the self-hosted server, or both, and whyApproval record that cites the About dbt MCP server page
Token type and ownerName each token, its type (personal access token or service token), its owner and the users or CI jobs that rely on itAccount settings in the dbt platform and the internal token register
Endpoint URL sourceShow that the MCP endpoint was copied from the Access URLs section under Account settings, not typed by handdbt platform Account settings, Access URLs, MCP Endpoint URL, and the setup page for remote MCP
Pinned self-hosted versionRecord the exact released version of the self-hosted server in each client configuration and who approved itClient configuration files under change control and the dbt-labs/dbt-mcp release record on GitHub
Tool list at approvalSave a dated copy of the tools exposed to each client and note that remote tools can change without noticeAvailable tools page on the dbt Developer Hub, with a dated export kept in the approval file
Rate limit baselineRecord the documented remote MCP limit and the Administrative and Discovery API limits that apply to the self-hosted serverAbout dbt MCP server page and the public API limit documentation it references

Questions buyers ask before approving the dbt MCP server

Does OAuth work on every dbt plan for the remote MCP server?

No. Remote MCP OAuth is listed as public beta for Starter, Enterprise and Enterprise+ accounts, so confirm your plan is in that list before you plan around it. The remote MCP server itself is available on all dbt platform plans, but the tools it offers depend on the plan because the underlying Discovery API and Semantic Layer API vary by plan. OAuth also needs an MCP client that supports OAuth for remote HTTP servers. Check both the plan and the client version with your dbt account team and your client vendor before approval, since a beta feature can change.

Why do service tokens fail for execute_sql?

Service tokens cannot run the execute_sql tool, so that tool needs a different credential. dbt recommends a personal access token or a service token for token-based remote authentication. Service tokens suit shared team setups and CI, but they do not work for execute_sql. For a self-hosted server, execute_sql also needs the development environment ID and a user ID alongside the host, token and production environment ID. Decide early whether SQL execution is in scope for each audience, because it changes which credential each person or pipeline holds and who is accountable for queries that run.

Does single sign-on with our company identity provider apply to the MCP server?

Confirm this with dbt for your specific plan rather than assuming it. The setup documentation describes OAuth as a way to connect to the remote server without copying API tokens into your MCP client, but it does not in the material reviewed here establish that your corporate identity provider governs that sign-in. Ask dbt whether OAuth sign-in follows your SSO configuration on your plan, how user deprovisioning would revoke MCP access, and whether service tokens bypass SSO entirely. Record the answers, because token-based access can outlive an employee's departure if tokens are not rotated or owned by a team.

What drives the cost and effort of a dbt MCP rollout?

The main drivers are your dbt plan, which clients your staff use, and who owns the tokens. The cost of the server itself depends on your dbt plan, and the tools available depend on that plan as well, so the plan decision shapes everything else. Client support matters because OAuth needs a client that supports remote HTTP servers, while self-hosted setups need each developer's machine configured. Internal ownership of service tokens, rotation and the shared configuration is the recurring work. Ask your dbt account team for plan-specific pricing and tool coverage in writing, and ask your client vendors which versions support OAuth.

What can our team set up itself, and when should we bring in outside help?

Your team can usually handle the basic endpoint and token setup, while outside help is worth considering for the review and hardening work. Internal staff can confirm the plan, find the MCP endpoint under Account settings and Access URLs, create tokens with clear owners, and document the approved clients. Outside help adds value when you need an independent test of what the connected agent can reach, how credentials are stored on laptops and in CI, and whether the configuration matches your written policy. DeployOpen plans and runs security testing of AI agent setups, including tool and file permissions, credential handling and SSO and admin settings, and delivers a findings report with fixes and a retest. Scope and timing are agreed in writing before work starts.

How do we confirm the tool list before approving the server?

Confirm the list against the dbt documentation for your plan and the exact server version you intend to deploy. dbt states that remote MCP tools can change without notice or a deprecation period, and the tool list on the Available tools page is fetched from the dbt-mcp README on GitHub when the docs are built. To freeze the tool set, dbt recommends pinning a version of the self-hosted server. Ask dbt which tools your plan exposes, then run the server in a test environment and record the tools it returns. Repeat that check after every upgrade, and keep the record with your approval, because the list you approved is the list you must govern.

Should we choose the self-hosted or the remote server?

Choose by use: the remote server suits data consumption with no installation, while the self-hosted server suits local development and the commands and Codegen tools. dbt describes the self-hosted server as running on the user's machine and started with uvx, supporting dbt v1, the dbt platform CLI and dbt v2. The remote server uses an HTTP connection to the managed platform and is described as suited to data consumption rather than local development. Commands and Codegen tools are supported only on the self-hosted server. Many teams need both, so approve each flavor separately with its own credentials and tool list.

How DeployOpen helps teams roll out the dbt MCP server safely

DeployOpen approaches dbt MCP server enterprise setup as a written, fixed-scope piece of work: we agree which server flavor, plan and token model fit your team before anything is configured. We then build, test and document the setup so your security and data teams can review it.

How we scope

  • We confirm which dbt platform plan and CLI or Administrative API needs your team has before choosing remote or self-hosted.
  • We record which client tools, OAuth support and token types each team will use, in writing.
  • Scope, deliverables and timelines are agreed in writing before work starts, and ongoing support can be added as a retainer.

How we build

  • We configure the remote endpoint or self-hosted server against your dbt account, keeping environment variables and secrets in your own infrastructure.
  • We test which tools each identity can reach, including checks on execute_sql access and service token limits.
  • We check the pinned server version, rate limit behavior and client settings against your written requirements before rollout.

How we hand over

  • You receive a written record of the chosen server, plan, OAuth or token configuration and the reasons behind each choice.
  • Your identity, security and data teams receive the setup documentation they need for their own review and approval.
  • Findings from testing come with recommended fixes and a retest so you can confirm each open item is closed.

How we support

  • Support covers upgrades, including reviewing changes when the self-hosted server version is updated and tool sets shift.
  • Continuous testing is available as a retainer for teams that add clients, tools or new dbt projects over time.
  • We confirm changes to plans, OAuth availability or endpoint details with dbt's current documentation before advising on them.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.