Skip to content

What Is Excel MCP Server? Having Your Assistant Write Excel Files: Setup, Which Files It Touches and Pricing

When you work with spreadsheets, the assistant often suggests a formula or code but can't prepare the file itself. Excel MCP Server gives the assistant permission to read and write the Excel files on your computer directly; it works even if the Excel program isn't installed. You say "import sales.csv, add a summary table of monthly totals by category and a chart"; the assistant builds the .xlsx file and you open it in Excel. In Claude Desktop it installs as a single package and can be limited to touch only the folder you point it at.

What it does
Lets the assistant create and edit .xlsx files
Type
MCP server (runs on your computer)
Made by
Community (Haris Musa, MIT)
What it writes
Formulas, charts, PivotTables, tables, formatting
Where
Claude Desktop, Claude Code, Cursor, VS Code, Codex, Gemini CLI
Watch out
It changes files; limit the folder, keep a backup
Cost
Free (MIT)

What Is Excel MCP Server For?

When you tell an AI assistant "summarize these sales", the answer usually stays in the chat; you don't end up with a worked Excel file. Excel MCP Server closes that gap: the assistant works not in its chat box but in an .xlsx file on your computer. It writes data, adds formulas, builds tables, creates charts and PivotTables, and brings in CSV files. When the file is opened in Excel, it is an ordinary workbook. MCP is the standard for connecting AI programs to external tools.

Who it helps: accounting, operations and e-commerce teams that build a formatted report every week from a marketplace or accounting export; people who want to find a formula error or reach a target value; developers building automations that produce files. Old .xls files aren't supported; only .xlsx, .xlsm, .xltx and .xltm.

How Does It Work? A Bridge Between the Assistant and Your Files

The server is a small program that runs on your computer from the moment you open the assistant. The assistant makes tool calls such as "read this file", "write to this range", "add a chart"; the program changes the workbook directly on the file with the openpyxl library. The Excel program isn't needed.

You"Build a report from the CSV"
AssistantAn MCP-capable assistant
Excel MCP ServerOn your computer, in the allowed folder
.xlsxOpens in Excel

It all happens on your computer; the README describes no telemetry or outbound data. If the assistant itself uses a cloud model, the content it reads from the file goes to that model.

The server provides 46 tools (48 when macro writing is turned on with a flag). The assistant picks which to call based on the job:

AreaTools
Workbookscreate_workbook, describe_workbook, list_workbooks, export_workbook, import_workbook
CSVimport_csv, export_csv
Sheetsdescribe_sheet, create_sheet, rename_sheet, copy_sheet, delete_sheet, insert_rows_or_columns, delete_rows_or_columns
Cellsread_range, write_range, clear_range, copy_range, sort_range, transform_range, find_cells, replace_cells
Formulastrace_formula, goal_seek
Formattingformat_range, merge_cells, set_sheet_layout, add_conditional_format, add_data_validation
Objectsset_table, create_chart, create_pivot_table, add_slicer, insert_image, add_sparklines
Names and notesset_defined_name, set_note
Macrosread_vba

Formulas: they are stored in the file as formulas and Excel calculates them when it opens the file. To see a result before Excel opens, the server has a calculator for 479 functions; a result Excel saved is always preferred. A formula it can't calculate isn't filled in with a guess: it is returned empty (null) with the reason listed.

How Do You Use Excel MCP Server? What You Type and What You Get

After installing, write the request in a natural sentence and name the file or its place in the folder. The prompts below are derived from the tool and usage descriptions in the README; their outputs are described only as far as the docs describe them.

A report with PivotTable and chart from a CSV"Import orders.csv into the "Data" sheet of monthly-report.xlsx (dates are in day-month-year order). Add a PivotTable that gives monthly sales totals by product category and put a line chart below it. Save the file as monthly-report.xlsx."
monthly-report.xlsxSheet "Data": rows imported from the CSVSheet "Summary": PivotTable (category × month, total)Line chart: monthly total, by category

What you get: a new .xlsx file in a folder on your computer. The README says the PivotTable is a real PivotTable, not a picture, and that Excel can refresh it; stating the order in the prompt (day-month-year) matters for reading dates correctly, because numeric dates are read only in the order you name. The preview is an illustrative summary of the file's structure.

Find why a formula comes out wrong"In cost.xlsx, why does the "Total profit" cell come out wrong? Trace the cells it depends on across sheets, evaluate the formula step by step and find the error."

What you get: a trace of the cells the formula depends on and the cells that depend on it across sheets, names and tables, and a step-by-step evaluation like Excel's Evaluate Formula; the assistant reads it and names the faulty cell. The trace_formula tool does the tracing.

Reaching a target value (goal seek)"In cost.xlsx, let the profit be 100,000. What should the discount rate cell (Settings!B2) be? Find it with goal seek and write the value into that cell."

