# dbt Cloud

```json
{
  "name": "dbt Cloud",
  "slug": "dbt_cloud",
  "url": "https://composio.dev/toolkits/dbt_cloud",
  "markdown_url": "https://composio.dev/toolkits/dbt_cloud.md",
  "logo_url": "https://logos.composio.dev/api/dbt_cloud",
  "categories": [
    "analytics & data"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-10-19T05:31:12.083Z"
}
```

![dbt Cloud logo](https://logos.composio.dev/api/dbt_cloud)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with dbt Cloud MCP or direct API to inspect projects, discover metadata, monitor job runs, and query governed data through natural language.

## Summary

dbt Cloud is a platform for managing analytics projects and governed data products.
It provides administrative APIs, metadata discovery, and Semantic Layer access.

## Categories

- analytics & data

## Toolkit Details

- Tools: 20

## Images

- Logo: https://logos.composio.dev/api/dbt_cloud

## Authentication

- **Bearer Token**
  - Type: `bearer_token`
  - Description: Bearer Token authentication for dbt Cloud.
  - Setup:
    - Configure Bearer Token credentials for dbt Cloud.
    - Use the credentials when creating an auth config in Composio.
- **Oauth2**
  - Type: `oauth2`
  - Description: Oauth2 authentication for dbt Cloud.
  - Setup:
    - Configure Oauth2 credentials for dbt Cloud.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- List dbt Cloud projects and environments
- Query governed data through dbt Semantic Layer
- Review recent dbt Cloud job runs

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `DBT_CLOUD_ADMIN_API_DELETE` | Admin API Delete | Irreversibly delete one selected dbt Cloud administrative resource using a fixed documented Admin API operation from the official v2 or v3 OpenAPI specification. Operation values are provider operation IDs. Deleted resources and configuration cannot be recovered by this action. |
| `DBT_CLOUD_ADMIN_API_READ` | Admin API Read | Perform one documented dbt Cloud Admin read selected by operation, using its documented path and optional query parameters from the official v2 and v3 OpenAPI specifications. Operation values are provider operation IDs. This broad read is Bearer-token only because the mapped set includes operations with no official OAuth scope. |
| `DBT_CLOUD_ADMIN_API_WRITE` | Admin API Write | Execute one predeclared dbt Cloud Administrative API POST, PATCH, or PUT operation. Selected operations may create or mutate administrative resources; review the matching provider OpenAPI operation, path parameters, query, and body before execution. Operation values are provider operation IDs. This action is bearer-token only because the operation set includes routes outside dbt Cloud's officially documented OAuth scopes. |
| `DBT_CLOUD_CANCEL_RUN` | Cancel Run | Irreversibly request cancellation of a queued, starting, or running dbt Cloud run. This mutates the selected run's execution state and does not delete its run record. The response is the run record returned after the cancellation request. |
| `DBT_CLOUD_DOWNLOAD_RUN_ARTIFACT` | Download Run Artifact | Download one artifact file from a completed dbt Cloud run using a path returned by List Run Artifacts. |
| `DBT_CLOUD_FIND_SEMANTIC_SAVED_QUERIES` | Find Semantic Saved Queries | List or search saved Semantic Layer queries, or return one exact saved query by name. |
| `DBT_CLOUD_GET_JOB` | Get Job | Return one dbt Cloud job definition and optionally selected related execution context. |
| `DBT_CLOUD_GET_RUN` | Get Run | Return one dbt Cloud run with optional job, environment, step, retry, audit, or log context. |
| `DBT_CLOUD_GET_RUN_FAILURE_DETAILS` | Get Run Failure Details | Return dbt Cloud status and step logs for a failed run. This action only reads the run record and never starts or enqueues a retry. |
| `DBT_CLOUD_LIST_ENVIRONMENTS` | List Environments | Return one page of environments for a dbt Cloud project, with optional deployment and name filters. |
| `DBT_CLOUD_LIST_JOBS` | List Jobs | Return one page of dbt Cloud jobs, optionally filtered by project, environment, name, schedule, or state. |
| `DBT_CLOUD_LIST_PROJECTS` | List Projects | Return one page of dbt Cloud projects, optionally filtered by name, IDs, or deletion state. |
| `DBT_CLOUD_LIST_RUN_ARTIFACTS` | List Run Artifacts | Return artifact paths available for a completed dbt Cloud run. |
| `DBT_CLOUD_LIST_RUNS` | List Runs | Return one page of dbt Cloud runs, optionally filtered by job, project, environment, status, creation time, finish time, or deletion state. |
| `DBT_CLOUD_LIST_SEMANTIC_ATTRIBUTES` | List Semantic Attributes | Return one page of dimensions, entities, group-bys, or queryable time granularities available for selected metrics. |
| `DBT_CLOUD_LIST_SEMANTIC_METRICS` | List Semantic Metrics | Return one page of governed Semantic Layer metrics, optionally searched or grouped. |
| `DBT_CLOUD_QUERY_DISCOVERY_METADATA` | Query Discovery Metadata | List dbt metadata resources in an environment or job-run context, retrieve one node by case-sensitive unique ID, or inspect model health in an environment. |
| `DBT_CLOUD_QUERY_SEMANTIC_METRICS` | Query Semantic Metrics | Submit an ad-hoc dbt Semantic Layer query using metrics and/or group-bys, or execute a saved query; poll it to a documented terminal state and return one decoded JSON result page. Pass next_cursor to retrieve another page without creating a new query. |
| `DBT_CLOUD_RETRY_RUN` | Retry Run | Start a new retry from a failed dbt Cloud run and return the newly enqueued run record. |
| `DBT_CLOUD_TRIGGER_JOB_RUN` | Trigger Job Run | Start a new run for a dbt Cloud job, optionally overriding its revision, target, commands, docs generation, threads, or timeout. Each successful call enqueues a new run. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to dbt Cloud
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["dbt_cloud"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["dbt_cloud"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run dbt Cloud tools with your agent

Send a request, execute the dbt Cloud tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "List my dbt Cloud projects and their environments"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List my dbt Cloud projects and their environments" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to dbt Cloud and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["dbt_cloud"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["dbt_cloud"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a dbt Cloud request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to dbt Cloud tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("List my dbt Cloud projects and their environments")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List my dbt Cloud projects and their environments",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native dbt Cloud Integration

- Supports both dbt Cloud MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your dbt Cloud data

### 2. Managed Auth

- Supports bearer token and OAuth authentication for dbt Cloud
- Central place to manage, scope, and revoke dbt Cloud access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access dbt Cloud
- Scoped, least privilege access to dbt Cloud resources
- Full audit trail of agent actions to support review and compliance

## Use dbt Cloud with any AI Agent Framework

Choose a framework you want to connect dbt Cloud with:

- [ChatGPT](https://composio.dev/toolkits/dbt_cloud/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/dbt_cloud/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/dbt_cloud/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/dbt_cloud/framework/atomic-agent)

## Related Toolkits

- [Firecrawl](https://composio.dev/toolkits/firecrawl) - Firecrawl automates large-scale web crawling and data extraction. It helps organizations efficiently gather, index, and analyze content from online sources.
- [Tavily](https://composio.dev/toolkits/tavily) - Tavily offers powerful search and data retrieval from documents, databases, and the web. It helps teams locate and filter information instantly, saving hours on research.
- [Exa](https://composio.dev/toolkits/exa) - Exa is a data extraction and search platform for gathering and analyzing information from websites, APIs, or databases. It helps teams quickly surface insights and automate data-driven workflows.
- [Serpapi](https://composio.dev/toolkits/serpapi) - SerpApi is a real-time API for structured search engine results. It lets you automate SERP data collection, parsing, and analysis for SEO and research.
- [Peopledatalabs](https://composio.dev/toolkits/peopledatalabs) - Peopledatalabs delivers B2B data enrichment and identity resolution APIs. Supercharge your apps with accurate, up-to-date business and contact data.
- [Snowflake](https://composio.dev/toolkits/snowflake) - Snowflake is a cloud data warehouse built for elastic scaling, secure data sharing, and fast SQL analytics across major clouds.
- [Posthog](https://composio.dev/toolkits/posthog) - PostHog is an open-source analytics platform for tracking user interactions and product metrics. It helps teams refine features, analyze funnels, and reduce churn with actionable insights.
- [Ahrefs MCP](https://composio.dev/toolkits/ahrefs_mcp) - Ahrefs MCP is Ahrefs' hosted MCP server for SEO data and insights. Use it to access backlinks, organic metrics, keyword research, and competitor analysis.
- [Akta](https://composio.dev/toolkits/akta) - Akta is a company intelligence platform providing enrichment, news, and alternative business signals. It helps teams build targeted company lists and enrich data-driven workflows.
- [Amplitude](https://composio.dev/toolkits/amplitude) - Amplitude is a digital analytics platform for product and behavioral data insights. It helps teams analyze user journeys and make data-driven decisions quickly.
- [Amplitude MCP](https://composio.dev/toolkits/amplitude_mcp) - Amplitude MCP is Amplitude's product analytics service for tracking user behavior and product metrics. Use it to centralize product data and manage charts, dashboards, cohorts, experiments, and taxonomy.
- [Audioscrape MCP](https://composio.dev/toolkits/audioscrape_mcp) - Audioscrape MCP lets agents search and retrieve speaker-attributed audio, transcripts, entities, and citations from public and workspace content. Use it to surface searchable, speaker-labeled audio and rich metadata for research, meetings, and content discovery.
- [Baremetrics](https://composio.dev/toolkits/baremetrics) - Baremetrics is a subscription analytics platform for recurring-revenue businesses. It helps teams track MRR, churn, customers, and revenue trends in one place.
- [Bing Webmaster Tools](https://composio.dev/toolkits/bing_webmaster_tools) - Bing Webmaster Tools is Microsoft's search console for site performance, crawling, indexing, URL submission, and verified site management. It helps site owners understand Bing Search visibility and fix issues that affect organic traffic.
- [Bread & Butter](https://composio.dev/toolkits/bread_butter) - Bread & Butter is a lead-intelligence and identity platform for website visitor tracking, user profiles, attribution, authentication, and conversion workflows. It helps teams understand who is visiting, where leads come from, and how users convert.
- [Bright Data MCP](https://composio.dev/toolkits/brightdata_mcp) - Bright Data MCP is an AI-powered web scraping and data collection platform. Instantly access public web data in real time with advanced scraping tools.
- [Browseai](https://composio.dev/toolkits/browseai) - Browseai is a web automation and data extraction platform that turns any website into an API. It's perfect for monitoring websites and retrieving structured data without manual scraping.
- [BSC Designer](https://composio.dev/toolkits/bsc_designer) - BSC Designer is a strategy execution platform for balanced scorecards, KPIs, dashboards, and strategy maps. It helps teams turn goals into measurable performance plans they can track over time.
- [Chameleon](https://composio.dev/toolkits/chameleon) - Chameleon is a product adoption platform for building in-app experiences, managing customer data, and analyzing user engagement. It helps teams improve onboarding, feature discovery, and product adoption with targeted user experiences.
- [Chartly](https://composio.dev/toolkits/chartly) - Chartly renders Chart.js configurations as PNG or SVG images and creates permanent chart URLs for sharing and embedding. Share and embed charts easily with stable image URLs and downloadable vector graphics.

## Frequently Asked Questions

### Do I need my own developer credentials to use dbt Cloud with Composio?

Yes, dbt Cloud requires you to configure your own bearer token credentials. Once set up, Composio handles secure token storage and lifecycle management for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
