dbt MCP security: tools, permissions and how to lock it down

The dbt MCP server can read and change models, run SQL and trigger jobs, and its controls differ between remote and self-hosted deployments. This page explains what each control does and where the gaps are.

On this page

Does the dbt MCP server meet our tool control requirements?

The dbt MCP server gives you two control points: per-call authorization on the remote server, and tool-level disable and allowlist settings on the self-hosted server. dbt does not name a separate enterprise tier of controls in the documentation we reviewed, so the controls you get depend on how you deploy and configure the server. Before approval, decide which deployment you will allow, then write down the tool list, token type and user permissions that apply to it.

For the self-hosted server, set the tool list explicitly. All toolsets are on by default in disable mode, and DISABLE_TOOLS takes a comma-separated list of tool names to turn off. Enable mode works as an allowlist, but mixing both modes for one toolset leads to unpredictable behavior, so pick one. Confirm in the MCP environment variables reference which toolsets are enabled by default, since SQL, codegen and server metadata tools start disabled while CLI, Semantic Layer, Discovery and Admin API tools start enabled. Review the Admin API job tools and any build or run commands before you grant them.

The gaps remain in three places. The self-hosted server runs on the user's machine, so your allowlist binds only if staff cannot edit their own environment variables or swap the binary. The remote server's tool set can change without notice or a deprecation period, so pin a version of the self-hosted server if you need a frozen tool list. Finally, authorization follows identity: personal access tokens inherit the permissions of the user who created them, and OAuth is limited to the scopes and projects the user consented to. Use the remote MCP setup guide to confirm which token type your team will use, and check each user's dbt permissions before approving access.

Which dbt MCP security controls apply to which deployment

This table compares the remote and self-hosted dbt MCP servers across authorization, token scope, tool disabling and allowlisting, and default toolsets. Each cell marks whether the control is built in, configured by the customer, or not documented, so reviewers can see where they must act themselves. Plan-dependent tool lists must be confirmed against your dbt plan before approval.

ControlRemote serverSelf-hosted server
Per-call authorizationBuilt in: each tool call is checked against the project, environment, job or run it targetsNot documented: confirm with dbt how the local process authorizes calls against the platform
OAuth scopes and consented projectsBuilt in: OAuth access is limited to the scopes and projects the user consented toNot documented: confirm whether OAuth applies to the local server's connection
Personal access token inheritanceConfigured by customer: a token carries the creator's permissions, so use a user with least privilegeConfigured by customer: the server acts with whatever credentials the local environment provides
DISABLE_TOOLS deny listNot applicable: remote tool set is not controlled through this variableConfigured by customer: comma-separated list of tool names to turn off
DBT_MCP_ENABLE allowlistNot applicable: tool set depends on plan and is not set by this variableConfigured by customer: when any enable variable is set, only listed toolsets run; do not mix modes for one toolset
Default-enabled toolsetsBuilt in: tool set varies by plan because Discovery and Semantic Layer APIs differ by planBuilt in: dbt CLI, Semantic Layer, Discovery and Admin API tools are on by default; SQL, codegen and metadata tools are off
Tool list stabilityNot documented: dbt says remote tools can change without notice or a deprecation periodConfigured by customer: pin a server version to freeze the tool set
Plan-dependent toolsConfigured by customer: confirm the exact tool list for your dbt plan before approvalNot applicable: tool set is set by the local configuration

Which dbt tools carry the most risk

The riskiest dbt MCP tools are the ones that can change data or run work in your warehouse, and the first decision is which of them an assistant may reach at all. dbt's own documentation warns that letting a client use dbt commands through the MCP tooling could modify your data models, sources and warehouse objects, so you should proceed only if you trust the client. The CLI group includes build, run, test, clone, compile and show. Of these, build and run materialize models and can overwrite tables, clone creates objects in the target schema, and show executes SQL against the database and returns the results, so it can read any table the credentials allow. Treat show as a data read path, not a harmless preview.

