eMondrian is an open-source semantic layer and OLAP server with a built-in MCP server. The MCP server is part of the free Community edition and needs no license key. Through it, an AI agent such as Claude lists your catalogs, cubes and measures, runs MDX queries, and gets numbers calculated by the definitions in your model, instead of guessing joins and formulas from raw tables. With the DAX module (a 30-day evaluation key is free), the agent also runs DAX and builds Power BI reports.

The same MCP server is also how you build the semantic layer. An agent installs the database driver and registers the database, writes and checks the cubes, sets the roles, adds users and builds the dashboards and Power BI reports. Every part of the work goes faster when an agent does it, and the MCP server has tools for each of these steps.

Excel PivotTables and Power BI connect to the same model live. The agent, Excel and Power BI read one definition of Revenue, and get one number.

Why agents need a semantic layer

Give an agent access to the database, and it writes SQL against tables it doesn’t know. It decides on its own how revenue is calculated, whether returns count, and which join is right. Ask twice and you may get two numbers, neither of them the one in the board report.

A semantic layer defines the numbers once: measures, dimensions, hierarchies, and which rows each person may see. An agent connected to the semantic layer asks for Store Sales by Region, and the server calculates it the way the model says.

Connect an agent in one line

The public demo is open without sign-in, with read-only schemas, on 182 million US flights in ClickHouse:

claude mcp add --transport http emondrian-demo https://demo.emondrian.com/emondrian/mcp

In claude.ai: Customize → Connectors, add a custom connector with the URL https://demo.emondrian.com/emondrian/mcp.

On your own server the address is https://<your server>/emondrian/mcp (Streamable HTTP; /emondrian/mcp/sse for clients that only speak SSE). Claude Desktop connects through mcp-remote; any MCP client works. See AI agents (MCP).

Ask in plain English, get the model’s numbers

“Which five airlines flew the most flights in 2024, and what was their average arrival delay?”

The agent reads the cube with describe_cube, writes the query with the model’s names and runs it with execute_query:

SELECT {[Measures].[Flights], [Measures].[Avg Arr Delay]} ON 0,
       TopCount([Airline].[Airline].Members, 5, [Measures].[Flights]) ON 1
FROM [OnTime (attributes)]
WHERE [Time].[2024]
AirlineFlightsAvg arrival delay, min
WN1,419,41912.13
DL1,009,17413.19
AA984,30623.01
UA760,45115.07
OO744,65815.96

Flights and Avg Arr Delay are measures of the model. Excel and Power BI on the same cube show the same values.

The agent builds every part

The agent is the main development tool in eMondrian. It does the work, you review it.

StepMCP tools
Connect a databaseinstall_driver, list_drivers, save_catalog, list_source_credentials (you put the database password into .env; the agent sees only its name)
Read the databasedescribe_source, validate_source_sql (structure only, no rows)
Write and check a cubeget_cube_authoring_guide, validate_schema, save_schema, get_schema, add_time_measures (YTD, previous year, YoY)
Test the numbersdescribe_cube, execute_query (MDX; DAX with the DAX module)
Decide who sees whatlist_roles, get_role, save_role, delete_role, set_default_role; execute_query with as_user to see it as that user (administrators)
Add users and groups (with authentication on)create_user (it can e-mail the user a link to set a password), create_group, set_user_groups (users who may manage users)
Build dashboardscreate_dashboard, update_dashboard, set_dashboard_access (with a key that includes dashboards)
Build Power BI reports with a live connectionmake_project, make_page, make_visual, arrange_page, validate_report (with the DAX module)
Find a problemread_logs, get_properties

Ask, for example, with a catalog MySales registered and its password in .env: “In catalog MySales, create a cube Sales on the ClickHouse table sales: a Time dimension from sale_date, Region and Product, measures Amount and Quantity, and Avg Price = Amount / Quantity. Validate it, save it, and show total Amount by Region.” The agent reads the columns, writes the schema, checks it against the database, saves it and runs the query. The schema is a plain XML file: review it and keep it in Git. With authentication on, changing schemas, roles and drivers and reading logs need administrator rights on the server; the public demo has read-only schemas, so build your first cube on your own Community.

The agent sees what its user may see

Switch authentication on (one command), and every MCP call runs as the user who signed in: through OAuth in the browser, with a password, or with the user’s personal token.

  • The same roles everywhere. Row-level and object-level rules are part of the model. Excel, Power BI Desktop, eMondrian dashboards, the REST API and the agent apply the same roles to the same user. A manager limited to the West region gets West-region numbers from the agent, too.
  • Your directory. Users and groups come from Active Directory or LDAP, or from an OIDC or SAML provider, through Keycloak. A user who signs in through OIDC or SAML needs an account in Keycloak as well.
  • The same rights for changes. An agent may change a schema only if its user may.
  • Every call is logged with the user’s name.

The MCP server, sign-in, roles and the call log are part of the free Community edition. DAX, Power BI reports and dashboards need a key that includes them.

One model for the agent, Excel and Power BI

The agent, Excel PivotTables and Power BI read the same model on your own server. Services and scripts get it too, over a REST API with JSON (/api/v1), free in Community. Change a measure once: the agent uses the new definition from its next query, Excel and Power BI from their next connection.

Try it

  1. Connect your agent to the demo with the command above and ask about the flights.
  2. Install Community on your own machine (Docker), connect it to your database, and ask the agent to draft the first cube.
  3. Switch authentication on before other people connect.

Read more: AI agents (MCP) · Security · REST API (JSON) · Install with Docker