What it is
excel-mcp-server by haris-musa is a community MCP server for .xlsx, .xlsm, .xltx and .xltm files. It reads, writes, formats and builds charts and PivotTables through a Python library, not through Excel itself.
- Maintainer
- Communityharis-musa on GitHub (individual account, community project)
- Source
- haris-musa/excel-mcp-server4,406 GitHub stars · MIT licence
- Transport
- stdio, HTTP (localhost by default)
- Packages
- excel-mcp-server pypi · latest 2.3.9 · 271,336 downloads last month
- Latest release
- v2.3.9 2026-12-03
- Public advisories
- 25GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: yes
- Runs code: no
- Network: no
- Sends: no
Overwrites and deletes act on the original file, so keep a copy.
| Tool | What it can do | Notes |
|---|---|---|
read_range | Reads | |
describe_workbook | Reads | |
describe_sheet | Reads | |
export_csv | Writes | |
write_range | Writes, Deletes | Overwrites cells. |
clear_range | Writes, Deletes | |
copy_range | Writes | |
sort_range | Writes | |
create_workbook | Writes | |
import_workbook | Writes | Remote upload. Can create macro workbooks only with `--allow-vba-write`. |
import_csv | Writes | |
delete_sheet | Deletes | |
delete_rows_or_columns | Deletes | |
delete_chart | Deletes | |
delete_pivot_table | Deletes |
46 tools counted in TOOLS.md, which is generated from the tool schemas. The list here is a subset.
Credentials and least privilege
No credential. The access boundary is --allow-dir.
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range. Showing the 12 highest severity of 25, newest first within a level. See the full list on GitHub.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-j98m-w3xp-9f56 · CVE-2026-40576 | Critical | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-server <=0.1.7 | <=0.1.7 | 0.1.8 |
| GHSA-9h7m-8h6c-6jh7 | High | Arbitrary file read/write in stdio mode (no path confinement) and case-sensitive formula denylist bypass | <= 0.1.8 | 1.0.0 |
| GHSA-9r4q-rmpw-qv95 | High | Unbounded Excel Range Formatting Causes Remote DoS | <= 0.1.8 | 1.0.0 |
| GHSA-27w4-5876-h4xq | High | Unbounded Excel Range Processing Denial of Service in excel-mcp-server | <= 0.1.8 | 1.0.0 |
| GHSA-h9g4-ghf5-r372 | High | Stored formula injection via incomplete validation and unvalidated formula sinks | <= 0.1.8 | 1.0.0 |
| GHSA-vx23-x2cw-j2pq | High | Formula Injection via write_data_to_excel and Case-Insensitive Blocklist Bypass | <= 0.1.8 | 1.0.0 |
| GHSA-rqj5-pgwc-mwjx | Moderate | Upload scanner bypass stores prohibited Excel external-data carriers | >= 2.0.0, <= 2.3.4 | 2.3.5 |
| GHSA-v993-rc79-g9xf | Moderate | Calculator work-limit undercounts array work, so one trace_formula or goal_seek call runs unbounded CPU (denial of service) | >= 2.0.0, <= 2.3.2 | 2.3.3 |
| GHSA-gpj4-f8p7-cg2v | Moderate | A workbook with a long shared formula makes loading take time in proportion to formula length times cell count | >= 1.0.0, <= 2.2.7 | 2.2.8 |
| GHSA-g84x-r4rx-gp3v | Moderate | transform_range builds every split piece before the cell limit is applied, so a 1.6 MB workbook costs 2.3 GB of memory on a call the server then refuses | >= 2.0.0, <= 2.2.6 | 2.2.7 |
| GHSA-xw9m-c2v4-2hhq | Moderate | add_slicer/rename_slicer inject unescaped names into DrawingML | >= 2.0.0, <= 2.2.4 | 2.2.5 |
| GHSA-pwqg-v6rw-x2xh | Moderate | create_chart expands up to 1,048,575 series before MAX_SERIES=255 validation (DoS) | >= 2.0.0, <= 2.2.4 | 2.2.5 |
What stands out
- GitHub lists 25 advisories: 1 critical (path traversal, fixed 0.1.8), 5 high, 15 moderate and 4 low.
- The five high ones, fixed in 1.0.0, were about arbitrary file read and write in stdio mode, formula injection and denial of service.
- Later moderate advisories (fixed up to 2.3.5) were about resource limits and an upload scanner bypass.
- The README says without
--allow-dir, any absolute path to an Excel file works.
Safe-install checklist
Install command from the project's docs: uvx excel-mcp-server stdio --allow-dir /path/to/workbooks.
- Pin the version. Use an exact version, not
latest:uvx excel-mcp-server==2.3.9 stdio --allow-dir /path/to/workbooks --read-only. Add --read-only when you only need to read. - Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
- Always pass
--allow-dirwith one folder, and add--read-onlywhen you do not need edits. - Run a current version, and keep
--allow-vba-writeoff. - Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itexcel-mcp-server:{ "permissions": { "deny": [ "mcp__excel-mcp-server__export_csv", "mcp__excel-mcp-server__write_range", "mcp__excel-mcp-server__clear_range", "mcp__excel-mcp-server__copy_range", "mcp__excel-mcp-server__sort_range", "mcp__excel-mcp-server__create_workbook", "mcp__excel-mcp-server__import_workbook", "mcp__excel-mcp-server__import_csv" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Excel MCP server do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data. Overwrites and deletes act on the original file, so keep a copy.
Does Excel MCP server need a token or API key?
No credential. The access boundary is `--allow-dir`.
Has Excel MCP server had public security advisories?
Yes. 25 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep Excel MCP server from changing under me?
Pin the version, for example uvx excel-mcp-server==2.3.9 stdio --allow-dir /path/to/workbooks --read-only. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