The Admin API tools trigger_job_run, retry_job_run and cancel_job_run act on dbt platform jobs rather than on your local project. An agent with the right permissions can start a production job, retry a failed run that writes to production, or cancel a run in progress. Confirm which of these your team wants exposed to an assistant, and confirm that production jobs are not reachable from a development token. Because these tools sit in the same enabled-by-default set as the CLI tools, a self-hosted server started without explicit restrictions exposes them. On the self-hosted server, SQL, codegen and server metadata tools are disabled by default, while CLI, Semantic Layer, Discovery and Admin API tools are enabled by default. Review that default list for each deployment, because the defaults do not match a read-only policy.

Before rollout, write down the tools you will keep, then check the active set in the environment your assistant actually uses, not only in the configuration you intended. Ask dbt which tools each plan exposes for the remote server, since the tool list depends on the plan. Confirm with your dbt administrator which job and environment scopes the connecting user holds, because the service account behind a job tool decides what a trigger can affect. Record the tools you disabled and the reason, so a reviewer can see the decision and so that a later version change does not silently re-enable a risky tool.

How a dbt MCP tool call is checked

The call starts in an MCP client, which sends it with an OAuth token, a personal access token or a service token. On the remote server, the call is authorized against the project, environment, job or run it targets, and personal access tokens carry the creating user's permissions while OAuth is further limited to consented scopes and projects. On the self-hosted server, DBT_MCP_ENABLE or DISABLE_TOOLS is applied first, so a disabled tool never reaches dbt. Check which path your team uses and confirm both controls in your own environment.

Authorization checkpoints differ between the remote and self-hosted dbt MCP servers.

Decisions to make before enabling dbt MCP tools

Four decisions shape what an AI client can do through the dbt MCP server: where the server runs, which credential it uses, which tools are switched on, and which version is installed. Each one changes the blast radius, so settle them in writing before any staff member connects an assistant.

Remote or self-hosted deployment

The remote server connects over HTTP to the managed dbt platform and needs no installation, while the self-hosted server runs on the user's machine and is started with uvx. Remote suits data consumption; the self-hosted server is the one that exposes dbt CLI commands that can change models, sources and warehouse objects. Decide which deployment each group may use, and confirm the tool list each one exposes on your plan. Where a team needs local development, the self-hosted server is where tool lockdown matters most.

About dbt MCP server

OAuth scopes and projects

OAuth access is limited to the scopes and projects the user consented to, so a person's approval defines the reach of the connection. Each tool call is also authorized against the project, environment, job or run it targets. Ask which projects and scopes are granted to each user, and whether consent is reviewed when roles change. Confirm with dbt how consent is shown to users and revoked by admins before rolling out broadly.

Personal access tokens inherit creator rights

A personal access token carries the permissions of the user who created it, so it can trigger, retry or cancel jobs wherever that person can. This is a risk when a token is copied into a shared config file or used by a bot. Require that tokens are created by named users with the minimum role, rotated when people leave, and never stored in shared repositories. Treat any token that can reach Admin API job tools as a high-impact credential.

Service tokens for shared automation

Service tokens authorize calls against the same project, environment, job or run checks as OAuth and personal tokens, but they are tied to a service identity rather than a person. They suit CI or scheduled agent use where no single employee should own the credential. Ask which permission set a service token holds, who can create and revoke it, and whether its Admin API reach matches the job it actually needs. Keep its scope narrower than any human role.

Enable or disable mode for self-hosted tools

The self-hosted server exposes all toolsets by default in disable mode, and DISABLE_TOOLS turns off named tools from a comma-separated list. Enable mode is an allowlist: once any DBT_MCP_ENABLE variable is set, only the toolsets you name are active. Mixing both modes for one toolset leads to unpredictable behavior, so pick one approach and document it. SQL, codegen and server metadata tools are disabled by default, while dbt CLI, Semantic Layer, Discovery and Admin API tools are enabled, so check each toolset against your intended use.

