Excel MCP Server
Lets your AI agent create and edit Excel files with charts, PivotTables and formulas, without Excel installed.
4.3k stars on GitHubby Haris MusaLicense MITUpdated 19 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 -- uvx excel-mcp-server stdio
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Open sales.xlsx and add a column chart of revenue by month.
Create a PivotTable that sums amount by region from the Data sheet.
What it is
This server lets your agent open, read and write Excel workbooks directly. It can build charts, PivotTables, tables and formulas, and apply formatting. It does not need Microsoft Excel and runs on Windows, macOS and Linux.
What it can do
create_workbook: start a new workbookread_rangeandwrite_range: read and write cellscreate_chart: build column, bar, line, pie and other chartscreate_pivot_table: make real PivotTablesformat_range: fonts, fills, borders and number formatsadd_conditional_formatandadd_data_validation: rules and dropdownsfind_cellsandreplace_cells: search and replaceimport_csvandexport_csv: move data to and from CSV
When to use
- βΊWhen you want a report spreadsheet built from raw data with charts.
- βΊWhen you need to clean, sort or filter a large sheet without opening Excel.
- βΊWhen a number looks wrong and you want to trace which cells feed a formula.
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.
xlsxHelps your agent create, read, edit, clean up, recalculate and convert Excel .xlsx spreadsheets and CSV files, including formulas.officecli-xlsxHelps your agent create, read and edit Excel files, including formulas, charts, pivot tables and CSV imports.xlsxHelps your agent create and edit Excel and CSV spreadsheets with formulas and formatting, analyze the data, and add charts.Frequently asked questions
Is it free and open source?
Yes. It is an open-source project built on openpyxl.
Do I need Microsoft Excel?
No. Formulas are calculated by a built-in engine, so values can be read from files never opened in Excel.
Which file types work?
It works with .xlsx, .xlsm, .xltx and .xltm files. Macros are preserved.
Can it run macros?
No. It can read VBA code in .xlsm files, and writing VBA is off unless you start it with --allow-vba-write. The server never runs macros.
Can I limit which files it opens?
Yes. Use --allow-dir to limit it to chosen folders, or --read-only to only offer tools that do not change files.
How does it handle large files?
Reads stream the workbook and return pages. The default limit is a 100 MB file and 100,000 cells per call, which you can change.
If it does not work
- βΊIf a desktop app cannot find
uvx, use its full path fromwhich uvxin the config. - βΊMake sure the file is inside the folder you allowed with
--allow-dir. - βΊRestart your AI client after changing the config.
5 new skills a week. 1 minute to read.