An AI agent builds Excel PivotTables on your semantic model EMondrian added a make_excel_pivot tool to its MCP server that lets an AI agent generate an .xlsx workbook containing a live OLAP PivotTable connected to a semantic model, with no data or credentials embedded in the file. The agent uses list_catalogs and describe_cube to find business-named hierarchies and measures, then builds the PivotTable under the caller's roles. In a test against a public demo of 182 million US flights in ClickHouse, the 5 KB workbook refreshed in Excel for Microsoft 365 to 182,315,946 flights, a 1.90% cancellation rate and a 12.58-minute average arrival delay, matching MDX and Power BI queries. 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. The file is an ordinary Excel workbook with an OLAP PivotTable, the same kind Excel creates when you connect to Analysis Services yourself: , 0 , Standard, Fixed, Percent and others come across as Excel number formats. 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. eMondrian's MCP server has a tool for this, make excel pivot . The agent works the way an analyst would: list catalogs and describe cube to see the cubes, hierarchies and measures by their business names. make excel pivot with the catalog, the cube, the hierarchies for rows and columns, the filters and the measures. 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. Connect your agent to the public demo, 182 million US flights in ClickHouse connection steps: https://emondrian.com/demo https://emondrian.com/demo , 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 the demo's XMLA endpoint. 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: Every workbook opened in Excel as it was, and after refresh the numbers matched the same queries in MDX and in Power BI. 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. make excel pivot is part of the free eMondrian Community edition, with no license key. Read more: A semantic layer with an MCP server https://docs.emondrian.com/articles/semantic-layer-with-an-mcp-server · AI agents MCP https://docs.emondrian.com/clients/mcp · Excel https://docs.emondrian.com/clients/excel · Security https://docs.emondrian.com/ops/security