MCP environment variables reference

Pinning a self-hosted version

dbt states that remote MCP tools can change without notice or a deprecation period, and recommends pinning a version of the self-hosted server when a frozen tool set is needed. A pinned version lets a security review match the approved tool list to what runs in production. Without a pin, an upgrade can add tools that your allowlist never reviewed. Ask dbt which version pins are supported for your deployment, and retest your allowlist after every upgrade.

Available tools

Admin API permissions held by each identity

The Admin API tools include trigger_job_run, retry_job_run and cancel_job_run, so any identity with those permissions can start, retry or cancel dbt platform jobs. Map every user and service identity to its Admin API role before enabling the tools, and remove job-control rights from identities that only need to read metadata. Ask dbt to confirm how plan tiers affect which tools each identity sees, because the tool set depends on the plan.

How the lockdown differs by deployment and team

The self-hosted server runs on the analyst's machine and is started with the uvx command. Its tool set is controlled by environment variables on that machine, so the main lockdown lever is the configuration each analyst carries. By default, SQL tools, codegen tools and server metadata tools are disabled, while dbt CLI, Semantic Layer, Discovery and Admin API tools are enabled. Anyone who edits their own configuration can change that, so the baseline is only as strong as the setup you hand out.

  • Default state: confirm which toolsets are on in the version you pin, since the defaults are documented in the environment variables reference.
  • Disable list: DISABLE_TOOLS removes named tools, such as job triggers, from the set the client sees.
  • Allowlist mode: setting a DBT_MCP_ENABLE variable limits the server to the toolsets you name. Do not mix both modes for one toolset.
  • Pinned version: dbt recommends pinning the self-hosted server if you need a stable tool set, because remote tools can change without notice.
  • Credentials on the laptop: the analyst's warehouse and dbt platform credentials sit on the machine, so disk and session controls still matter.

Confirm with your own environment that every analyst uses the approved configuration file and that the client cannot override the environment variables.

Where dbt MCP controls fall short

The dbt MCP server gives an agent useful access, but several of its controls depend on version pinning, how modes are configured, how tokens are issued and where the server runs. Each card below names one gap and the control that usually covers it, so reviewers can check each one before approval.

Remote tool lists can change

dbt states that remote MCP tools can change without notice or a deprecation period. A tool your reviewers approved today may be added, renamed or altered after an upgrade, and nothing in your approval record will show it. Pin a version of the self-hosted server if you need a frozen tool set, and retest the tool list after any change. For the remote server, ask dbt how tool changes are announced and whether you can receive notice before they take effect.

Available tools

Enable and disable modes conflict

The self-hosted server uses a disable list by default, where all toolsets are on unless you turn specific tools off with DISABLE_TOOLS. Setting an enable variable switches to an allowlist, where only enabled toolsets run. dbt warns that mixing both modes for one toolset leads to unpredictable behavior. Choose one mode for the whole deployment, prefer the allowlist for regulated use, and review the resulting active tool list in a test environment before rollout.

Environment variables reference

Personal tokens carry full creator permissions

dbt says personal access tokens inherit the permissions of the user who created them. A token created by an engineer with broad project and job rights gives any agent that holds the token the same reach, including job triggers through the Admin API tools. Use service tokens with narrow scope for shared or automated use, and rotate or revoke tokens when a person changes role or leaves. Ask dbt which token types your plan supports and how revocation takes effect.

Set up remote MCP

Local server depends on endpoint control

The self-hosted server runs on the user's machine, so its environment variables, pinned version and network path are only as controlled as the laptop or workstation it runs on. A developer can change DISABLE_TOOLS or swap the package version locally. Enforce these settings through managed endpoint policy or a centrally deployed configuration, restrict who can edit the MCP client configuration, and check endpoints during audits.

Per-tool audit records need confirmation

