PTS security notes / MCP servers / Excel MCP server

Is Excel MCP server safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It can read and rewrite any workbook it can reach. Without --allow-dir, any absolute path to an Excel file works. It has --read-only and an opt-in --allow-vba-write flag, and the README says it never runs macros. GitHub lists 25 advisories, one critical, all with fixes up to 2.3.5. Use --allow-dir and --read-only, on a current version.

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.

Overwrites and deletes act on the original file, so keep a copy.

ToolWhat it can doNotes
read_rangeReads
describe_workbookReads
describe_sheetReads
export_csvWrites
write_rangeWrites, DeletesOverwrites cells.
clear_rangeWrites, Deletes
copy_rangeWrites
sort_rangeWrites
create_workbookWrites
import_workbookWritesRemote upload. Can create macro workbooks only with `--allow-vba-write`.
import_csvWrites
delete_sheetDeletes
delete_rows_or_columnsDeletes
delete_chartDeletes
delete_pivot_tableDeletes

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.

AdvisorySeveritySummaryAffectedFixed in
GHSA-j98m-w3xp-9f56 · CVE-2026-40576CriticalImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-server <=0.1.7<=0.1.70.1.8
GHSA-9h7m-8h6c-6jh7HighArbitrary file read/write in stdio mode (no path confinement) and case-sensitive formula denylist bypass<= 0.1.81.0.0
GHSA-9r4q-rmpw-qv95HighUnbounded Excel Range Formatting Causes Remote DoS<= 0.1.81.0.0
GHSA-27w4-5876-h4xqHighUnbounded Excel Range Processing Denial of Service in excel-mcp-server<= 0.1.81.0.0
GHSA-h9g4-ghf5-r372HighStored formula injection via incomplete validation and unvalidated formula sinks<= 0.1.81.0.0
GHSA-vx23-x2cw-j2pqHighFormula Injection via write_data_to_excel and Case-Insensitive Blocklist Bypass<= 0.1.81.0.0
GHSA-rqj5-pgwc-mwjxModerateUpload scanner bypass stores prohibited Excel external-data carriers>= 2.0.0, <= 2.3.42.3.5
GHSA-v993-rc79-g9xfModerateCalculator work-limit undercounts array work, so one trace_formula or goal_seek call runs unbounded CPU (denial of service)>= 2.0.0, <= 2.3.22.3.3
GHSA-gpj4-f8p7-cg2vModerateA workbook with a long shared formula makes loading take time in proportion to formula length times cell count>= 1.0.0, <= 2.2.72.2.8
GHSA-g84x-r4rx-gp3vModeratetransform_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.62.2.7
GHSA-xw9m-c2v4-2hhqModerateadd_slicer/rename_slicer inject unescaped names into DrawingML>= 2.0.0, <= 2.2.42.2.5
GHSA-pwqg-v6rw-x2xhModeratecreate_chart expands up to 1,048,575 series before MAX_SERIES=255 validation (DoS)>= 2.0.0, <= 2.2.42.2.5

What stands out

Safe-install checklist

Install command from the project's docs: uvx excel-mcp-server stdio --allow-dir /path/to/workbooks.

  1. 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.
  2. Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
  3. Always pass --allow-dir with one folder, and add --read-only when you do not need edits.
  4. Run a current version, and keep --allow-vba-write off.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it excel-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"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages