Excel MCP Server: Let Claude Build Real Spreadsheets

Excel MCP Server: Let Claude Build Real Spreadsheets

This Python MCP server hands your AI assistant a full Excel toolkit — charts, PivotTables, slicers, formulas — without opening Excel. Here's how to install it, what it gets right, and where it still stumbles.

What you will learn

  • What the Excel MCP server does and why it matters for AI-assisted spreadsheet work
  • How to install and wire it into Claude Desktop, Cursor, or any MCP-compatible client
  • A concrete example of generating a chart and PivotTable from a plain prompt
  • The real limits you will hit — especially around slicers and VBA
  • Whether this repo is production-ready or a promising young tool

Why would you want an AI to touch Excel at all?

Spreadsheets are where business logic goes to hide. Forecasts, budgets, inventory trackers — they live in .xlsx files that are painful to edit by hand and even more painful to generate programmatically. If you have ever asked an AI to “make me a sales report” and gotten back a markdown table, you know the gap: the model can reason about data, but it cannot hand you a file your finance team will actually open.

The haris-musa/excel-mcp-server closes that gap. It is a Python implementation of the Model Context Protocol (MCP) that exposes Excel operations as tools an AI agent can call. You prompt; the agent writes rows, applies formulas, drops in a chart, and saves a real .xlsx file. No Excel installation required — it runs on top of openpyxl and related libraries, so it works on a headless server or a Mac without Office.

With roughly 4,283 stars at the time of writing, it has clearly struck a nerve. But stars are not the same as maturity. Here is the honest breakdown.

How do you install and connect it to Claude or Cursor?

The repo is Python, so the setup is familiar if you have run any MCP server before. Clone it, install dependencies, and point your client at the entry point.

git clone https://github.com/haris-musa/excel-mcp-server.git
cd excel-mcp-server
pip install -r requirements.txt

Then add it to your MCP client config. For Claude Desktop, that means editing claude_desktop_config.json; for Cursor, the MCP settings panel. A typical stdio entry looks like this:

{
  "mcpServers": {
    "excel": {
      "command": "python",
      "args": ["/path/to/excel-mcp-server/main.py"]
    }
  }
}

The repo also advertises a streamable-http transport, which matters if you want to run the server once and share it across sessions or clients. That is the more interesting long-term mode: stdio is fine for a single desktop assistant, but HTTP is what you would use in a team or CI setting.

Once connected, your assistant sees a set of spreadsheet tools — create workbook, write range, add formula, insert chart, build PivotTable, and so on. You do not call these by name; you describe the outcome and the agent chooses the tool. That is the whole point of MCP, and it is also where things get fragile, as we will see.

Excel MCP Server: Let Claude Build Real Spreadsheets

What does it actually feel like to use?

Imagine you have a CSV of monthly sales by region and you want a summary workbook. You paste the data into the chat and ask: “Create an Excel file with a PivotTable summarizing revenue by region and month, plus a bar chart of the top regions.” The agent calls the workbook-creation tool, writes the data, invokes the PivotTable tool with row and column fields, then adds a chart referencing the pivot output.

What comes back is a genuine .xlsx file — not a CSV renamed, not a screenshot. You can open it in Excel, LibreOffice, or Google Sheets and the formulas recalculate. That is the magic moment: the model did not just describe a spreadsheet, it produced one. For anyone who has tried to get an LLM to emit valid openpyxl code from scratch, the reliability difference is noticeable because the tool layer handles the boilerplate.

The formula support is the sleeper feature. Instead of asking the model to compute totals and hardcode them, you can ask it to write =SUM(B2:B13) or a VLOOKUP across sheets, and the resulting file stays live. That means a non-technical colleague can open it, change a number, and watch the chart update. It is the difference between a report and a model.

Where does it fall short?

Three honest limitations.

Slicers are the weak spot. The repo lists slicers and VBA among its topics, but slicers in particular are a notoriously awkward part of the OOXML spec and are only partially supported by openpyxl. In practice, expect to create slicer-ready PivotTables but not to get fully interactive slicer objects with every connection wired. If slicer fidelity is critical, test before you commit.

VBA is not really there. You cannot ask this server to generate or run macros. The topic tag is aspirational; the actual capability is file creation and editing, not automation of Excel itself. That is fine — most users do not need VBA — but do not buy the tag.

Tool selection can wobble. Because MCP tools are chosen by the model, complex multi-step requests sometimes produce a plausible but slightly wrong structure — a chart bound to the wrong range, a formula referencing a shifted cell. You will want to inspect outputs, especially for anything financial. This is a young repo; the polish of a mature product is not there yet.

If you are building agent workflows more broadly, the same lesson shows up elsewhere: tool-calling reliability is the bottleneck, not model intelligence. That is the theme in Runner Puts Claude Code, Codex and Copilot CLI on One Task and in Poracode Puts Every AI Coding Agent in One Window.

Should you use it, and for what?

Yes — with scoped expectations. This is a young, fast-moving repo, not an enterprise product. It is excellent for generating reports, dashboards, and data-entry templates from natural language, and for letting an agent maintain spreadsheets inside a larger workflow. It is not yet a replacement for a human building a complex interactive model with slicers and macros.

The bigger signal is architectural. Once an AI can reliably produce real office files, the boundary between “chat” and “work product” dissolves. The same pattern is spreading across the MCP ecosystem — memory servers, code-review agents, video tools — and the winners will be the servers that make tool calls boring and dependable. If you want to see how far that pattern has come, read claude-mem: Give Every AI Agent a Memory. If you are still deciding which assistant to wire it into, Free Claude Code: Run It in Terminal, VSCode, or Discord is a useful starting point.

My advice: clone it, connect it, and give it a real spreadsheet task this week. You will learn more from one broken chart than from any README.

Source and attribution

GitHub
haris-musa/excel-mcp-server: Excel MCP server: let AI (Claude, Cursor, Codex) create and edit Excel files with charts, PivotTables, slicers and formulas. No Excel required.

Discussion

Add a comment

0/5000
Loading comments...