[hypequery](https://hypequery.com/) › 5 Best Cube.js Alternatives for Semantic Layers (2026)
Index for agents: https://hypequery.com/llms.txt
Canonical page: https://hypequery.com/cube-js-alternative

> Compare Cube with hypequery, dbt Semantic Layer, AtScale, GoodData and Boring Semantic Layer by databases, APIs, hosting and multi-tenancy.

[Open sourceApache 2.0](https://github.com/hypequery/hypequery)

Cube alternatives

# 5 Cube.js alternatives for semantic layers and embedded analytics

Last updated November 12, 2026

Cube (formerly Cube.js) is still a strong choice when one semantic layer must serve many databases and clients. Which alternative fits depends on what you want to simplify: dbt Semantic Layer for teams already on dbt, AtScale for Power BI and Excel, GoodData for managed dashboards, Boring Semantic Layer for a small Python library, or hypequery for typed ClickHouse metrics inside the application repo.

[Compare all six ](#comparison)[hypequery vs Cube](https://hypequery.com/compare/hypequery-vs-cube)

Credit where due

## What Cube does well

Cube is the most widely adopted open-source semantic layer: about 21,200 stars on GitHub, and Cube Core is Apache 2.0. Models are YAML or JavaScript files that define measures, dimensions, joins and access rules once, and Cube serves them over REST, GraphQL and a SQL API that speaks the Postgres wire protocol, so BI tools that connect to Postgres can connect to Cube.

Its data sources page lists 29 connectors (about 26 distinct engines, ClickHouse included). Pre-aggregations, built and refreshed by Cube and stored in Cube Store, make repeated dashboard queries cheap. Cube Cloud adds a hosted MCP server with 30 tools, analytics chat and agents, and all of that is on the free plan.

Why teams look elsewhere

## Why teams consider a Cube alternative

Cube solves a broad problem, so it also brings more moving parts than a database-specific library. The trade-offs below come from Cube’s own docs, pricing page and public issue tracker; several of the linked ClickHouse issues have since been fixed.

### Multi-tenancy has many moving parts

Cube’s [multitenancy docs](https://github.com/cube-js/cube/blob/master/docs-mintlify/embedding/multitenancy.mdx) list up to nine options, from `contextToAppId` to `scheduledRefreshContexts`. The docs warn that `contextToAppId` alone isolates only model compilation, and that leaving `scheduledRefreshContexts` unset breaks background refresh. A [2024 issue](https://github.com/cube-js/cube/issues/8726) reports per-tenant pre-aggregations that stop refreshing when tenants drop out of that list.

### More services to run

Self-hosted Cube means API instances, a refresh worker, and Cube Store with a router and workers that persist to object storage. An [open issue from 2025](https://github.com/cube-js/cube/issues/9892) asks how to split API and refresh-worker instances after hitting “No pre-aggregation partitions were built yet”. On Cube Cloud, those services are billed hourly on top of developer seats.

### ClickHouse is one driver among many

Cube’s [ClickHouse page](https://github.com/cube-js/cube/blob/master/docs-mintlify/admin/connect-to-data/data-sources/clickhouse.mdx) notes that pre-aggregations need indexes and export buckets must be S3. Recent issues covered booleans stored as integers in pre-aggregations ([#9494](https://github.com/cube-js/cube/issues/9494)), replicated databases ([#9074](https://github.com/cube-js/cube/issues/9074), open about 21 months) and lost millisecond precision ([#10326](https://github.com/cube-js/cube/issues/10326)). All three are now closed.

### Embedding and SSO sit on higher plans

On [Cube’s pricing page](https://cube.dev/pricing), embedded dashboards and embedded chat start on Premium ($80 per developer per month), SAML SSO is Enterprise-only, and the DAX and MDX APIs need Enterprise plus the Performance M deployment tier.

The alternatives

## Five Cube alternatives, and how each differs

### hypequery

An open-source (Apache 2.0) semantic layer for ClickHouse, written as TypeScript or Python datasets that live in your application repo. It serves them in-process, as HTTP endpoints with OpenAPI, as React hooks, and to agents through an MCP server. hypequery is our product.

**How it differs from Cube:** There is no separate service: the model is a module your backend imports. Metric names are type-checked, and the tenant key on a dataset makes un-scoped queries fail. It supports ClickHouse only, has no SQL API for BI tools, and has no pre-aggregation store of its own; it relies on ClickHouse materialized views and projections.

**Best for:** Product teams on ClickHouse building customer-facing dashboards, APIs and agent tools.

### dbt Semantic Layer (MetricFlow)

Metrics and semantic models defined in YAML next to your dbt models, compiled to SQL by MetricFlow and served through GraphQL, JDBC and a Python SDK.

**How it differs from Cube:** It lives with your transformations rather than in a serving tier. The APIs need a paid dbt plan (Starter is $100 per user per month with 5,000 queried metrics), it supports six warehouses and not ClickHouse, and caching is an Enterprise feature.

**Best for:** Data teams already on dbt Cloud who want one set of metrics across BI tools.

### AtScale

A commercial semantic layer that computes metrics inside your data platform. Models are written in SML, an Apache 2.0 YAML language stored in Git.

**How it differs from Cube:** AtScale speaks Power BI’s and Excel’s languages natively (DAX and MDX over XMLA) as well as a PostgreSQL interface. It lists no ClickHouse support, and pricing is by deployed semantic objects with no published figures.

**Best for:** Enterprises standardising Power BI and Excel on Snowflake, Databricks or BigQuery.

### GoodData

A hosted analytics platform with a logical data model per workspace, metrics in its own MAQL language, and embedding through iframes, Web Components or a React SDK.

**How it differs from Cube:** GoodData includes the dashboards and the embedding, not only the semantic layer. Tenants map to hierarchical workspaces with data filters. It supports ClickHouse (tested against 25.1.4, without boolean columns). Prices are not published.

**Best for:** Teams who want a managed platform with dashboards and multi-tenancy built in.

### Boring Semantic Layer

A small MIT-licensed Python library built on Ibis, with a built-in MCP server. Version 0.3.19 was released on November 11, 2026.

**How it differs from Cube:** It is a library, not a service, and it is young (about 490 GitHub stars, pre-1.0). It runs on any engine Ibis supports; its docs name DuckDB, Snowflake, BigQuery and PostgreSQL but not ClickHouse. There is no tenant model in its docs.

**Best for:** Python teams who want a lightweight semantic layer for notebooks and agents.

Side by side

## Cube alternatives compared

Checked against each vendor’s own docs, pricing page or repository on November 12, 2026.

| Tool                            | Model definition                                                      | Lives in app repo?                                  | Databases                                                                      | Multi-tenancy                                                                 | APIs                                                          | MCP and agents                                           | Hosting                                                  | Licence                                        |
| ------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------------- |
| Cube                            | YAML or JavaScript files in a model/ folder, read by the Cube service | Usually a separate repo or service directory        | About 26 sources, including ClickHouse                                         | Security context from a JWT; queryRewrite and up to nine multitenancy options | REST, GraphQL, SQL (Postgres wire); DAX and MDX on Enterprise | Hosted MCP server with 30 tools, on all Cube Cloud plans | Self-host Cube Core, or Cube Cloud                       | Apache 2.0 backend, MIT client                 |
| hypequery                       | TypeScript or Python modules imported by your app                     | Yes                                                 | ClickHouse only                                                                | Tenant key on each dataset; queries without a tenant fail                     | In-process calls, HTTP with OpenAPI, React hooks              | @hypequery/mcp exposes datasets and metrics as tools     | A library inside your backend; hosted cloud not live yet | Apache 2.0                                     |
| dbt Semantic Layer (MetricFlow) | YAML next to dbt models                                               | No: in the dbt project                              | Snowflake, BigQuery, Databricks, Redshift, Postgres, Trino (no ClickHouse)     | Warehouse credentials; multiple credentials on Enterprise                     | GraphQL, JDBC, Python SDK (paid dbt plans)                    | dbt MCP server (Apache 2.0)                              | dbt platform (hosted)                                    | MetricFlow Apache 2.0; hosted layer commercial |
| AtScale                         | SML: YAML files in Git                                                | No: in a model repo                                 | Snowflake, Databricks, BigQuery, Redshift, PostgreSQL and more (no ClickHouse) | Not covered in sources checked                                                | XMLA with DAX and MDX; PostgreSQL interface                   | Remote MCP server, read-only tools                       | AtScale cloud or self-hosted                             | SML is Apache 2.0; platform commercial         |
| GoodData                        | Logical data model per workspace; metrics in MAQL                     | Optional: YAML via a beta VS Code extension and CLI | 23 sources, including ClickHouse                                               | Hierarchical workspaces with workspace data filters                           | iframe, Web Components, React SDK; Python SDK                 | MCP server (listed on the Enterprise plan)               | GoodData Cloud                                           | Commercial                                     |
| Boring Semantic Layer           | Python models on Ibis                                                 | Yes, if your app is Python                          | Engines Ibis supports (DuckDB, Snowflake, BigQuery, PostgreSQL and more)       | Not covered in its docs                                                       | Python API                                                    | Built-in MCP server                                      | A library you run                                        | MIT                                            |

Verified on November 12, 2026. hypequery is our product.

Git-native

## Where the model lives changes how drift is caught

Cube models, dbt YAML and AtScale SML are all files you can keep in Git, so “in version control” is not the difference. The difference is what checks them. A Cube model is configuration that the Cube service reads at runtime; the app that calls Cube’s API refers to measures by string, and a renamed measure surfaces as a failed request.

A hypequery dataset is a module the app imports. Rename `revenue` and every caller that still asks for the old name fails the type check, in the same pull request that made the change.

drift.ts

```
// analytics/datasets.ts
export const Orders = dataset('orders', {
  source: 'orders',
  tenantKey: 'account_id',
  dimensions: { country: dimension.string() },
  measures: { revenue: measure.sum('amount') },
});

// app/routes/billing.ts
await analytics.execute(
  Orders,
  { dimensions: ['country'], measures: ['revenu'] },
  { runtime: { tenant: session.accountId } },
);
// error TS2769: No overload matches this call.
// The typo fails the type check in CI, before review.
```

Definition

## Headless BI, in one paragraph

Headless BI separates the governed model from any one interface. In [Cube’s definition](https://cube.dev/articles/what-is-headless-bi), “metrics, dimensions, joins, and access rules live in a shared layer, while dashboards, embedded analytics, APIs, and AI agents query that same model.” Cube, hypequery and the dbt Semantic Layer are all headless in that sense; GoodData pairs its model with its own dashboards. The [embedded analytics platforms comparison](https://hypequery.com/compare/embedded-analytics-platforms) shows where headless layers sit next to embedded BI tools.

Keep Cube when

## When to stay on Cube

- Your metrics span several databases, not only ClickHouse.
- Tableau, Power BI or Metabase must read the same metrics as your app, through Cube’s Postgres-compatible SQL API.
- Expensive queries hit by many users depend on pre-aggregations that Cube builds and refreshes for you.
- A data team owns metric definitions separately from the product engineers who use them.
- You want hosted analytics chat and agents without building them, which Cube Cloud includes from its free plan.

Questions

## Cube alternatives FAQ

### What are the main alternatives to Cube?

The main Cube alternatives are the dbt Semantic Layer (MetricFlow) for teams already modelling in dbt, AtScale for Power BI and Excel users, GoodData for a hosted platform with embedding, Boring Semantic Layer for a lightweight Python library, and hypequery for ClickHouse teams who want typed metrics inside the application repo.

### Is there an open-source alternative to Cube?

Cube Core itself is open source (Apache 2.0 backend, MIT client). Open-source alternatives include hypequery (Apache 2.0, ClickHouse only), Boring Semantic Layer (MIT, built on Ibis), MetricFlow (Apache 2.0, though the hosted dbt Semantic Layer APIs need a paid dbt plan) and AtScale’s SML modelling language (Apache 2.0).

### Which Cube alternatives support ClickHouse?

Of the alternatives on this page, hypequery and GoodData document ClickHouse support. The dbt Semantic Layer and AtScale do not list ClickHouse. Boring Semantic Layer runs on engines Ibis supports, but its own docs do not name ClickHouse.

### How much does Cube Cloud cost?

On cube.dev/pricing, checked November 12, 2026: Free is $0, Starter is $40 and Premium $80 per developer per month, and Enterprise is custom. Infrastructure is billed hourly on top, for example $0.60 an hour for a dedicated deployment on Starter. Embedded dashboards need Premium or higher; SSO needs Enterprise.

### What is the difference between Cube and hypequery?

Cube is a service with its own APIs and caching that sits between many databases and many consumers, including BI tools. hypequery is a library for ClickHouse only: datasets are TypeScript or Python modules your app imports, so metric names are type-checked and tenant rules ship with the app.

Keep reading

## Related comparisons and guides

### [hypequery vs Cube](https://hypequery.com/compare/hypequery-vs-cube)

[The one-to-one comparison: setup, workflow, and where each is the right choice.](https://hypequery.com/compare/hypequery-vs-cube)

[Read](https://hypequery.com/compare/hypequery-vs-cube)

### [What is a semantic layer?](https://hypequery.com/semantic-layer)

[Definitions, examples, and how dbt, Snowflake, Databricks and Cube compare.](https://hypequery.com/semantic-layer)

[Read](https://hypequery.com/semantic-layer)

### [Embedded analytics platforms compared](https://hypequery.com/compare/embedded-analytics-platforms)

[Where headless semantic layers sit next to embedded BI and BI tools with embedding.](https://hypequery.com/compare/embedded-analytics-platforms)

[Read](https://hypequery.com/compare/embedded-analytics-platforms)

### [Embedded analytics for SaaS on ClickHouse](https://hypequery.com/clickhouse-saas-analytics)

[How a code-first semantic layer powers in-app dashboards for each customer.](https://hypequery.com/clickhouse-saas-analytics)

[Read](https://hypequery.com/clickhouse-saas-analytics)

## Sources

Vendor pages used for this page, all read on November 12, 2026.

- Cube

  - [cube.dev/pricing](https://cube.dev/pricing)
  - [cube.dev/articles/what-is-headless-bi](https://cube.dev/articles/what-is-headless-bi)
  - [github.com/cube-js/cube](https://github.com/cube-js/cube)
  - [github.com/cube-js/cube/blob/master/docs-mintlify/embedding/multitenancy.mdx](https://github.com/cube-js/cube/blob/master/docs-mintlify/embedding/multitenancy.mdx)
  - [github.com/cube-js/cube/blob/master/docs-mintlify/embedding/index.mdx](https://github.com/cube-js/cube/blob/master/docs-mintlify/embedding/index.mdx)
  - [github.com/cube-js/cube/blob/master/docs-mintlify/docs/data-modeling/concepts/syntax.mdx](https://github.com/cube-js/cube/blob/master/docs-mintlify/docs/data-modeling/concepts/syntax.mdx)
  - [github.com/cube-js/cube/blob/master/docs-mintlify/admin/connect-to-data/data-sources/clickhouse.mdx](https://github.com/cube-js/cube/blob/master/docs-mintlify/admin/connect-to-data/data-sources/clickhouse.mdx)
  - [github.com/cube-js/cube/blob/master/docs-mintlify/docs/integrations/mcp-server.mdx](https://github.com/cube-js/cube/blob/master/docs-mintlify/docs/integrations/mcp-server.mdx)
  - [github.com/cube-js/cube/blob/master/docs-mintlify/reference/core-data-apis/sql-api/index.mdx](https://github.com/cube-js/cube/blob/master/docs-mintlify/reference/core-data-apis/sql-api/index.mdx)

- Cube GitHub issues

  - [github.com/cube-js/cube/issues/8726](https://github.com/cube-js/cube/issues/8726)
  - [github.com/cube-js/cube/issues/9892](https://github.com/cube-js/cube/issues/9892)
  - [github.com/cube-js/cube/issues/9494](https://github.com/cube-js/cube/issues/9494)
  - [github.com/cube-js/cube/issues/9074](https://github.com/cube-js/cube/issues/9074)
  - [github.com/cube-js/cube/issues/10326](https://github.com/cube-js/cube/issues/10326)

- dbt Labs

  - [docs.getdbt.com/docs/use-dbt-semantic-layer/sl-faqs](https://docs.getdbt.com/docs/use-dbt-semantic-layer/sl-faqs)
  - [docs.getdbt.com/docs/dbt-cloud-apis/sl-api-overview](https://docs.getdbt.com/docs/dbt-cloud-apis/sl-api-overview)
  - [www.getdbt.com/pricing](https://www.getdbt.com/pricing)
  - [github.com/dbt-labs/metricflow](https://github.com/dbt-labs/metricflow)
  - [github.com/dbt-labs/dbt-mcp](https://github.com/dbt-labs/dbt-mcp)

- AtScale

  - [www.atscale.com/integrations/](https://www.atscale.com/integrations/)
  - [www.atscale.com/use-cases/semantic-modeling/](https://www.atscale.com/use-cases/semantic-modeling/)
  - [www.atscale.com/use-cases/semantic-context-ai-mcp/](https://www.atscale.com/use-cases/semantic-context-ai-mcp/)
  - [www.atscale.com/pricing/](https://www.atscale.com/pricing/)
  - [github.com/semanticdatalayer/sml](https://github.com/semanticdatalayer/sml)

- GoodData

  - [www.gooddata.com/pricing/](https://www.gooddata.com/pricing/)
  - [www.gooddata.ai/docs/cloud/connect-data/](https://www.gooddata.ai/docs/cloud/connect-data/)
  - [www.gooddata.ai/docs/cloud/connect-data/create-data-sources/clickhouse/](https://www.gooddata.ai/docs/cloud/connect-data/create-data-sources/clickhouse/)
  - [www.gooddata.ai/docs/cloud/create-metrics/maql/](https://www.gooddata.ai/docs/cloud/create-metrics/maql/)
  - [www.gooddata.ai/docs/cloud/workspaces/workspace-data-filters/](https://www.gooddata.ai/docs/cloud/workspaces/workspace-data-filters/)
  - [www.gooddata.ai/docs/cloud/api-and-sdk/vs-code-extension/](https://www.gooddata.ai/docs/cloud/api-and-sdk/vs-code-extension/)
  - [www.gooddata.ai/docs/cloud/ai/mcp-server/](https://www.gooddata.ai/docs/cloud/ai/mcp-server/)

- Boring Semantic Layer

  - [github.com/boringdata/boring-semantic-layer](https://github.com/boringdata/boring-semantic-layer)
  - [github.com/boringdata/boring-semantic-layer/blob/main/docs/md/doc/mcp.md](https://github.com/boringdata/boring-semantic-layer/blob/main/docs/md/doc/mcp.md)
