cd /news/ai-agents/an-ai-agent-builds-excel-pivottables… · home › topics › ai-agents › article
[ARTICLE · art-175504] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

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.

key takeaway

eMondrian's make_excel_pivot MCP tool returns a roughly 5 KB .xlsx with a live OLAP PivotTable that carries no data or credentials and refreshes under the caller's model roles, so one workbook can serve a whole team with per-user numbers.

by read2 min views1 publishedNov 24, 2026

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), 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 · AI agents (MCP) · Excel · Security

── more in #ai-agents 4 stories · sorted by recency
── more on @emondrian 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/an-ai-agent-builds-e…] indexed:0 read:2min 2026-11-24 · —