MetorialDocs

Set up dbt Cloud in Metorial for Claude, ChatGPT and Cursor

Share dbt Cloud with your team in Claude, ChatGPT and Cursor through Metorial: personal access token or service account token sign-in, 23 tools (17 read-only).

To give your team dbt Cloud in Claude, ChatGPT, Cursor and other AI clients, an admin shares the dbt Cloud integration in a Metorial portal, and each person connects with a personal access token. Agents can manage dbt Cloud account operations for accounts, projects, environments, jobs, runs, artifacts, users, and webhook subscriptions. The integration has 23 tools, 17 read-only, 4 write and 2 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares dbt Cloud in a portal and how each person connects
  • What dbt Cloud asks for when you connect, and where to find it
  • How to keep the 17 read-only tools and reject the other 6

Before you start

Sign-in methods

MethodTypeWhat a person provides
Personal Access Token (default)API tokentoken
Service Account TokenAPI tokentoken

The portal and metorial setup use Personal Access Token unless someone picks another method.

Personal Access Token

To connect, a person enters:

  • token: Your dbt Cloud Personal Access Token. Created under Account Settings > API Tokens > Personal Tokens.

Service Account Token

To connect, a person enters:

  • token: Your dbt Cloud Service Account Token. Created under Account Settings > Service Tokens.

Setup settings

Whichever method you pick, setup also asks for:

  • accountId (optional): Optional dbt Cloud account ID. If omitted, account-scoped tools use the token directly when it can access exactly one account on the configured base URL. For multi-account tokens, call List Accounts and pass the selected accountId to the tool.
  • baseUrl (optional): Base URL for your dbt Cloud instance. Defaults to US multi-tenant (https://cloud.getdbt.com). Use https://emea.dbt.com for EMEA, https://au.dbt.com for APAC, or your custom URL for single-tenant deployments.

Admin: share dbt Cloud in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose dbt Cloud. Under Auth Method, keep Personal Access Token or pick another. For how members connect, choose Each person connects so everyone enters their own personal access token, or Shared connection to enter one personal access token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from dbt Cloud.

Choose who gets it

Add the access groups that should see dbt Cloud. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user dbt Cloud integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "dbt cloud"

Employee: connect dbt Cloud

In the portal

Open dbt Cloud in the catalog

Sign in to your portal and open dbt Cloud. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your personal access token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "dbt cloud"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Personal Access Token. To connect with Service Account Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your dbt Cloud connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "dbt cloud"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 17 read-only tools, such as get_job and get_run, and lose the 4 write tools, such as retry_run or test_webhook, and the 2 destructive tools, such as cancel_run or manage_webhook.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "dbt cloud"
metorial tools <integration-id>
metorial call <integration-id> get_account -d '{}'

metorial tools lists the 23 tools, minus any you rejected. get_account takes no input. It retrieves details about the configured dbt Cloud account.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (17)

  • get_account: Retrieve details about the configured dbt Cloud account.
  • list_runs: List dbt Cloud job runs with optional filters for job, project, environment, or status.
  • list_projects: List all projects in the dbt Cloud account.
  • list_users: List all users in the dbt Cloud account.
  • list_environments: List all environments for a given dbt Cloud project. Needs projectId.
  • get_run_artifact: Fetch an artifact file from a completed dbt Cloud run as a Slate attachment. Needs runId and path.
  • list_jobs: List dbt Cloud jobs, optionally filtered by project or environment.
  • get_job: Retrieve detailed information about a specific dbt Cloud job, including its schedule, execution steps, settings, and run history metadata. Needs jobId.
  • get_run: Retrieve detailed information about a specific dbt Cloud job run. Needs runId.
  • list_webhooks: List dbt Cloud webhook subscriptions configured for the account.
  • get_run_failure_details: Retrieve retry-related failure details for a failed dbt Cloud run, including the failed step and skipped steps when available. Needs runId.
  • get_webhook: Retrieve a dbt Cloud webhook subscription by ID, including subscribed events, target URL, active state, and scoped job IDs when available. Needs webhookId.
  • list_run_artifacts: List artifact file paths generated for a completed dbt Cloud run. Needs runId.
  • list_webhook_events: List delivery events for a dbt Cloud webhook subscription. Needs webhookId.
  • get_project: Retrieve details about a specific dbt Cloud project, including repository and connection identifiers. Needs projectId.
  • get_environment: Retrieve details about a specific dbt Cloud environment, including its type, dbt version, credentials, repository, and branch settings. Needs projectId and environmentId.
  • list_accounts: List dbt Cloud accounts accessible to the token on the configured base URL.

Write tools (4)

  • trigger_job_run: Trigger a new run for a dbt Cloud job. Needs jobId and cause.
  • retry_run: Retry a failed dbt Cloud run. dbt Cloud enqueues a new run and returns its run ID and status so it can be monitored with get_run. Needs runId.
  • test_webhook: Send a dbt Cloud test event to a webhook subscription endpoint and return the test delivery result. Needs webhookId.
  • retry_failed_job: Retry the latest failed run for a dbt Cloud job from the point of failure when possible. Needs jobId.

Destructive tools (2)

  • manage_webhook: Create, update, or delete a dbt Cloud webhook subscription. Needs action.
  • cancel_run: Cancel a currently queued or in-progress dbt Cloud job run. Needs runId.

Triggers

dbt Cloud has 1 trigger, which fire on events in dbt Cloud:

  • job_run_event: Triggers when a dbt Cloud job run starts, completes, or errors.

Next steps