Many reports still end up in Excel. Someone asks for “flights by year, as a PivotTable”, and an analyst opens Excel, connects to the cube, drags fields and saves the file. With eMondrian, an AI agent does this in one step. You describe the report in plain words, and the agent returns an .xlsx file with a live PivotTable connected to your semantic model.
What you get
The file is an ordinary Excel workbook with an OLAP PivotTable, the same kind Excel creates when you connect to Analysis Services yourself:
- A live connection. The workbook holds a connection to the eMondrian XMLA endpoint and the catalog. Press Data → Refresh All, and Excel queries the server for the current numbers.
- Your layout. Hierarchies on rows and columns, filters with one or several members, and the measures you asked for.
- Your formats. Number formats from the model (
#,##0, Standard, Fixed, Percent and others) come across as Excel number formats. - A normal PivotTable afterwards. Users expand hierarchies, add fields and change filters in Excel, as with any PivotTable.
The file carries no data and no credentials. The numbers come from the server on refresh, so the same file stays current, and you can send it to anyone who has access to the server.
How it works
eMondrian’s MCP server has a tool for this, make_excel_pivot. The agent works the way an analyst would:
- Finds the model. It calls
list_catalogsanddescribe_cubeto see the cubes, hierarchies and measures by their business names. - Builds the PivotTable. It calls
make_excel_pivotwith the catalog, the cube, the hierarchies for rows and columns, the filters and the measures. - Saves the file. The server returns the workbook, and the agent saves it to your disk. Nothing is written on the server.
The tool reads the model under the caller’s roles, so the agent can only place hierarchies, measures and members that the user may see.
Try it
Connect your agent to the public demo’s MCP server at https://demo.emondrian.com/emondrian/mcp (182 million US flights in ClickHouse) and ask:
Make an Excel file with a PivotTable on the OnTime catalog, cube OnTime (attributes): years on rows, with Flights, Cancellation Rate and Avg Arr Delay.
The agent reads the cube with describe_cube and calls make_excel_pivot:
{
"catalog": "OnTime",
"cube": "OnTime (attributes)",
"rows": ["[Time.Year]"],
"measures": ["[Measures].[Flights]", "[Measures].[Cancellation Rate]", "[Measures].[Avg Arr Delay]"]
}The file, OnTime OnTime (attributes).xlsx, is about 5 KB: a PivotTable connected to https://demo.emondrian.com/xmla.
Open the file in Excel and press Refresh All. In our test with Excel for Microsoft 365, the PivotTable showed 182,315,946 flights in total, a 1.90% cancellation rate and an average arrival delay of 12.58 minutes, with a row for every year: 1987 had 1,311,826 flights, 2024 had 7,079,061. The percent format of the cancellation rate came from the model.

Other workbooks from the same test:
- Airlines by year: 33 airlines on rows, 30 years on columns, Flights.
- FoodMart, a filter with several members: Store State = CA and WA (Multiple Items), Unit Sales and Profit: 199,114 and 254,106.33.
- A parent-child hierarchy: FoodMart HR, Employees with Org Salary and Number of Employees; expanding Sheri Nowmer shows her five direct reports.
Every workbook opened in Excel as it was, and after refresh the numbers matched the same queries in MDX and in Power BI.
Who sees what
eMondrian Community includes sign-in through an authentication gateway with Keycloak. With sign-in switched on, Excel asks for a user name and password on the first refresh; users of an OIDC or SAML provider enter a personal access token as the password. The server runs Excel’s queries as that user, and the roles in the model decide which rows and objects they see. One workbook can go to the whole team: each person gets their own numbers.
Where it fits
- Monthly and ad-hoc reports that people still want in Excel, built from a sentence instead of by hand.
- A starting point for analysts: the agent sets up the PivotTable, the analyst continues in Excel.
- One definition of each measure: the PivotTable uses the same Unit Sales and Profit as Power BI, eMondrian dashboards and the AI agent’s own answers.
make_excel_pivot is part of the free eMondrian Community edition, with no license key.
Read more: A semantic layer with an MCP server · AI agents (MCP) · Excel · Security