Excel MCP Server
Lets your AI agent control the real Microsoft Excel app: edit sheets, run Power Query and DAX, build PivotTables and charts.
853 stars on GitHubby sbroenneLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add excel -- npx -y @sbroenne/mcp-server-excel
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Import products.csv with Power Query and load it to the Data Model.
Create a PivotTable showing revenue by region, then add a column chart.
What it is
This server connects your AI agent to the actual Microsoft Excel application on your Windows PC, not just to spreadsheet files. The agent can work with ranges, formulas, tables, Power Query, DAX, VBA, PivotTables and charts. You can watch the results in Excel while the agent works and keep editing the workbook yourself.
What it can do
- Power Query, DAX, Power Pivot and data connections
- Ranges, formulas, formatting, worksheets and named ranges
- Excel Tables and PivotTables
- Charts, slicers, conditional formatting and screenshots
- VBA, Python in Excel, Goal Seek and scenarios
When to use
- βΊWhen you want to build a PivotTable and a chart from a CSV file just by describing it.
- βΊWhen you need formulas recalculated or Power Query refreshed in a real workbook.
- βΊWhen you want an agent to clean up and format a workbook you already have open in Excel.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
excel-analysisHelps your agent read Excel files, analyze the data, create pivot-style summaries and charts, and write the results to a new workbook.xlsxHelps your agent create and edit Excel and CSV spreadsheets with formulas and formatting, analyze the data, and add charts.xlsxLets your agent read, create, and edit Excel workbooks, including formulas, formatting, charts, and messy data clean-up.Frequently asked questions
Is it free and open source?
It is released under the MIT License. The readme does not mention any price for the server itself.
Does it need Excel installed?
Yes. It drives the real Excel application through its COM API, so Excel 2016 or later must be installed.
Does it work on Mac or Linux?
No. It requires Windows and is not intended for Linux, macOS or server-side use.
Which AI tools can use it?
GitHub Copilot, Claude, ChatGPT and other agents that support MCP. There is also a command line version, excelcli, for agents that can run terminal commands.
Does it keep my workbook features?
Because Excel does the work, PivotTables, charts, macros, the Data Model and formatting are preserved.
How many tools does it have?
The readme lists 64 MCP tools across 33 feature areas, covering 437 operations.
If it does not work
- βΊCheck that you are on Windows with Excel 2016 or later and that you are logged in to an interactive desktop session.
- βΊFollow the installation guide for your client at excelmcpserver.dev, then restart the client fully.
- βΊSee the troubleshooting page at excelmcpserver.dev/troubleshooting if it will not connect.
5 new skills a week. 1 minute to read.