by spiculedata
Open-source semantic layer: one cube for Excel (MDX/XMLA), dashboards, and AI agents (MCP). Mondrian + Apache Calcite.
# Add to your Claude Code skills
git clone https://github.com/spiculedata/saikusaiku is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by spiculedata. Open-source semantic layer: one cube for Excel (MDX/XMLA), dashboards, and AI agents (MCP). Mondrian + Apache Calcite. It has 1,338 GitHub stars.
saiku's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/spiculedata/saiku" and add it to your Claude Code skills directory (see the Installation section above).
saiku is primarily written in Java. It is open-source under spiculedata on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh saiku against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
docker run -d -p 8080:8080 --name saiku -e SAIKU_DEMO=true ghcr.io/spiculedata/saiku
Then open http://localhost:8080/ui/ and log in with admin / admin. Demo
mode ships a self-contained H2 + FoodMart cube — drag fields onto rows, columns,
or filters and the SPA writes MDX for you.
For a real deployment, drop
SAIKU_DEMO=trueand set an admin password:-e SAIKU_ADMIN_PASSWORD='a-strong-password'(or-e SAIKU_ADMIN_PASSWORD_FILE=/run/secrets/saiku-admin-password). Saiku refuses to start on the defaultadmin/adminonce it's network-reachable, so one of those two is required — and the password must itself clear the policy (≥ 12 characters, not a well-known weak password), soSAIKU_ADMIN_PASSWORD=adminis refused too.
Demo fixtures follow demo mode (saiku#1953). A boot without
SAIKU_DEMO=truestages no demo content: no FoodMart/Bank/TPC-DS/Flights schemas, no H2 fixtures, no datasource descriptors — a fresh home comes up with an empty datasource list. SetSAIKU_SEED=trueto install the fixtures on a non-demo boot, orSAIKU_DEMO=true SAIKU_SEED=falsefor the demo login against your own cubes. Seeding is seed-if-absent, so an existingsaiku-homeis never rewritten or emptied.
The container runs as a non-root user (uid/gid
10001:10001). A fresh named/anonymous volume works out of the box. Any pre-existingsaiku-homefrom an older root container — bind mount or named volume — must be re-owned once:sudo chown -R 10001:10001 <host-dir>, or for a named volumedocker run --rm -v saiku-home:/h --user 0 cgr.dev/chainguard/wolfi-base chown -R 10001:10001 /h(the Saiku image is built on a shell-less Chainguard JRE and has nochownof its own). The container fails closed with aFATAL:message (naming the fix) rather than silently rotating its encryption key. On Kubernetes setsecurityContext: { runAsUser: 10001, fsGroup: 10001 }. See the CHANGELOG upgrade note for details.
A hosted instance is always live at https://demo.saiku.bi (auto-reset nightly).
Saiku started in 2010 as an open-source OLAP browser for Mondrian. In 2026 it was rebuilt as a modern Semantic Layer on top of:
SqlQuery builder. Calcite is the default; force
legacy with -Dmondrian.backend=legacy. The Calcite planner reaches
modern engines too — see examples/lakehouse-demo
for a Saiku → Mondrian → Calcite → Trino → Iceberg walkthrough.saiku-ui/ directory in this repository, served from inside the same
JAR at /ui/).Saiku 4.x exposes a typed REST surface — /rest/saiku/api/ai/* — designed
for LLM agents. Hierarchies, levels, measures and synonyms are discoverable
via /ai/cubes and /ai/schema, and a single POST /ai/query translates
a JSON description of a question into validated MDX, runs it, and returns
typed {value, formatted, unit} cells. Every validation failure carries
a {status, field, available} envelope so an agent can self-correct
without scraping logs.
The same self-describing, self-correcting contract has a SQL-side twin at
/rest/saiku/api/ai/ossie/* for datasets modelled with the Ossie semantic
layer — same list → schema → query shape, same VALIDATION_ERROR envelope,
plus POST /ai/ossie/ask for a plain-language question. Anomaly and forecast
endpoints (/ai/anomaly, /ai/forecast) share the same typed envelope.
The container also bundles saiku-mcp, a stdio
Model Context Protocol wrapper so Claude
Desktop / Cursor / Cline can wire to a running Saiku with one line of
config:
{
"command": "docker",
"args": ["exec", "-i", "saiku", "saiku-mcp"]
}
See docs/AI-QUERY-API.md and
docs/schema-annotations.md for the typed
contract and the saiku.semantic.* annotation namespace cubes use to
describe themselves to agents.
Reviewing a schema change before it lands:
# What does this edit break?
saiku model diff --from-git origin/development --from-git HEAD \
--before saiku-launcher/src/main/resources/seed/FoodMart4.xml \
--after saiku-launcher/src/main/resources/seed/FoodMart4.xml \
--repository ./saiku-home/repository/data
Diffs two models (Mondrian XML or Apache Ossie YAML), detects renames as renames,
and lists every saved query, dashboard and app still pointing at a member the change
removes — as Markdown, JSON, or POST /rest/saiku/api/admin/model/diff. On a pull
request that touches a model, the model-diff workflow posts the same report as a
sticky comment. See docs/MODEL-DIFF.md.
Point Saiku at a warehouse and it will build a starting Ossie semantic
model — cubes, dimensions, measures, joins — plus a rationale document
explaining every decision. See
docs/OSSIE-MODEL-GENERATION.md.
Admins can extend the AI surface without code:
saiku-home/skills/*.md) — markdown workflows with YAML
frontmatter, discoverable from /ai/ask. Invoke one explicitly by prefixing
an ask with /<skill-name>, or ask naturally and let the LLM route via the
skill catalogue.saiku-home/agent-spaces/*.json) — named personas that scope an
ask to a system prompt, a cube allowlist and a skill allowlist.
POST /ai/spaces/{id}/ask enforces the persona server-side, so a cube outside
the allowlist is a 403 the user can't override.See docs/SKILLS-SPEC.md and
docs/AGENT-SPACES-SPEC.md.
Build shareable dashboards of chart / table / KPI / text / image tiles over your
cubes — with cross-tile filters, click- and brush-cross-filtering,
drill-down/through, conditional formatting, combo charts, anomaly/forecast
overlays, auto-refresh, PDF/PNG export and read-only share links. See the
docs/dashboards-user-guide.md for the full
walkthrough, and saiku-ui/src/embed/README.md
to embed a dashboard in your own app via the <saiku-embed> web component.
Saiku speaks the SCIM 2.0 core profile, so Okta, Microsoft Entra ID or
OneLogin can own the user lifecycle: an admin mints one bearer token per
connector, and create / update / deactivate / group-assignment all flow into
the Saiku user directory without anyone touching the admin console. SCIM
handles lifecycle; OIDC/SAML handles authentication — a provisioned account has
no usable local password. See
docs/SCIM-PROVISIONING.md for the connector
walkthrough, the attribute mapping and its limits.
A first-party Sheets add-on (integrations/google-sheets/, spiculedata/saiku#1436)
queries the semantic layer from a spreadsheet sidebar — cube picker, measure
and dimension shelves, Insert as table, and a Refresh that rewrites the
same block in place so your formatting survives. It talks to the same typed
/saiku/api/ai/* surface as the MCP server and the Excel add-in. See
docs/sheets.md.
Saiku ships opt-in OpenTelemetry instrumentation via the OTel Java
agent — zero code changes, zero overhead when off. Setting
OTEL_EXPORTER_OTLP_ENDPOINT activates auto-instrumentation for Jetty,
Jersey, JDBC (every Mondrian-emitted SQL becomes a child span),
outbound HTTP, JVM metrics, and DBCP2 connection pool metrics. Trace
context is injec