Cube Core

Product · Developer tool by Cube

The open-source semantic layer for consistent, governed analytics.

Cube Core is the open-source semantic layer for modern data stacks, providing a centralized platform to define metrics and governance as code. It is ideal for developers who need to ensure consistent data answers across BI tools and AI agents while optimizing performance with distributed caching.

Price
From 0 USD

Category: Open Source

Programming languages
JavaScript, YAML, Python, SQL
Editors and tools
Cube CLI, GitHub, GitLab
License
Apache 2.0
Deployment
Self-hosted, Cloud
GitHub Stars
18,000+
Slack Community Members
12,830+
  • Apache 2.0 licensed open-source semantic layer
  • Postgres-compatible Semantic SQL interface with MEASURE function
  • Distributed caching engine via Cube Store for sub-second performance

Overview

Cube Core is an open-source semantic layer platform designed for data engineers and developers to centralize business logic and governance. It allows teams to define metrics, dimensions, and security rules in code, which are then served consistently to BI tools, custom applications, and AI agents. The platform features a distributed caching engine called Cube Store that manages pre-aggregations to optimize query performance and reduce data warehouse costs. Cube Core supports multiple interface protocols including a Postgres-compatible SQL API, REST, and GraphQL. As an Apache-licensed project, it provides a portable foundation that allows data models to move seamlessly to the managed Cube Cloud environment.

Semantic Layer Foundation

  • Centralized Data Modeling: The data model defines metrics, entities, joins, and relationships upstream of any consumer to ensure consistent answers.
  • Cube Objects: Cubes represent business entities like customers or orders and define measures, dimensions, and joins.
  • Curated Views: Views sit on top of cubes to present curated, query-ready datasets for humans and AI agents.

Universal Connectivity

  • Semantic SQL API: The Postgres-compatible interface extends SQL with the MEASURE function for semantic querying.
  • REST and GraphQL APIs provide programmatic access for custom applications and real-time analytics.
  • Meta API for Introspection: The Meta API allows for model introspection, letting AI agents discover what is queryable.
  • Model Context Protocol (MCP): A dedicated MCP server allows agents like Claude and ChatGPT to query the governed model as a tool.

Performance and Caching

  • Pre-aggregations Caching: Pre-aggregations are rollup tables stored in Cube Store to keep interactive workflows fast.
  • Aggregate Awareness Engine: The aggregate awareness engine automatically routes incoming queries to matching pre-aggregations.
  • Distributed Caching Engine: Cube Store serves as a distributed caching engine to reduce upstream data warehouse load.
  • Cost Optimization: Caching and pre-aggregations keep warehouse costs predictable by reducing direct data store hits.

Governance and Security

  • Code-Based Access Control: Access control policies are defined as code in Python or JavaScript and enforced at the semantic layer.
  • Unified Security Enforcement: Row-level security and access rules apply consistently across all connected BI tools and agents.
  • Multi-tenant Governance: The platform supports fully tenant-aware models backed by different data sources.

Use cases

  • Data engineers centralize metric definitions in code to prevent inconsistent numbers across different BI tools.
  • Developers build embedded analytics into SaaS products using the REST or GraphQL APIs for governed data access.
  • Teams connect AI agents like Claude or ChatGPT to a governed semantic model via the MCP server for trustworthy answers.
  • Analytics teams use Cube Store pre-aggregations to achieve sub-second query performance on large-scale data warehouses.

Specifications

Programming languages
JavaScript, YAML, Python, SQL
Editors and tools
Cube CLI, GitHub, GitLab
Integrations
Snowflake, BigQuery, Redshift, Databricks, ClickHouse, Postgres, Claude, ChatGPT, Excel, Google Sheets
License
Apache 2.0
Deployment
Self-hosted, Cloud
GitHub Stars
18,000+
Slack Community Members
12,830+
API Protocols
SQL, REST, GraphQL, MCP
Caching Engine
Cube Store
Modeling Languages
YAML, JavaScript

How it works

  1. Define the Semantic Model: Developers define cubes, views, and joins in YAML or JavaScript files, managing them in version control like GitHub.
  2. Connect Data Sources and Caching: Connect Cube to upstream data sources such as Snowflake, BigQuery, or Databricks and configure caching via pre-aggregations.
  3. Expose APIs to Consumers: Expose the governed model to downstream consumers through SQL, REST, GraphQL, or MCP APIs.

Pricing

Open Source
Free

FAQ

What is the difference between Cube Core and Cube Cloud?

Cube Core is the open-source semantic layer that provides the shared context for every consumer, while Cube Cloud is the managed enterprise-grade platform built on top of it. Data models port unchanged between the two.

What license does Cube Core use?

Cube Core is licensed under the Apache 2.0 license, making it free to use and modify for production environments.

How does Cube Core ensure data consistency?

Cube Core centralizes metric definitions, joins, and access rules upstream of BI tools and AI agents, ensuring that every consumer receives consistent, governed answers.

What is Cube Store?

Cube Store is Cube's distributed caching engine designed to speed up queries and manage pre-aggregations, reducing the load on the primary data warehouse.

Added by AntSpace from public sources (cube.dev).

Related

More products by Cube