What you get: an input cell set to the value at which the formula reaches the value you want. The README notes the answer is stored only when it converges within 0.001 of the target (as Excel does); on a formula it can't calculate, goal_seek refuses.

Conditional color and a dropdown"In orders.xlsx, color the rows that say "Pending" in the Status column red. Add a dropdown to the Payment column with the options Paid, Pending, Cancelled."

What you get: a conditional formatting rule and data validation (a dropdown) in the file. Both appear in Excel as ordinary rules and you can edit them.

Make a copy before working on an important file. The server doesn't silently overwrite an existing file (the docs say so), but there is no undo that stops you changing a table wrongly; telling the assistant to "save to a new file" first is the safest.

How Do You Install Excel MCP Server?

In Claude Desktop it installs as a single package (no uv needed); in other clients, with the uvx command. uvx is the command of uv, a program that runs Python tools without installing them; you install uv from astral.sh. With --allow-dir you choose the folder the server may use; replace /path/to/workbooks below with your own folder. The commands are taken from the README and excelmcpserver.com.

  1. Download the excel-mcp-server.mcpb package from the GitHub releases page (for a pinned version, excel-mcp-server-2.3.3.mcpb).
  2. Open the downloaded file with Claude Desktop.
  3. Claude asks which folder the server may use; choose the folder where your workbooks live.

To install it by hand, Settings then Developer then Edit Config opens claude_desktop_config.json; add the JSON below and restart Claude. Desktop apps may not find uvx because they don't see your shell's PATH: write the full path printed by which uvx (where uvx on Windows).

To check that it is installed, tell the assistant "list the workbooks in the allowed folder with the excel tool"; the assistant should show the files in the folder with list_workbooks.

Settings for Safer Use

The server's defaults don't limit it to a single folder; you add the settings to the install line as flags. The main settings in the README:

FlagWhat it does
--allow-dir DIROpens workbooks only in this folder (subfolders included); can be repeated. Without it, the absolute path of any Excel file on the computer works.
--read-onlyOffers only the tools that don't change files.
--allow-vba-writeAdds the macro write and delete tools and also turns on creating and importing .xlsm and .xltm workbooks. Off by default; the server never runs a macro.
--tools AREASOffers only the core tools and the areas listed (for example data,charts); it exists to shorten tool descriptions, which take up context in every request.
--max-file-mb N / --max-cells NDefault 100 MB and 100,000 cells per call; on large files, reads come in pages.

Which Programs Does Excel MCP Server Work With?

Claude DesktopYesA one-click package (.mcpb); a manual configuration route too.
Claude CodeYesThe claude mcp add command; it also works in the Code tab in Claude Desktop.
CursorYesAn mcp.json line and a one-click install button.
VS Code (GitHub Copilot)Yes.vscode/mcp.json; in Copilot Chat in agent mode.
Codex, Gemini CLI, Devin DesktopYesThe README gives a command for each.
claude.ai (web), ChatGPTUnclearThe README lists only desktop and command-line clients; there is no separate description for the web. Its HTTP mode (streamable-http) needs a token and a TLS-terminating reverse proxy to be reached from other computers; the README doesn't separately describe connecting claude.ai on the web or ChatGPT.

"Not in the docs" doesn't mean it doesn't work. The list was compiled from the client descriptions in the README and excelmcpserver.com.

Accents, Dates and Decimal Commas

The README doesn't mention Turkish separately; its behavior with a Turkish-language Excel isn't in the docs. For working with data from Turkey, the CSV import and export settings, which are written in the docs, matter:

TopicWhat the docs say
EncodingOn import, UTF-8 (with or without a BOM), UTF-16 and cp1252 are read.
Decimal commaThe decimal setting reads numbers with a decimal comma.
Day-month-year datesNumeric dates such as 01/02/2026 are read only in the order you name with date_order (dmy or mdy).
Accented lettersSo that Excel shows accented letters when it opens a UTF-8 CSV by double-click, use encoding: utf-8-sig when exporting.

Is Excel MCP Server Free?

Yes. The program is open source and MIT-licensed; there is no account, key or paid tier. The real cost is the assistant itself: the plan for Claude, Cursor or Codex is separate, and the server works within that plan's usage allowance. No price appears on the official pages.

Allowed
  • The MIT license: using, modifying and distributing are allowed; you can use it on commercial work files too
Not allowed
  • The software is provided "as is"; there is no warranty. You need to check the correctness of the files it produces (formulas, PivotTable totals)

Source: the README and LICENSE. This isn't legal advice.

What Does Excel MCP Server Access, and Where Does Data Go?

Which files it accesses

Only Excel files (.xlsx, .xlsm, .xltx, .xltm) and the CSVs you import. With --allow-dir, only that folder and its subfolders; without it, the absolute path of any Excel file on the computer works. Network and device paths (UNC) are rejected in every mode.