Reviewers usually need to know which tool an agent called, against which project, environment or job, and when. Authorization is checked per call against the target project, environment, job or run, but this page does not establish what the server records for each call. Ask dbt whether individual tool invocations are logged, where those records live, how long they are kept and whether they can be exported to your SIEM. Until the answer is in writing, treat audit coverage as a gap and log at the client and warehouse layers.

Order of work to lock down dbt MCP tools before production

This sequence moves a team from an unreviewed dbt MCP connection to one with a confirmed tool list, a deliberate deployment and token choice, a single filter mode, and a tested block on refused tools. Each step ends with a check a reviewer can record.

  1. Confirm the plan and the tool list

    The platform owner checks which dbt platform plan the organization holds and reads the current Available tools page to list every toolset and tool the target server exposes. Remote tools depend on the plan because the Discovery and Semantic Layer APIs vary by plan, so the list must come from the account that will actually be used. Done means a written inventory that names each tool, its toolset, and the plan it was checked against.

  2. Choose the deployment and token types

    The security lead and platform owner decide between the self-hosted server and the remote server based on the use case, then decide which token types are permitted. Personal access tokens inherit the permissions of their creator, and OAuth is limited to the scopes and projects the user consented to, so shared or automated use needs a deliberate token choice. Done means a short decision record stating the deployment, the allowed token types, and who owns each credential.

  3. Pick one enable or disable mode

    On the self-hosted server, the team selects either disable mode, where all toolsets start active and named tools are switched off, or enable mode, where only listed toolsets run. Mixing the two modes for one toolset leads to unpredictable behavior, so the configuration should use exactly one approach. Done means a reviewed configuration file that the security lead has signed off, with a single mode recorded.

  4. Remove risky tools for the consumer use case

    Using the inventory from the first step, the team decides which tools a consumer of dashboards and lineage does not need. Build, run, test, clone, compile and show can change models or warehouse objects, show executes SQL, and the Admin API job tools can start, retry or cancel jobs. Tools that a read-only consumer does not need should be turned off or left out of the enabled set. Done means a list of retained and removed tools, each with a stated reason.

  5. Pin the self-hosted server version

    Remote tools can change without notice or a deprecation period, so the platform owner pins a specific version of the self-hosted server if the tool set must stay fixed. Each version upgrade then becomes a change that goes through review rather than an automatic update. Done means the pinned version is recorded in the deployment record, and the team knows which upgrade path requires a new review.

  6. Test that blocked tools are refused

    A tester connects a client using the production-like configuration and attempts to call each removed tool, along with one permitted tool that depends on the same permissions. Refused calls confirm the filter works, and a successful call on a removed tool means the configuration must be fixed before release. Done means a dated test record listing each tool and its observed result, reviewed by security.

  7. Set a review cadence for tool list changes

    The security lead assigns an owner to watch for changes in the tool list and sets a recurring review of the inventory, the filter settings and the pinned version. Each change should trigger a repeat of the blocked-tool test before it reaches users. Done means a named owner, a review schedule agreed in writing, and a change log that records every tool addition or removal.

Evidence a security reviewer should ask for

This table lists the evidence to request for a dbt MCP deployment, with the source each item comes from and what a reviewer should confirm. Read it as a request list: each row names an artifact, where dbt documents it, and what a complete answer looks like. Gaps in any row are a reason to pause approval until the owner provides the artifact.

