Cube Core vs MetricFlow
By Ari Bajo - data engineer turned writer.
Updated on December 2, 2026
Summary
Cube Core and MetricFlow are both free, Apache 2.0 metrics engines: Cube Core serves metrics over SQL, REST and GraphQL with pre-aggregations, MetricFlow compiles metrics in a dbt project and is queried from the command line. MetricFlow's APIs need the paid dbt platform; Cube Core's are included.
Cube Core and MetricFlow differ on 12 of the 42 features in my semantic layer feature matrix and share 9.
Cube Core vs MetricFlow at a glance
| Criterion | Cube Core | MetricFlow |
|---|---|---|
| What it is | Cube Core is an open-source semantic layer engine behind Cube, with metrics, joins, and access rules defined as code, served through APIs to applications, BI tools, and AI agents, under an Apache 2.0 backend and MIT clients. | MetricFlow is a metrics engine behind the dbt Semantic Layer that compiles ratio, cumulative, and derived metrics defined in a dbt project into SQL. Apache 2.0; the APIs and BI integrations are part of the paid dbt platform. |
| Best for | Engineering teams that want to self-host a metrics API and don't need the workbooks, analytics chat, or single sign-on of paid Cube. | Dbt projects that want tested metric definitions in Git and can query them from the command line, without BI tools connected. |
| Category | Semantic layer | Semantic layer |
| Core strength | Open-source metrics engine with pre-aggregations and APIs | Open-source metrics engine inside dbt |
| Pricing | Free, open source | Free, open source |
| Free option | Open source | Open source |
| Deployment | Self-hosted with Docker | Self-hosted with the dbt project |
| Features | 18 of 42 tracked | 12 of 42 tracked |
| Notable caveat | No AI agent, MCP server, DAX API or monitoring; those are in paid Cube | APIs and BI integrations need the paid dbt platform |
Key differences between Cube Core and MetricFlow
The 12 features where only one of them is confirmed, by feature group. Each line says how the tool does it and links the source.
Semantic Models
Hierarchies
Cube Core: Cubes support a hierarchies parameter that groups dimensions into ordered drill levels (e.g. state to city), configured once and reusable across views (docs).
MetricFlow: not supported.
Portability
Apache Ossie Support
Cube Core: not confirmed.
MetricFlow: dbt v1.12 parses Ossie JSON documents (docs).
Workflows
SQL API
Cube Core: A Postgres-compatible SQL API lets any SQL client query cubes and views by name as if they were tables (docs).
MetricFlow: not supported.
REST / GraphQL API
Cube Core: Cube documents both a REST (JSON) API and a GraphQL API for querying metrics and dimensions programmatically (docs).
MetricFlow: not supported.
BI Tool Integrations
Cube Core: BI tools connect through the Postgres-compatible SQL API (docs).
MetricFlow: not supported.
Embedded Analytics
Cube Core: JavaScript, React, Vue and Angular SDKs build charts and query components into an application; dashboards and chat embedding are in paid Cube (docs).
MetricFlow: not supported.
AI & Agents
AI-Assisted Modeling
Cube Core: not confirmed.
MetricFlow: dbt's agent skills teach coding agents to create semantic models and metrics (github).
Query Optimizations
Pre-Aggregations
Cube Core: Pre-aggregations materialize and automatically refresh rollups of measures at defined grains, and Cube routes incoming queries to the smallest matching rollup for sub-second performance (docs).
MetricFlow: not supported.
Query Caching
Cube Core: An in-memory cache of executed query results is active by default as a distinct first-level cache, separate from the scheduled, proactively-maintained pre-aggregation layer (docs).
MetricFlow: not supported.
DataOps
Data Governance
Row & Column-Level Security
Cube Core: Access policies apply in Cube Core too, with the security context coming from its API authentication (docs).
MetricFlow: not supported.
Cube Core or MetricFlow: which to choose
Choose Cube Core if
Applications and BI tools must query the metrics without a paid platform.
Choose MetricFlow if
Your models are in dbt and you mainly want metric definitions reviewed and tested in CI.
What both Cube Core and MetricFlow do
9 features supported by both
- Semantic Models: Metrics & Dimensions, Joins & Relationships, Calculated & Derived Metrics, Multi-Fact Models, Definitions as Code
- Portability: Model Import
- Workflows: Multi-Warehouse Support, dbt Integration
- Deployment: Self-Hosted Deployment
Cube Core vs MetricFlow integrations
Cube Core lists 31 integrations and MetricFlow 7; 6 are on both lists. See the integrations matrix for all tools.
- Both (6): Amazon Redshift, Google BigQuery, Snowflake, PostgreSQL, Databricks, dbt
- Only Cube Core (25): ClickHouse, DuckDB, SingleStore, OpenText Analytics Database (Vertica), Firebolt, Apache Druid, Apache Pinot, Microsoft SQL Server, MongoDB, MySQL, Oracle DB, QuestDB, SQLite, Amazon Athena, Presto, Trino, ksqlDB, Materialize, RisingWave, Apache Airflow, Dagster, Prefect, Auth0, Amazon Cognito, LookML
- Only MetricFlow (1): Apache Ossie
Cube Core vs MetricFlow FAQ
Is Cube Core or MetricFlow cheaper?
Cube Core: Free, open source (open source). MetricFlow: Free, open source (open source). Prices come from each vendor's pricing page.
Which has more features, Cube Core or MetricFlow?
Cube Core supports 18 and MetricFlow 12 of the 42 features in my semantic layer feature matrix. They share 9 and differ on 12; only Cube Core has hierarchies, SQL API and REST / GraphQL API; only MetricFlow has Apache Ossie support, AI-Assisted modeling and model testing & validation.
Is Cube Core open source?
Yes, both Cube Core and MetricFlow are open source.
Can Cube Core and MetricFlow be self-hosted?
Cube Core: Self-hosted with Docker. MetricFlow: Self-hosted with the dbt project.
Data from my semantic layer feature matrix, checked against each vendor's docs, and pricing pages. For more options, see the best semantic layer tools.
Evaluating data tools in 2026?
I curate the most comprehensive lists of data tools, up-to-date comparison tables, and actionable market guides for data teams. More useful than a Gartner report. More reliable than asking AI. Next up: Data FinOps.