dbt’s remote MCP makes metrics easier to query, but the warehouse may see a shared identity
An admin can give read-only users a shared warehouse credential for metric queries. Personal credentials still take precedence, and the fallback does not create a per-user warehouse audit trail.
Read-only dbt users can query governed metrics through a remote MCP client without setting up their own warehouse credentials. The fallback is an analytics credential that an admin configures on a warehouse connection and assigns to the project. The trade-off: dbt says users querying through that credential can see what it can see, without a per-user trail at the warehouse. Remote MCP setup · Analytics credential setup
Connecting to dbt and querying the warehouse are separate steps
The shared credential is not an anonymous way into dbt. The remote MCP server checks the permissions required by the tool and its target. Using Semantic Layer tools requires read access to the selected project's Semantic Layer configuration. For a query such as query_metrics, dbt first looks for personal warehouse credentials. If the user has none, it tries the project's shared analytics credential. If neither exists, the query fails and asks the user to set up credentials or contact an admin. Users with the Analyst read permission set can configure their own warehouse credentials. Remote MCP setup
Nor should teams treat metric access as permission to run arbitrary SQL. dbt documents separate requirements for execute_sql, including a development environment and OAuth or a personal access token. Queries containing ref() also require develop access. Remote MCP permissions
What to test before rollout
The setup guide lists Snowflake, BigQuery, Redshift and Databricks as supported warehouses for the analytics credential. An admin configures one credential per connection. A connection can be reused across projects, so review the warehouse permissions on that credential before assigning it to a second project; don't assume a project boundary will narrow the warehouse role. Analytics credential setup
A practical pilot is a project where the intended readers should all see the same approved metrics. Test with one user who has personal credentials and one who relies on the fallback: check which warehouse identity appears and whether each gets only the results the team intended. Then test a project with no fallback and a user with no personal credentials; the expected outcome is a credential error, not an empty metric result. If the warehouse must enforce different access rules for individual readers or retain a per-user audit trail, dbt recommends personal credentials instead. The shared option simplifies onboarding, but it does not replace that identity boundary. Analytics credential setup
sources
- dbt Labs: Set up the remote dbt MCP serverdocs.getdbt.com
- dbt Labs: Remote MCP permissionsdocs.getdbt.com
- dbt Labs: Set up analytics credentials for read-only usersdocs.getdbt.com
comments · 0