Evidence itemWhat to requestWhere dbt documents it
Tool allowlist or disable configurationThe exact DISABLE_TOOLS list or DBT_MCP_ENABLE settings, and confirmation that no toolset mixes both modesMCP environment variables reference
Default toolset stateWhich SQL, codegen and server metadata tools are off, and which dbt CLI, Semantic Layer, Discovery and Admin API tools remain onMCP environment variables reference and Available tools
Deployment type and versionWhether the self-hosted or remote server is used, and the pinned self-hosted version for a frozen tool setAbout dbt MCP server and Available tools
Token types and permission ownersWhich identity each personal access token, service token or OAuth grant belongs to, and what that user can reachSet up remote MCP
OAuth consent scopeThe scopes and projects each user consented to, and whether any grant is broader than the use caseSet up remote MCP
Project and environment scopeThe project, environment, job or run each identity targets, with confirmation that tool calls are checked against themSet up remote MCP
Job and run action controlsWhether trigger_job_run, retry_job_run and cancel_job_run are disabled or limited to named jobsAvailable tools
dbt-side audit recordsPlatform logs of job triggers, run changes and user or token activity, with retention period confirmed with dbtConfirm with dbt account documentation and your plan owner

Questions buyers ask before approving dbt MCP tools

Is SSO required to use the dbt remote MCP server?

The supplied dbt documentation does not state that SSO is required, so confirm the sign-in options your dbt platform plan offers before approving the remote server. The remote server authenticates through the managed dbt platform, and dbt's remote MCP docs say each tool call is authorized against the project, environment, job or run it targets, whether the client uses OAuth, a personal access token or a service token. Ask dbt whether your identity provider can be used for sign-in on your plan, and document which token type each client uses. Start with the remote MCP setup guide to see the authentication options dbt describes.

What does the dbt MCP server cost, and which plan do we need?

The remote server is available on all dbt platform plans, so the server itself is not a separate purchase in the supplied documentation. What changes by plan is the tool set, because the Discovery API and Semantic Layer API differ between plans. Your recurring cost is therefore your existing dbt platform subscription, and the question for procurement is which tools your plan exposes to AI clients. Ask dbt in writing for the current price of your plan, whether any MCP-related usage is metered, and the exact tool list your plan returns. The self-hosted server runs on user machines and carries its own cost in engineering time for installation, version pinning and updates.

How long does it take to lock down the dbt MCP server?

The supplied sources do not give a duration, so treat any timeline as something to agree with your own team or a partner in writing. The work breaks into a few parts: deciding which server flavor each use case needs, turning off risky tools on the self-hosted server, confirming which token types clients use, and checking that the users behind personal access tokens hold only the access they should. Hypothetically, a team with one project and one approved client has less to review than a team with many projects, several clients and CI jobs. Ask for the scope, the deliverables and the retest step in writing before work starts.

Can our own team lock down the dbt MCP server without outside help?

Yes, a platform team with dbt administrator access can make most of the changes, because the controls are configuration settings. For the self-hosted server, dbt's environment variables reference describes the disable mode, where DISABLE_TOOLS takes a comma-separated list of tool names, and the enable mode, where any DBT_MCP_ENABLE variable limits the server to the toolsets you name. dbt warns that mixing both modes for one toolset leads to unpredictable behavior, so pick one mode per toolset. The harder part is governance: confirming who holds the permissions behind each token, reviewing logs, and retesting after each version change. An outside security review can help with that verification, and DeployOpen's AI agent rollout review covers tool permissions, credential handling and admin settings for coding agents and MCP servers.

What makes the dbt MCP lockdown effort go up or down?

The main drivers are the number of dbt projects and environments in scope, the token types in use, whether CI jobs or shared services call the server, and how many AI clients you approve. Each project adds permission checks, and each token type adds a different ownership question: a personal access token inherits the permissions of the user who created it, while OAuth is limited to the scopes and projects the user consented to. CI and service use add job-triggering tools such as trigger_job_run, retry_job_run and cancel_job_run to the review. dbt's available tools page also says tools can change without notice on the remote server, so a recurring review cost applies. Fewer projects, one token policy and a short list of approved clients keep the effort lower.

What should we ask dbt to confirm in writing before approval?

