Tool list · Open source semantic layer

    15 Best Open Source Semantic Layer Tools in 2026

    Discover the 15 best open-source and source-available semantic layer tools you can self-host for free, from metrics servers and dbt metrics to Python libraries, context layers for AI agents and knowledge graphs, ranked by GitHub stars.

    By Ari Bajo - data engineer turned writer.

    Updated on December 1, 2026

    Table of contents

    Open source semantic layer tools list

    Cube Core

    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.

    OSS
    My Opinion

    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.

    Wren AI OSS

    Open-source context engine for AI agents with a semantic layer, where metrics, joins, and worked examples live as YAML and Markdown in Git, for 22+ data sources, with a CLI, SDK, and MCP server.

    My Opinion

    Best for developers who want coding agents such as Claude Code or Cursor to write governed SQL from definitions kept in Git, without a web UI.

    Neo4j

    Property graph database positioned as the knowledge layer for AI, with GraphRAG tooling, graph algorithms, virtual graphs over existing data, and agents, as open-source software or the managed AuraDB service.

    My Opinion

    Best for teams whose questions depend on connections, such as fraud rings or supply chains, and who keep metric definitions in another tool.

    Malloy

    Semantic modeling and query language on top of SQL for BigQuery, Snowflake, Databricks, DuckDB, PostgreSQL, MySQL, Trino, and Presto, with Publisher to serve models through REST and MCP. MIT license.

    OSS
    My Opinion

    Best for data teams willing to learn a new language to get models and queries in one place, with nested data handled natively.

    MetricFlow

    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.

    My Opinion

    Best for dbt projects that want tested metric definitions in Git and can query them from the command line, without BI tools connected.

    ktx

    Context layer for data agents that builds a semantic layer from the warehouse, maps joinable columns, absorbs wiki knowledge, and serves approved metrics through a CLI and MCP. Apache 2.0; ktx Cloud is the paid hosted version.

    My Opinion

    Best for teams using Claude Code or Codex on a warehouse that want the semantic layer drafted and maintained for them.

    Saiku

    Semantic layer for cubes built on Mondrian and Apache Calcite, with drag-and-drop analysis in the browser, MDX, a REST API and MCP server for AI agents, and Apache Ossie models. Apache 2.0; Saiku Cloud is the hosted version.

    OSS
    My Opinion

    Best for teams with Mondrian or OLAP cubes that need browser and Excel analysis plus agent access, self-hosted in one container.

    Ontop

    Virtual knowledge graph system that exposes relational databases as RDF graphs without moving the data, translating SPARQL into SQL through R2RML mappings and lightweight ontologies. Apache 2.0 license.

    OSSknowledge graphontology
    My Opinion

    Best for teams that want an ontology over existing databases in W3C standards, and have SPARQL skills.

    Boring Semantic Layer

    Lightweight Python semantic layer built on Ibis, where dimensions and measures are Python expressions that run on any engine Ibis supports (DuckDB, Snowflake, BigQuery, PostgreSQL), with MCP support. MIT license.

    OSSPython-native
    My Opinion

    Best for Python data teams that want metrics in a pip-installed library, without a server or a new modeling language.

    Fluree

    Context layer for AI agents built on a governed knowledge graph, with data policies enforced on every fact, time travel, branching, ontology management, and a source-available database that runs anywhere.

    source-availableknowledge graphontologycontext layer
    My Opinion

    Best for teams building AI agents that need permissions, history, and traceable answers enforced inside the knowledge graph itself.

    SLayer

    Embeddable semantic layer for AI agents and applications, used as a Python library or a server with MCP, REST, and CLI access, with time shifts, ratios, and row-level security at query time. MIT license.

    OSSPython-native
    My Opinion

    Best for developers embedding governed metrics in a Python app or an analytics agent, where questions can't all be predefined.

    Zillion

    Python data modeling and analytics tool that acts as a semantic layer over several SQL databases and files, writes the SQL, and combines results from multiple data sources in one DataFrame. MIT license.

    OSSPython-native
    My Opinion

    Best for Python users who need reports across several databases from one set of metrics, in a small project.

    sqlctx

    Semantic runtime, formerly Sidemantic, that imports models from 15+ formats (Cube, MetricFlow, LookML, Power BI, Apache Ossie) and serves them through SQL, HTTP, the PostgreSQL protocol, and MCP. AGPL 3.0 license.

    OSS
    My Opinion

    Best for teams with definitions scattered across BI tools that want to query them from one place before choosing a platform.

    hypequery

    Embedded analytics toolkit for ClickHouse, where datasets, measures, and tenant rules are defined in TypeScript or Python (beta) and served as HTTP endpoints, React hooks, and MCP tools. Apache 2.0 license.

    OSS
    My Opinion

    Best for engineers building customer-facing analytics on ClickHouse who want metric definitions inside their own backend.

    OrionBelt Semantic Layer

    Semantic layer and rule engine that compiles YAML models into SQL for eight dialects, plans multi-fact queries to avoid fan traps, serves REST and MCP, and reads and writes Apache Ossie. Business Source License 1.1.

    source-available
    My Opinion

    Best for teams that want multi-fact queries checked by a compiler, and don't embed the layer in a commercial product.

    Browse semantic layer tools by integration

    Find the semantic layer tools that work with your stack.

    See all semantic layer tools and their integrations

    Related lists

    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.

    By Ari Bajo - data engineer turned writer.

    Compare semantic layer tools

    The comparison tables behind this list.

    How I check every fact

    Checked against vendor docs

    I check each feature, integration and price against the vendor's docs, pricing page or GitHub repository, and link the fact to that source.

    Open to vendor corrections

    Vendors and users can send corrections. I verify them against the docs before changing anything, and every page shows when it was last updated.

    Spot a mistake? Send a correction →

    Frequently Asked Questions

    What is an open source semantic layer?
    An open source semantic layer defines metrics, dimensions and joins in code you can self-host and modify, then compiles requests from applications, BI tools and AI agents into SQL. They come in four kinds: servers with APIs (Cube Core, Saiku, sqlctx), engines and languages (MetricFlow, Malloy), Python and TypeScript libraries (Boring Semantic Layer, SLayer, Zillion, hypequery), and context layers made for AI agents (Wren AI OSS, ktx). On the knowledge graph side, Ontop exposes SQL databases as a graph, and Neo4j and FlureeDB (source-available) store one. Read more on my semantic layer tools list.
    Which open source semantic layer should I use?
    For a metrics server with APIs and caching, start with Cube Core. If your models are in dbt, start with MetricFlow, and check whether the command line is enough. For Python, Boring Semantic Layer is the smallest and SLayer adds a server. If the consumer is a coding agent, compare Wren AI OSS and ktx. Malloy fits teams ready for a new language, hypequery fits ClickHouse, and Saiku fits existing Mondrian cubes. For an ontology over SQL databases, use Ontop.
    Is the dbt Semantic Layer open source?
    Partly. MetricFlow, the engine, is Apache 2.0, and you can define metrics and query them from the command line for free. The service that serves them to BI tools, through JDBC and GraphQL APIs, is proprietary and needs a paid dbt plan (Starter, Enterprise or Enterprise+).
    What do the paid versions add to Cube Core, Wren AI and Saiku?
    Cube adds the DAX API for Power BI, Excel and Google Sheets add-ins, dashboards, analytics chat, the MCP server and, on Enterprise, single sign-on and audit logs. Wren AI Cloud adds a web UI, Slack and Teams, spreadsheet add-ins, evaluation, roles, and row and column security per user. Saiku Cloud adds hosting, audit logging, single sign-on and measure lineage. The feature matrix compares each pair: toolsfordata.com/compare/semantic-layer-tools/features/.
    Which open source semantic layers work with AI agents?
    Wren AI OSS, ktx, Malloy (through Publisher), Saiku, Boring Semantic Layer, SLayer, sqlctx, hypequery and OrionBelt document an MCP server or MCP tools, and so do Neo4j and FlureeDB. Cube's MCP server belongs to the paid platform. MetricFlow metrics reach agents through the dbt MCP server, with a dbt account.
    What is the Boring Semantic Layer?
    A small Python library, MIT-licensed, by boringdata and xorq-labs. You declare dimensions and measures on an Ibis table and query them by name, so the same model runs on DuckDB, Snowflake, BigQuery, PostgreSQL and other Ibis engines. It has no server to run. It is young: the repository dates from June 2025.
    Which open source tools are not listed?
    Lightdash and Rill have semantic models, but they are BI tools. Semantica builds knowledge and context graphs rather than metric definitions. SuperSonic adds conditions to the Apache license and its last release is from November 2024. Synmetrix has had no commit since February 2025, and Wren Engine is archived and merged into Wren AI OSS. Two MIT-licensed DuckDB community extensions, semantic_views and semantic_layer (by Altertable), define metrics in SQL; they are under the 100 stars this list asks for.
    Why create yet another tools list?
    Most lists of open-source semantic layers are written by a vendor of one, and stop at five to eight projects. This list covers servers, languages, libraries and agent context layers, with each license read from the repository, and leaves out projects without a release in 2026.
    How can I edit this tools list?
    If you think a tool belongs here or you want to suggest an edit, I would love to hear from you. You can fill out the feedback form or DM on LinkedIn.