by haris-musa
Excel MCP server: let AI (Claude, Cursor, Codex) create and edit Excel files with charts, PivotTables, slicers and formulas. No Excel required.
# Add to your Claude Code skills
git clone https://github.com/haris-musa/excel-mcp-serverGuides for using mcp servers skills like excel-mcp-server.
Last scanned: 4/21/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-04-21T06:03:02.537Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how excel-mcp-server compares with popular alternatives.
excel-mcp-server is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by haris-musa. Excel MCP server: let AI (Claude, Cursor, Codex) create and edit Excel files with charts, PivotTables, slicers and formulas. No Excel required. It has 4,322 GitHub stars.
Yes. excel-mcp-server passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/haris-musa/excel-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
excel-mcp-server is primarily written in Python. It is open-source under haris-musa on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh excel-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Based on votes and bookmarks from developers who liked this skill
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
An open-source Model Context Protocol (MCP) server that lets
Claude, Cursor, VS Code Copilot, Codex and other AI clients create, read and edit Excel files:
charts, PivotTables, formulas, tables and more. It is built on openpyxl, needs no Microsoft
Excel, and runs on Windows, macOS and Linux.
Install and try it at excelmcpserver.com, or see Quick start below.
Charts and PivotTables
Formulas and dynamic arrays
read_range returns values
for files that were never opened in ExcelFILTER, SORT, UNIQUE, SEQUENCE, LET) are stored as Excel stores
them and spill into the cells next to themData, tables and rules
Large files
Macros (opt-in)
.xlsm files. Writing VBA is off unless you start the server with
--allow-vba-write, which also decides whether create_workbook and import_workbook may
make .xlsm/.xltm files; the server never runs macrosSafe by design
Works with .xlsx, .xlsm (macros are preserved), .xltx and .xltm files. Existing
threaded comments, shapes, form controls and other content the tools cannot edit are kept as
they are.
You need uv. Every client runs the
server with uvx excel-mcp-server stdio; replace /path/to/workbooks with the folder the
server may use. excelmcpserver.com has the same steps with copy
buttons and one-click install links for Cursor and VS Code.
Claude Desktop (Chat): download
excel-mcp-server.mcpb
from the latest release and open it. Claude asks which folder the server may use.
Claude Code (the CLI, and the Code tab in Claude Desktop):
claude mcp add excel --scope user -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
Cursor (~/.cursor/mcp.json), and most clients that use an mcpServers config:
{
"mcpServers": {
"excel": {
"command": "uvx",
"args": ["excel-mcp-server", "stdio", "--allow-dir", "/path/to/workbooks"]
}
}
}
VS Code with GitHub Copilot (.vscode/mcp.json, note the servers key):
{
"servers": {
"excel": {
"type": "stdio",
"command": "uvx",
"args": ["excel-mcp-server", "stdio", "--allow-dir", "${workspaceFolder}"]
}
}
}
OpenAI Codex (CLI, IDE extension and app):
codex mcp add excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
Gemini CLI:
gemini mcp add -s user excel uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
Devin Desktop:
devin mcp add -s user excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
Claude Desktop, manual setup: open Settings, Developer, Edit Config, add the mcpServers
JSON above to claude_desktop_config.json, and restart Claude.
Desktop apps often cannot find uvx, because they do not see your shell's PATH (common
on macOS). Use its full path instead, which which uvx prints.
With --allow-dir DIR, the server only opens workbooks inside DIR (subfolders included)
and relative paths such as reports/q1.xlsx start there. Repeat the flag to allow several
folders, or set EXCEL_FILES_PATH (separate folders with : on macOS/Linux and ; on
Windows).
Without --allow-dir, any absolute path to an Excel file works. In every mode the server
only touches Excel files and never silently overwrites an existing workbook.
uvx excel-mcp-server streamable-http --allow-dir /srv/workbooks
Clients connect to http://127.0.0.1:8017/mcp. Workbooks live in the --allow-dir folder
(default ./excel_files), and export_workbook / import_workbook move files between the
server and the client.
The server listens on localhost only. To accept other machines, set a token and a host:
EXCEL_MCP_AUTH_TOKEN=change-me uvx excel-mcp-server streamable-http --host 0.0.0.0
Clients then send Authorization: Bearer change-me. Put a TLS-terminating reverse proxy in
front of it for use across networks.
docker build -t excel-mcp-server .
docker run -p 8017:8017 -v "$PWD/workbooks:/data" -e EXCEL_MCP_AUTH_TOKEN=change-me excel-mcp-server
| Flag | Environment variable | Default | Meaning |
|---|---|---|---|
--allow-dir DIR |
EXCEL_FILES_PATH |
none (stdio), ./excel_files (HTTP) |
Folders workbooks must be in |
--read-only |
EXCEL_MCP_READ_ONLY=1 |
off | Only offer tools that do not change files |
--allow-vba-write |
EXCEL_MCP_ALLOW_VBA_WRITE=1 |
off | Add tools that write VBA macros (see warning below); ignored with --read-only |
--tools AREAS |
EXCEL_MCP_TOOLS |
all | Only offer the core tools and these comma-separated areas, to save context (see Choosing tools) |
--max-file-mb N |
EXCEL_MCP_MAX_FILE_MB |
100 |
Largest workbook the server opens. Also sets the unpacked-size limit (10 times this) that every opened or uploaded workbook must stay under; parts compressed over 500:1 are refused |
--max-cells N |
EXCEL_MCP_MAX_CELLS |
100000 |
Most cells one call may read, write or format; reads are still returned in pages; also bounds text to 256 characters per cell on average |
--max-pivot-cells N |
EXCEL_MCP_MAX_PIVOT_CELLS |
3000000 |
Largest PivotTable source in cells (a 230,000-row, 13-column sheet); creating one from the biggest sources takes a minute and about 2 GB of memory |
--max-loaded-cells N |
EXCEL_MCP_MAX_LOADED_CELLS |
3000000 |
Most cells and rows of a workbook that may be loaded into memory at once, about 0.5 KB each (a 3,000,000 limit is about 1.5 GB). A workbook with more is refused by the tools that must load whole sheets; read_range and the other streaming reads, and edits of large sheets that parse only some rows, are not limited by the size of the sheet. It also limits, to 128 characters per cell, the formula text that shared formulas expand to |
--log-level LEVEL |
WARNING |
Logging on stderr | |
--host HOST |
EXCEL_MCP_HOST |
127.0.0.1 |
HTTP listen address |
--port PORT |
EXCEL_MCP_PORT |
8017 |
HTTP po |