What is the MCP Office Excel MCP server?
65-tool Excel MCP server. Read, write, format, and export .xlsx files. Windows-first.
How to install MCP Office Excel
Copy-paste configuration for popular MCP clients.
transport: stdio
Config generated by PluginBench — verify against the source before use.Environment / auth
EXCEL_ALLOWLIST_ROOTSrequiredComma-separated directory roots allowed for file access. Required — no files are accessible without this.
EXCEL_ENABLE_WRITESet to 'true' to enable write operations (cell writes, sheet creation, formatting).
EXCEL_ENABLE_COMSet to 'true' to activate COM-backed tools: recalculate_workbook, export_as_pdf, hydrate_template, pivot_table, and evaluate_formula(live=True). Windows-only — requires pywin32 and Microsoft Excel.
EXCEL_MAX_ITEMSMaximum number of rows/items returned per call. Default: 50.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-office-excel": {
"command": "uvx",
"args": [
"mcp-office",
"--from",
"mcp-office",
"excelmcp"
],
"env": {
"EXCEL_ALLOWLIST_ROOTS": "<YOUR_EXCEL_ALLOWLIST_ROOTS>",
"EXCEL_ENABLE_WRITE": "<YOUR_EXCEL_ENABLE_WRITE>",
"EXCEL_ENABLE_COM": "<YOUR_EXCEL_ENABLE_COM>",
"EXCEL_MAX_ITEMS": "<YOUR_EXCEL_MAX_ITEMS>"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-office-excel": {
"command": "uvx",
"args": [
"mcp-office",
"--from",
"mcp-office",
"excelmcp"
],
"env": {
"EXCEL_ALLOWLIST_ROOTS": "<YOUR_EXCEL_ALLOWLIST_ROOTS>",
"EXCEL_ENABLE_WRITE": "<YOUR_EXCEL_ENABLE_WRITE>",
"EXCEL_ENABLE_COM": "<YOUR_EXCEL_ENABLE_COM>",
"EXCEL_MAX_ITEMS": "<YOUR_EXCEL_MAX_ITEMS>"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-office-excel": {
"command": "uvx",
"args": [
"mcp-office",
"--from",
"mcp-office",
"excelmcp"
],
"env": {
"EXCEL_ALLOWLIST_ROOTS": "<YOUR_EXCEL_ALLOWLIST_ROOTS>",
"EXCEL_ENABLE_WRITE": "<YOUR_EXCEL_ENABLE_WRITE>",
"EXCEL_ENABLE_COM": "<YOUR_EXCEL_ENABLE_COM>",
"EXCEL_MAX_ITEMS": "<YOUR_EXCEL_MAX_ITEMS>"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"mcp-office-excel": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-office",
"--from",
"mcp-office",
"excelmcp"
],
"env": {
"EXCEL_ALLOWLIST_ROOTS": "<YOUR_EXCEL_ALLOWLIST_ROOTS>",
"EXCEL_ENABLE_WRITE": "<YOUR_EXCEL_ENABLE_WRITE>",
"EXCEL_ENABLE_COM": "<YOUR_EXCEL_ENABLE_COM>",
"EXCEL_MAX_ITEMS": "<YOUR_EXCEL_MAX_ITEMS>"
}
}
}
}Claude Code
claude mcp add mcp-office-excel --env EXCEL_ALLOWLIST_ROOTS=<YOUR_EXCEL_ALLOWLIST_ROOTS> --env EXCEL_ENABLE_WRITE=<YOUR_EXCEL_ENABLE_WRITE> --env EXCEL_ENABLE_COM=<YOUR_EXCEL_ENABLE_COM> --env EXCEL_MAX_ITEMS=<YOUR_EXCEL_MAX_ITEMS> -- uvx mcp-office --from mcp-office excelmcpRelated MCP servers
MCP Office PowerPoint
Active
46-tool PowerPoint MCP server. Build, edit, and export .pptx files. Windows-first.
3
View repository →Python
MIT
MCP Office Word
Active
50-tool Word MCP server. Document assembly, tracked changes, and export. Windows-first.
3
View repository →Python
MIT