dbt MCP server for AI agents

Live

BEARER TOKEN

ANALYTICS ENGINEERING

Developer Tools

dbt gives your agent access to your dbt account: list projects, environments, and jobs, follow job runs and download run artifacts, trigger, retry, or cancel runs, and manage webhooks.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
dbt
agent · Acme Q3
Run
Show the most recent runs of the nightly job.
S
dbtcloud_runs_list
298ms
Analytics engineering agent
Listed the most recent runs of the nightly job with their status, so you can open the failed one.
Sources: dbt runs, 1 job
dbtcloud
5 runs
18:29
Message Claude...

Tools your analytics engineering agent reaches for on dbt, scoped per user.

CALL ANY TOOL
22 tools for analytics engineering in dbt: list projects, environments, and jobs, follow runs and artifacts, trigger, retry, and cancel runs, and manage webhooks.
dbtcloud_account_get
Get account
Get one dbt account by ID. Returns its name, plan, state, run_slots, developer seat counts and settings. Use this to check an account's plan and limits. Use dbtcloud_accounts_list to find account IDs.
Parameters
Name
Type
Required
Description
account_id
integer
Required
Your dbt account ID: the number after /accounts/ in your dbt URL, or from dbtcloud_accounts_list. Example: 12345
dbtcloud_accounts_list
List accounts
dbtcloud_environment_get
Get environment
dbtcloud_environment_variables_list
List environment variables
dbtcloud_environments_list
List environments
dbtcloud_job_get
Get job
dbtcloud_job_run
Run job
dbtcloud_jobs_list
List jobs
dbtcloud_project_get
Get project
dbtcloud_projects_list
List projects
dbtcloud_repositories_list
List repositories
dbtcloud_run_artifact_get
Get run artifact
dbtcloud_run_artifacts_list
List run artifacts
dbtcloud_run_cancel
Cancel run
dbtcloud_run_get
Get run
dbtcloud_run_retry
Retry run
dbtcloud_runs_list
List runs
dbtcloud_users_list
List users
dbtcloud_webhook_create
Create webhook
dbtcloud_webhook_delete
Delete webhook
dbtcloud_webhook_get
Get webhook
dbtcloud_webhooks_list
List webhooks
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// dbt tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["dbtcloud"], toolNames: [
    "dbtcloud_jobs_list",
    "dbtcloud_runs_list",
    "dbtcloud_run_artifact_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find the nightly job, show its latest run, and download that run's run_results.json" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["dbtcloud"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find the nightly job, show its latest run, and download that run's run_results.json" }],
  tools,
});

// Execute the tool call with the user's vaulted dbt access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["dbtcloud"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find the nightly job, show its latest run, and download that run's run_results.json" }],
  tools,
});

// Tool call runs with the user's vaulted dbt access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["dbtcloud"] }, pageSize: 100,
});

const agent = new Agent({
  name: "analytics_engineering_agent",
  model: "gemini-2.5-pro",
  instruction: "dbt tools scoped to this user",
  tools,
});

await agent.run("Find the nightly job, show its latest run, and download that run's run_results.json");
Try these prompts
Copy any prompt into your agent. Each maps directly to a dbt tool. Click to copy, paste into your agent, done.
Projects and jobs
Copy the prompt
Copied
List the projects in my dbt account.
Copy the prompt
Copied
List the jobs in the analytics project.
Copy the prompt
Copied
Show the environment variables for the analytics project.
Runs and artifacts
Copy the prompt
Copied
Show the most recent runs of the nightly job.
Copy the prompt
Copied
List the artifacts from run 123456.
Copy the prompt
Copied
Download run_results.json for that run.
Run control
Copy the prompt
Copied
Trigger the nightly job on the main branch.
Copy the prompt
Copied
Retry the failed run from the point of failure.
Copy the prompt
Copied
Cancel the queued run.
SEE HOW AUTH WORKS
Each user connects their own dbt access token once, and Scalekit sends it with every call. Access tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
dbt
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
dbt
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
dbt
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
dbt
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tool connectors.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other developer tool connectors.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared dbt access token looks fine in a demo. In production every job run looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
dbt today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access dbt as the user or through a shared key?
As the user. Each user connects their own dbt access token once, and Scalekit sends it with every call. Audit logs attribute every job run to that user, not a shared service account.
Where is the dbt access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in dbt?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list, get, and artifact tools without dbtcloud_job_run, which triggers a job run, dbtcloud_run_cancel, and dbtcloud_webhook_delete. 2 of the 22 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes dbt access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent read the artifacts of a run?
Yes. dbtcloud_run_artifacts_list lists the files a run produced, and dbtcloud_run_artifact_get downloads one, such as run_results.json.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""dbtcloud"": {
""url"": ""https://mcp.scalekit.com/dbtcloud"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.dbtcloud]
url = ""https://mcp.scalekit.com/dbtcloud""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""dbtcloud"": {
""url"": ""https://mcp.scalekit.com/dbtcloud"",
""type"": ""http""
}
}
}