# dbt Semantic Layer

> Metrics layer of the dbt platform, powered by the open-source MetricFlow engine, where metrics are defined next to dbt models and served to BI tools, spreadsheets, and AI agents through JDBC, GraphQL, and MCP.

Source: https://toolsfordata.com/tools/dbt-semantic-layer/ · Updated 2026-12-02

[Website](https://www.getdbt.com/product/semantic-layer) · [Docs](https://docs.getdbt.com/docs/use-dbt-semantic-layer/dbt-sl) · [Pricing](https://www.getdbt.com/pricing)

Best for: analytics engineering teams whose models already live in dbt and who are on a paid dbt plan, which the APIs and integrations require.

## Overview

- Core Strength: Metrics next to dbt models, served through APIs
- Best For: dbt teams on a paid plan
- Deployment Model: SaaS (dbt platform)
- Pricing: Starter $100/user/month with 5,000 queried metrics; Enterprise on request
- Notable Caveat: Caching needs Enterprise; no Microsoft Fabric support
- Modeling: Partial — derived metrics, multi-fact, as code
- Portability: Partial — import, Apache Ossie
- Query Interfaces: Partial — SQL, REST/GraphQL, MCP
- BI & Spreadsheets: Partial — BI tools, spreadsheets
- AI Agents: Partial — chat, AI modeling
- Performance: Partial — pre-aggregations
- Governance: Partial — lineage, validation
- Security & Access: Full — SSO, SCIM, RBAC, audit log…

## What it's used for

The dbt Semantic Layer is used to define metrics in the same dbt project as the models and serve them to BI tools, spreadsheets and AI agents through JDBC, GraphQL and MCP.

## Semantic models

Semantic models and metrics are YAML in the dbt project, powered by MetricFlow. Entities act as join keys, and ratio, derived, cumulative and conversion metrics build on other metrics across semantic models. Dimensions have no drill hierarchies.

## Portability

dbt v1.12 reads Apache Ossie documents (versions 0.1.0 and 0.1.1) as semantic models and metrics. Writing definitions out in another tool's format is not documented.

## Workflows

A JDBC API over Arrow Flight SQL and a GraphQL API serve Tableau, Hex, Mode, Omni and others; Power BI and Sigma are in preview. Google Sheets and Excel have integrations. There is no MDX or DAX endpoint.

## AI

The dbt MCP server lists, describes and queries metrics, hosted or self-hosted. dbt Wizard turns questions into metric queries and writes semantic models.

## Query optimizations

Declarative caching pre-computes the saved queries you choose, on Enterprise plans. Otherwise, caching is left to the warehouse.

## DataOps

dbt sl validate checks parsing, semantics and the physical tables, locally or in CI. Jobs run on the dbt scheduler or from Airflow.

## Governance

Access follows the warehouse credentials tied to each service token; there are no row rules of its own. dbt Catalog shows the lineage of models and metrics.

## Security

dbt accounts support SAML, Okta, Entra ID and Google Workspace sign-in, SCIM and an audit log on Enterprise. dbt lists SOC 2, ISO 27001, ISO 27701 and ISO 42001.

## Deployment

The APIs run only in the dbt platform. MetricFlow, the engine, runs locally from the command line.

## Pricing

The Semantic Layer APIs need a paid dbt plan: Starter costs $100 per user per month and includes 5,000 queried metrics a month. Enterprise is priced on request.

## Review

Strengths:
- Metrics live in the same project, pull requests and CI as the dbt models.
- Reads Apache Ossie documents since dbt v1.12.
- Certified for SOC 2 and three ISO standards.

Caveats:
- Needs a paid dbt plan; caching needs Enterprise.
- No hierarchies, no row-level rules, no Microsoft Fabric.
- No MDX or DAX endpoint for Excel and Power BI.

Recommendation: Use the dbt Semantic Layer if your models already live in dbt and you're on a paid plan. Choose Cube or AtScale when Power BI and Excel users need live connections, or MetricFlow alone to test definitions without the APIs.

## Pricing

- Model: per user, usage-based
- Free self-hosted edition: MetricFlow (Apache 2.0)
- Entry team price: $100/user/month (Starter, 5,000 queried metrics/month)
- Entry enterprise price: Custom
- Source: https://www.getdbt.com/pricing (checked 2026-12-02)

## Features

### Semantic Models

- Metrics & Dimensions: Yes — Metrics and semantic models are defined in YAML on top of dbt models, powered by MetricFlow. ([source](https://docs.getdbt.com/docs/build/build-metrics-intro))
- Joins & Relationships: Yes — Entities act as join keys, and MetricFlow builds the joins at query time. ([source](https://docs.getdbt.com/docs/build/join-logic))
- Calculated & Derived Metrics: Yes — Ratio, derived, cumulative and conversion metrics are built from other metrics. ([source](https://docs.getdbt.com/docs/build/derived))
- Hierarchies: No — Dimensions have no drill hierarchy; nothing about hierarchies appears in the metrics docs checked. ([source](https://docs.getdbt.com/docs/build/dimensions))
- Multi-Fact Models: Yes — Metrics from different semantic models can be combined, with dimensions reached through shared entities. ([source](https://docs.getdbt.com/docs/build/derived))
- Definitions as Code: Yes — Definitions are YAML in the dbt project's Git repository. ([source](https://docs.getdbt.com/docs/build/about-metricflow))

### Portability

- Model Import: Yes — dbt v1.12 reads Apache Ossie documents as semantic models and metrics. ([source](https://docs.getdbt.com/docs/build/ossie-semantic-models))
- Model Export: No — Exports write query results to tables; writing definitions in another tool's format is not in the documentation. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/exports))
- Apache Ossie Support: Yes — dbt v1.12 parses Ossie JSON documents, version 0.1.0 or 0.1.1. ([source](https://docs.getdbt.com/docs/build/ossie-semantic-models))

### Workflows

- SQL API: Yes — A JDBC API over Arrow Flight SQL, on Starter and Enterprise plans. ([source](https://docs.getdbt.com/docs/dbt-apis/sl-jdbc))
- REST / GraphQL API: Yes — A GraphQL API for metrics and dimensions, on Starter and Enterprise plans. ([source](https://docs.getdbt.com/docs/dbt-apis/sl-graphql))
- MDX / DAX API: No — Metrics are served through JDBC, ADBC, GraphQL and a Python SDK. ([source](https://docs.getdbt.com/docs/platform-integrations/avail-sl-integrations))
- BI Tool Integrations: Yes — Tableau, Hex, Mode, Omni and others; Power BI and Sigma are in preview. ([source](https://docs.getdbt.com/docs/platform-integrations/avail-sl-integrations))
- Spreadsheet Integration: Yes — Google Sheets and Microsoft Excel integrations. ([source](https://docs.getdbt.com/docs/platform-integrations/semantic-layer/excel))
- Embedded Analytics: No — APIs and an SDK to build your own; no ready-made components are described. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/consume-metrics))
- Multi-Warehouse Support: Yes — Snowflake, BigQuery, Databricks, Redshift, Postgres and Trino; Microsoft Fabric is not supported. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-faqs))
- dbt Integration: Yes — Part of the dbt platform. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/dbt-sl))
- Data Catalog Integration: Unknown — The integrations page mentions data catalogs, but names none in the list checked. ([source](https://docs.getdbt.com/docs/platform-integrations/avail-sl-integrations))

### AI & Agents

- MCP Server: Yes — The dbt MCP server lists, describes and queries metrics, hosted or self-hosted. ([source](https://docs.getdbt.com/docs/dbt-ai/mcp-available-tools))
- Natural Language Query: Yes — dbt Wizard turns questions about metrics into SQL with MetricFlow. ([source](https://docs.getdbt.com/docs/build/about-metricflow))
- AI-Assisted Modeling: Yes — dbt Wizard plans, writes and validates semantic models and metrics. ([source](https://docs.getdbt.com/best-practices/how-to-use-wizard/wizard-7-semantic-layer))
- AI Metadata & Synonyms: No — Metrics take descriptions and meta; synonyms or fields written for agents are not in the documentation. ([source](https://docs.getdbt.com/docs/build/metrics-overview))
- Verified Queries: No — Saved queries are for metric consumers, not a verified set for AI answers. ([source](https://docs.getdbt.com/docs/build/saved-queries))
- AI Memory: No — Not in the full documentation index. ([source](https://docs.getdbt.com/docs/dbt-ai/about-mcp))
- Agent Evaluation: No — Not in the full documentation index. ([source](https://docs.getdbt.com/docs/dbt-ai/about-mcp))

### Query Optimizations

- Pre-Aggregations: Yes — Declarative caching pre-computes saved queries, on Enterprise plans; you choose which queries. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-cache))
- Query Caching: No — Result caching relies on the data platform's own cache. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-cache))

### DataOps

- Model Testing & Validation: Yes — dbt sl validate checks parsing, semantics and the physical tables, also in CI. ([source](https://docs.getdbt.com/docs/build/validation))
- Orchestration Integration: Yes — Jobs run on the dbt scheduler or from Airflow and other orchestrators. ([source](https://docs.getdbt.com/docs/deploy/deployment-tools))
- Observability & Monitoring: No — Metric query load or latency is not reported in the documentation. ([source](https://docs.getdbt.com/docs/dbt-apis/sl-api-overview))

### Data Governance

- Row & Column-Level Security: No — Access follows the warehouse credentials linked to each token; the semantic layer has no row rules of its own. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/setup-sl))
- Data Lineage: Yes — dbt Catalog shows the lineage of models and metrics. ([source](https://docs.getdbt.com/docs/explore/explore-projects))

### Security

- SSO: Yes — SAML, Okta, Entra ID and Google Workspace for dbt accounts; not for semantic layer production credentials. ([source](https://docs.getdbt.com/docs/platform/manage-access/sso-overview))
- RBAC: Yes — Role-based access controls for projects and environments. ([source](https://docs.getdbt.com/docs/platform/manage-access/about-user-access))
- Audit Log: Yes — Audit log on Enterprise plans. ([source](https://docs.getdbt.com/docs/platform/manage-access/audit-log))
- Compliance Certifications: Yes — SOC 2, ISO 27001, ISO 27701 and ISO 42001 on the security page. ([source](https://www.getdbt.com/security))
- SCIM Provisioning: Yes — SCIM with Okta or Entra ID on Enterprise plans. ([source](https://docs.getdbt.com/docs/platform/manage-access/scim))
- Private Networking: Yes — Private connections on AWS and Azure. ([source](https://docs.getdbt.com/docs/platform/secure/private-connectivity/private-connectivity))

### Deployment

- Multi-Environment Support: Yes — Separate development and deployment environments; the semantic layer queries deployment environments. ([source](https://docs.getdbt.com/docs/deploy/deploy-environments))
- SaaS Deployment: Yes — The service layer and APIs run in the dbt platform. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-architecture))
- Self-Hosted Deployment: No — MetricFlow runs locally from the command line; the APIs and service layer are proprietary and hosted. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-architecture))
- Cloud-Native App: No — Hosted in the dbt platform, not inside a data platform. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-architecture))
- Open Source: No — MetricFlow is Apache 2.0; the service layer and APIs are proprietary. ([source](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-architecture))

## Integrations

31 integrations, each sourced from the vendor docs.

- AI Agents: Dot, Push.ai, Claude, Cursor, Databricks Agents, Gemini Enterprise, Snowflake Cortex, VS Code
- Authentication: Okta, Microsoft Entra ID, Google Workspace, SAML
- BI: Tableau, Omni, Hex, Klipfolio PowerMetrics, Mode, Steep, Power BI, Sigma
- Data Orchestration: Apache Airflow
- Data Platform: Databricks
- Data Transformation: dbt
- Data Warehouse: Snowflake, Google BigQuery, Amazon Redshift
- Databases: PostgreSQL
- Query Engine: Trino
- Semantic Layer: Apache Ossie
- Spreadsheets: Google Sheets, Microsoft Excel

## Alternatives

- [MetricFlow](https://toolsfordata.com/tools/metricflow/): Consider MetricFlow alone to keep the same metric definitions in dbt for free, queried from the command line without BI connections.
- [Cube](https://toolsfordata.com/tools/cube/): Consider Cube if you need pre-aggregations on every plan, a DAX API for Power BI, embedded analytics, or row-level rules in the layer.
- [AtScale](https://toolsfordata.com/tools/atscale/): Consider AtScale if Excel and Power BI users need live connections; it converts dbt semantic models to SML.
- [Honeydew](https://toolsfordata.com/tools/honeydew/): Consider Honeydew on Snowflake: its dbt macro pulls compiled metric SQL into dbt runs, with BI and agent access on top.
- [Snowflake Semantic Views](https://toolsfordata.com/tools/snowflake-semantic-views/): Consider Snowflake Semantic Views if the warehouse is Snowflake and metrics should be queried there with SQL or Cortex Agents.
- [Databricks Metric Views](https://toolsfordata.com/tools/databricks-metric-views/): Consider Databricks Metric Views if your dbt project runs on Databricks and Genie or dashboards are the main consumers.