Ask for written answers on five points: which tools your plan exposes on the remote server, which sign-in and token types it supports for each client, how authorization is checked per project, environment, job and run, whether tool changes are announced in advance, and what the data and logging terms are for your account. Also ask how a frozen tool set can be kept, since dbt recommends pinning a version of the self-hosted server for that purpose. Request the license terms, support scope and any fees tied to your current plan. Keep the answers with your approval record so reviewers can see which tools were allowed and why.

Which dbt MCP tools should we disable first?

Start with the tools that can change data or run work. The dbt CLI tools include build, run, test, clone, compile and show, and dbt warns that letting a client use dbt commands could modify data models, sources and warehouse objects, so proceed only if you trust the client. The show tool executes SQL against the database and returns results, which makes it a data exposure path as well. On the self-hosted server, SQL tools, codegen tools and server metadata tools are disabled by default, while dbt CLI, Semantic Layer, Discovery and Admin API tools are enabled by default. Review the Admin API job tools before enabling them for any AI client, because they can start, retry or cancel dbt platform jobs.

Where to check each control against dbt's documentation

Reviewers should treat dbt's own documentation as the authority for what each dbt MCP server tool does, and use the pages below as the checklist. Start with the Available tools page, which lists the dbt CLI, SQL, Admin API and other tool groups, and note which ones can run build, run or show or trigger, retry and cancel jobs. Next, read the MCP environment variables reference to confirm the toggles for the self-hosted server, including DISABLE_TOOLS and the DBT_MCP_ENABLE variables, and to check which toolsets are on by default. Then open the remote MCP setup page to confirm how each tool call is authorized against the project, environment, job or run it targets.

The tool list is not fixed. dbt states that the tool list is generated from the dbt-mcp README on GitHub when the docs are built, and that remote MCP tools can change without notice or a deprecation period. A control that you verified last quarter may no longer match the tool names in production, so the allowlist or disable list should be tied to a specific version of the self-hosted server and rechecked after each upgrade. Ask dbt, in writing, how it announces tool changes for the remote server and whether any notice channel is available to your team.

Keep a dated record of each check: the server version or remote endpoint tested, the environment variables or tool names set, the plan your dbt account is on, and the token type in use. Confirm with dbt which Discovery API and Semantic Layer capabilities apply to your plan, since the remote tools depend on it. Where a documented behavior is unclear to your reviewers, such as how a personal access token interacts with a project scope, record the question and get the answer from dbt before approval rather than assuming the default.

How DeployOpen tests and hardens a dbt MCP rollout

DeployOpen treats dbt MCP security as a bounded engagement: we map which dbt MCP tools a client exposes, test how permissions and tool toggles behave in that environment, and document the settings that keep risky tools off. The work follows a written scope agreed before testing starts, and the findings lead to fixes and a retest.

How we scope

  • Inventory which dbt MCP server flavor each team uses, self-hosted or remote, and the dbt plan behind it
  • List the CLI, SQL, Admin API and other tool groups that agents can reach in your setup
  • Agree in writing which environments, projects, tokens and AI clients are in the test
  • Confirm who owns approval for enabling or disabling tools before any change is made

How we build

  • Test whether DISABLE_TOOLS and DBT_MCP_ENABLE settings produce the tool set you intended
  • Check that remote tool calls are refused when a token lacks rights to the targeted project, environment or job
  • Review personal access token and OAuth consent scope for over-broad access to projects and jobs
  • Probe risky paths such as build, run, SQL execution and job retry or cancel for unintended changes

How we hand over

  • Deliver a findings report covering tools, permissions, configuration and data exposure, with fixes ranked by risk
  • Provide a tool allowlist or disable configuration documented for each approved client and team
  • Record a pinned self-hosted server version where a frozen tool set is required, with an upgrade review step
  • Run a retest after fixes are applied and document the results for your security review file

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer when the tool set changes
  • Re-review the tool list when dbt updates its remote tools, which dbt says can change without notice
  • Support evidence requests from your security or compliance team as part of the written scope
  • Confirm retainer terms, scope and deliverables in writing before work begins

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.