Data that leaves

The README describes no telemetry or outbound data; the server runs on your computer and the HTTP mode listens only on this computer by default. Formula functions that reach the network (WEBSERVICE, RTD, CALL…) and references to other workbooks are rejected. If the assistant uses a cloud model, the content it reads from the file goes to that model.

It changes files

It creates and changes workbooks; saves never leave a half-written file and it doesn't silently overwrite an existing file. It can read macro code; writing it needs --allow-vba-write (which also turns on creating and importing .xlsm and .xltm files) and it never runs a macro.

Cell contents are untrusted data

The server tells the model not to follow instructions it finds in cells; even so, a file from an outside source can contain text written as if it were a command to the assistant. Review what the assistant does with a file you don't trust.

Security advisories

Because it receives security fixes often, pin the version and watch for new ones; the reporting route is in SECURITY.md.

Turn on macro writing (--allow-vba-write) only for work you trust: if the assistant is misled by a file whose contents you don't trust, it could write harmful macro code.

This isn't a security certification. Fixed advisories are listed on GitHub's security advisories page (November 22, 2026).

Common Problems and Limits

What's happeningWhat to do
The desktop app can't find uvxDesktop apps don't see your shell's PATH (common on macOS). Write the full path printed by which uvx into the configuration.
Old 1.x prompts or clients stopped working2.0 changed tool and parameter names. The "Upgrading from 1.x" table in the CHANGELOG gives the replacement for every old name.
A formula's result comes back empty (null)The built-in calculator can't calculate that function or case (circular reference, unsupported function); the uncalculated list gives the reason. Opening the file in Excel calculates it.
An .xls file won't openThe old .xls format isn't supported. Save the file as .xlsx in Excel, or convert it to CSV and use import_csv.
A call is refused on a very large fileDefault limits are a 100 MB file and 100,000 cells per call; reads come in pages. They are adjusted with --max-file-mb and --max-cells; a PivotTable source is at most 3,000,000 cells.
PivotTable figures changed in ExcelA PivotTable is built from a snapshot and Excel refreshes it from the live source; the README says the figures written are the ones Excel shows after a refresh. Items that tie when sorted by value may swap places on refresh.

How Do You Uninstall Excel MCP Server?

  1. In Claude Code: claude mcp remove excel.
  2. In Claude Desktop: Remove the .mcpb package from the app's extension settings; if you configured it by hand, delete the excel entry from the claude_desktop_config.json file and restart Claude.
  3. In Cursor, VS Code and others: Delete the excel entry from the configuration file and restart the client.
  4. Files: The .xlsx files the assistant created stay in the folder when you uninstall; delete them by hand if you wish.

How Is It Different from Claude for Excel?

The two tools work in different places. Claude for Excel is an add-in installed inside Excel: it works in the open workbook while Excel is open. Excel MCP Server reads and writes the file directly without opening Excel at all; it suits batch jobs, automation and machines without Excel installed. One handles the session inside Excel, the other the files in a folder; there is no ranking comparing the quality of the work they do.

Claude for Excel: the Claude add-in that works inside Excel

Frequently asked questions

What is Excel MCP Server and what is it for?

An open-source MCP server that lets the assistant read and write the Excel files on your computer directly: data, formulas, tables, charts, PivotTables and CSV import. It works even if the Excel program isn't installed.

How do I install Excel MCP Server in Claude Desktop?

Download the excel-mcp-server.mcpb package from the GitHub releases page, open it with Claude Desktop; Claude asks which folder the server may use. This route doesn't need uv.

Is Excel MCP Server free?

Yes, open source under the MIT license; no account, key or paid tier. The assistant's own plan (Claude, Cursor, Codex) is separate.

Can Excel MCP Server write macros (VBA)?

It reads macro code. The write and delete tools turn on only with the --allow-vba-write flag, and the server never runs a macro; Excel asks you before enabling macros.

Which files does Excel MCP Server touch, and does my data leave?

Only Excel files and the CSVs you import; --allow-dir limits it to one folder. The README describes no telemetry or outbound data. If the assistant uses a cloud model, the content it reads from the file goes to that model.

What is the difference between Excel MCP Server and Claude for Excel?

Claude for Excel is an add-in that works in the open workbook inside Excel. Excel MCP Server reads and writes the file directly without opening Excel; it suits batch jobs and automation.

Does Excel MCP Server work with .xls files?

No. The old .xls format isn't supported; only .xlsx, .xlsm, .xltx and .xltm. Save an .xls file as .xlsx in Excel, or convert it to CSV and import it.

Related guides

Sources

Not clear in the official sources: Its behavior with a Turkish-language Excel · use in claude.ai on the web or in ChatGPT (the README lists only desktop and command-line clients) · any separate test or statement for Turkish. Each is covered in the relevant section along with what you can do.