essbase-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
essbase-mcp
A read-only MCP web service for Oracle Essbase and Planning. It lets approved AI clients read Essbase metadata and data through Oracle APS (XMLA and the Smart View provider protocol), and it keeps a local ontology snapshot of each cube so clients can find members by business words.
Version 0.5.1. Python 3.13 or newer, Windows first (the production host runs it as an NSSM service).
What it is, and what it is not
It is a read-only service. It never writes to Essbase: the XMLA layer sends
Discoverrequests and sendsExecuteonly with MDX that the service generates itself (essbase_get_dataand the ontology builder). The Smart View client has a hard allow-list of read requests and never sends WriteBack, business rules, SetSubVar or data.It is not a general MDX console: there is no tool that runs MDX written by the client.
It is not an OAuth service: clients send a static bearer token.
It is Essbase-only. The Oracle database backend was removed (
docs/ADR-003-essbase-only-service.md).Secrets are never shown. Essbase passwords, tokens and password hashes do not appear in logs, audit rows,
/ready,list_sourcesor the admin UI.
Related MCP server: DataGate
Architecture
One Python process, asyncio, two listeners:
The MCP listener (
mcp_port):/(public install page, no token),/mcp(the tools),/health,/ready, and/skills(skill zips and install scripts). It is the only listener that clients reach. Any other path is a JSON 404.The admin UI (
admin_port), loopback only: audit log, ontology builds and the Build button, a read-only token list, one page per tool, and the Skills page.
A data folder (
[paths] data_dir) with three SQLite files:state.db(tokens, admins, sessions),audit.db(one row per call and per admin or CLI action) andontology.db(the snapshots).Tools are declared once in a registry; the MCP adapter and the admin UI both read it.
Every call passes one pipeline: token, scope, source and app allow-lists, rate limit, concurrency, row and byte caps, timeout, audit row. If the audit writer is down, calls are refused.
Configuration is one TOML file,
connections.toml(copyconnections.example.toml). It holds the Essbase logins in plain text, so its file ACL is the secret boundary.
Features
Tools (19, all read-only). Each tool needs a token scope: meta for 18 tools, data for one.
Scope | Tool | What it does |
meta |
| Configured Essbase sources with environment and enabled flag. No connection details. |
meta |
| Applications of a source that the token may see. |
meta |
| Databases (cubes) of an application. |
meta |
| Dimensions of a cube. |
meta |
| Hierarchies of a dimension. |
meta |
| Levels of a dimension. |
meta |
| Measures of a cube. |
meta |
| Members of a dimension. |
meta |
| Member properties of a level. |
meta |
| MDX functions known to the Essbase server. |
meta |
| Outline record of one member (formula, comment, UDAs, parent, storage, alias values) through Smart View. |
meta |
| Substitution variables of an application and cube. Names that look like secrets are withheld. |
meta |
| Snapshot status per application and cube: build, counts, warnings, |
meta |
| Cube card: dimensions, top levels, |
meta |
| Find members (and Planning forms) by words in names, comments, aliases and UDAs. |
meta |
| One member: comment, aliases, UDAs, shared positions, children, level. |
meta |
| Map a request in business words to members per dimension, with defaults. Metadata only. |
meta |
| Planning forms catalogue (folder, name, plan type, description). Needs |
data |
| Read cell values without writing MDX: |
Other features:
Ontology snapshot.
ontology.dbholds dimensions, members, comments, UDAs, alias tables and the forms catalogue of each cube. It is built on request (CLIbuild-ontology, or the Build button in the admin UI), never at start. The card is also an MCP resource (essbase://<source>/<app>/<cube>/card) and the promptessbase_context.Auto-rebuild (off by default). With
[ontology.auto] enabled = truethe service checks the cube's schema stamp in APS and rebuilds when the outline changed, when the build is too old, or nightly. Quiet hours pause rebuilds. A failed build keeps the previous one active.Glossary.
glossary.tomlnext toconnections.tomlmaps business words ("план", "ФОТ") to members.ontology_resolveandontology_searchcheck it first. Seeglossary.example.toml.essbase_get_datalimits. Every name is checked against the snapshot, so a build is required. A dimension the request does not name gets the configureddefault_povmember, then its*_NAmember, then the root; the reply listspov_used. A request larger than[limits] max_cellsis refused before any query is sent. The data scope has its own rate limit (data_rate_limit_per_minute) and concurrency limit.Skills download. The service serves six Claude skills (
essbase-ask,essbase-cube-tour,essbase-mcp,essbase-mdx-check,essbase-member-lookup,planning-form-explain) at/skillsas zips with install scripts. Any valid token works, no scope needed. A skill folder with a.not-servedfile is not served (the operator skillessbase-ontology-opshas it).Install page
/. Open the server address in a browser: a public page (no token) with install instructions and copy buttons for people and for AI agents. Two options: Skills only (preferred; no MCP client configuration; the skills call the service through the helperemcp.pyoremcp.ps1of the skillessbase-mcp) and MCP + Skills (adds a.mcp.json). The page shows the server address, the version and the skill names; nothing secret.Audit. One row per tool call and per admin or CLI action. Tool arguments are masked by default. CLI actions record the operator (the OS account) and are marked as alerts.
Token governance. One token per person (
emcp_...), only the SHA-256 is stored, 30 days by default and 90 at most. Tokens are issued and revoked only withessbase-mcp-cli, on the server. There is no approval step; the admin UI lists tokens but cannot create or revoke them.
Getting started
Full steps for the server and for a client: INSTALL.md. In short:
py -3.13 -m venv .venv ; .venv\Scripts\python.exe -m pip install -e .
copy connections.example.toml connections.toml # edit: listeners, [xmla.<name>], [paths]
.venv\Scripts\essbase-mcp-cli.exe --config connections.toml init
.venv\Scripts\essbase-mcp-cli.exe --config connections.toml create-admin --username <admin>
.venv\Scripts\python.exe -m essbase_mcp --config connections.tomlSecurity model
Read-only everywhere (see the first section). The service holds no database account.
Bearer tokens over TLS (a reverse proxy, or
mcp_ssl_certfileandmcp_ssl_keyfile). Plainhttpis for development only: a non-loopbackmcp_hostwithout TLS is refused at start unlessallow_plain_http = true, andallow_plain_httpon an XMLA source is accepted only for envdev,test,qaorsandbox.Requests that carry an
Originheader are refused (403); browser-based clients are not supported.Tokens expire, can be revoked at once, and are shown once. A privileged scope (
data,logic,security) or a non-default profile is issued directly by the operator and audited; the CLI prints a warning (docs/ADR-003-essbase-only-service.md, section 7a).The admin UI is loopback only, with sign-in, roles, CSRF tokens and an HttpOnly
__Host-session cookie. The MCP listener has no admin routes.connections.tomlholds plain-text passwords.scripts\harden-acl.ps1removes access for Users, Authenticated Users and Everyone. Logs and audit rows are masked and the settingsreprhides passwords.Limits on every call: row and byte caps, query timeouts, per-source concurrency, per-token rate.
Grant the
datascope only after the Essbase administrator has set the query governorsQRYGOVEXECTIMEandQRYGOVEXECBLKfor the XMLA account. The service cannot stop a query that Essbase still runs.
Documentation
Document | Purpose |
| Step-by-step install: quick server setup, production summary, client setup, troubleshooting. |
| Production deployment on Windows: wheels, NSSM service, ACL hardening, TLS, backup and restore, upgrade and rollback. |
| Daily operation: tokens, credential rotation, ontology, skills, logs, troubleshooting. |
| MCP client configuration, skills-only option and helper, connection test, skills install. |
| Error codes, HTTP status mapping, |
| Live golden tests, admin UI check, client test, Essbase governor checks. |
| Findings from live runs against APS. |
| Current design (one page). |
| Ontology design, live findings, data tool options. |
| Retrospective and cleanup plan. |
| Version rules and the list of changes. |
| Third-party source samples (XMLA notebook, Smart View plugin definition). Kept locally, not in the repository (gitignored). |
| Historical, superseded documents (ADR-001, IMPLEMENTATION-PLAN-001, SPIKE-001, QUERY-CONTRACTS). Do not use them as current. |
Development
py -3.13 -m venv .venv
.venv\Scripts\python.exe -m pip install -e . pytest pytest-asyncio ruff # test and lint tools are not in requirements.lock
.venv\Scripts\python.exe -m pytest -q # or: scripts\test.ps1 -q
.venv\Scripts\python.exe -m ruff check src tests # or: scripts\lint.ps1Source:
src\essbase_mcp. Tests:tests\. A full run takes about 4 minutes.Live tests (
-m live) run whenconnections.tomlexists and are skipped when it is missing. They are read-only. Do not run two full suites at the same time in the same folder.A hang watchdog in
tests\conftest.pystops a run that lasts longer thanESSBASE_MCP_TEST_TIMEOUTseconds (default 900, 15 minutes;0turns it off for a debugger). It prints every thread's stack and exits with code 1.
Status
Version 0.5.1: 0.5.0 added the public install page /, the essbase-mcp connector skill with
its helper, and reviewed skills; 0.5.1 adds reverse-proxy prefixes (mcp_public_url) and
install-script fixes (see CHANGELOG.md). Unit-tested with fake data, plus a
few read-only live tests against a real Essbase and APS. The owner's go-live checks are in
docs/LIVE-CHECKLIST.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers.
Public read-only MCP access to digital learning concepts, semantic relationships, and citations.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA read-only MCP gateway that enables AI agents to retrieve business data (sales, appointments, clients, inventory, etc.) from the AURON Suite backend with role-based access control, audit logging, and rate limiting.MIT
- AlicenseNot gradedqualityCmaintenanceProvides a secure, policy-driven read-only gateway that exposes multiple databases to AI tools via MCP, with governed select, search, and aggregate operations and no free-form SQL.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables secure, read-only querying of only predefined logical database views through MCP tools and a REST API, using validated SQL and semantic view metadata.-
- AlicenseNot gradedqualityBmaintenanceRead-only MCP server that lets clients discover and explore Oracle EPM Planning / NSPB applications, including metadata, substitution variables, targeted data slices, existing-job inspection, and sanitized connection status, while job and business-rule execution stay disabled.GPL 3.0