Set up remote MCP
The remote MCP server uses an HTTP connection and makes calls to dbt-mcp hosted on the cloud-based dbt platform. This setup requires no local installation and is ideal for data consumption use cases.
When to use remote MCP
The remote MCP server is the ideal choice when:
- You don't want to or are restricted from installing additional software (
uvx,dbt-mcp) on your system. - Your primary use case is consumption-based: querying metrics, exploring metadata, viewing lineage.
- You need access to Semantic Layer and Discovery APIs without maintaining a local dbt project.
- You don't need to execute CLI commands. Remote MCP does not support dbt CLI commands (
dbt run,dbt build,dbt test, and more). If you need to execute dbt CLI commands, use the local MCP server instead.
Remote dbt MCP tools are dependent on available dbt Copilot credits. Note that the SQL and remote Fusion tools are in this category, even when they are used and proxied through the local dbt MCP server. Most MCP tools don't consume dbt Copilot credits. However, text_to_sql usage does count toward your dbt Copilot consumption.
If you reach your dbt Copilot usage limit, all tools will be blocked until your Copilot credits reset. If you need help, please reach out to your account manager.
Setup instructions
- Ensure that you have AI features turned on.
- Obtain the following information from dbt platform:
- dbt Cloud host: Use this to form the full URL. For example, replace
<host>here:https://<host>/api/ai/v1/mcp/. It may look like:https://cloud.getdbt.com/api/ai/v1/mcp/. If you have a multi-cell account, the host URL will be in the<ACCOUNT_PREFIX>.us1.dbt.comformat. For more information, refer to Access, Regions, & IP addresses. - Production environment ID: You can find this on the Orchestration page in the dbt platform. Use this to set an
x-dbt-prod-environment-idheader. - Token: Generate either a personal access token or a service token. In terms of permissions, to fully utilize remote MCP, it must be configured with Semantic Layer and Developer permissions. Note: to use functionality that requires the
x-dbt-user-idheader, a personal access token is required.
- For the remote MCP, you will pass on headers through the JSON blob to configure required fields:
Configuration for APIs and SQL tools
| Loading table... |
Additional configuration for SQL tools
| Loading table... |
Additional configuration for Fusion tools
Fusion tools, by default, defer to the environment provided via x-dbt-prod-environment-id for model and table metadata.
| Loading table... |
Configuration to disable tools
| Loading table... |
- After establishing which headers you need, you can follow the examples to create your own agent.
The MCP protocol is programming language and framework agnostic, so use whatever helps you build agents. Alternatively, you can connect the remote dbt MCP server to MCP clients that support header-based authentication. You can use this example Cursor configuration, replacing <host>, <token>, <prod-id>, <user-id>, and <dev-id> with your information:
{
"mcpServers": {
"dbt": {
"url": "https://<host>/api/ai/v1/mcp/",
"headers": {
"Authorization": "token <token>",
"x-dbt-prod-environment-id": "<prod-id>",
"x-dbt-user-id": "<user-id>",
"x-dbt-dev-environment-id": "<dev-id>"
}
}
}
}
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.