sbroenne/mcp-server-excel
COM-backed MCP and CLI for editing and analyzing Excel workbooks in desktop Excel
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
ExcelMcp is a C# automation stack with two entry points: an MCP server for tool discovery and persistent sessions, and excelcli for terminal-based agents. Both dispatch to a shared Excel command layer, which drives the installed Microsoft Excel application through its official COM API. Excel performs workbook calculations and modifications; neither entry point substitutes a file parser for the application.
Both entry points execute Excel commands in separate worker processes, keeping basic controls responsive if an Excel operation blocks. The CLI additionally runs a background service to retain workbook sessions across shell invocations. An agent can also discover and attach to a workbook already open in Excel. The C# solution lives in Sbroenne.ExcelMcp.sln; the root package.json is for Changesets tooling, not a Node.js server runtime.
Key Capabilities & Differentiators
The MCP surface comprises 64 tools across 33 feature areas and 437 operations, with the same Excel functionality available through the CLI. The analysis workflow can span Power Query refreshes, data connections, DAX evaluation, Power Pivot, and PivotTables. For workbook editing, the interfaces cover cells, formulas, named ranges, formatting, charts, slicers, and conditional formatting, with calculation delegated to Excel itself.
Using the application directly also lets agents preserve features such as macros, charts, PivotTables, and the Data Model while editing an existing workbook. Beyond editing, the stack can run VBA and Python in Excel (=PY()) and use facilities such as Goal Seek and scenarios. The Windows and Excel version baseline establishes where the automation can run; it does not guarantee that every advanced feature is available in every Excel installation.
Trade-offs & Limitations
Compared with a cross-platform workbook file library, COM automation buys access to Excel's calculation engine and application-level objects. That matters when a workflow must refresh a query, preserve a Data Model, or update a PivotTable in an existing workbook. For routine cell reads and writes, a file library avoids the desktop dependency and is a better fit for unattended jobs. Excel also determines whether a newly opened workbook is read-only, so write access is not guaranteed by the automation layer.
Within ExcelMcp, choose MCP for client-native tool discovery and the CLI when an agent can consult built-in help on demand instead of loading MCP tool definitions. The latter can reduce token use, but it does not change how Excel performs the work. Worker isolation protects basic controls from a blocked operation; it does not make Excel a headless service. The MIT license covers ExcelMcp, not the required Excel installation.
Hardware & Deployment Guide
Self-host on a Windows machine with Microsoft Excel 2016 or later and an interactive desktop. Use the VS Code extension for VS Code, the MCP server for a client such as Claude Desktop, or excelcli for an agent with shell access. GitHub Copilot CLI also has plugin paths for both interfaces. Plan the deployment around the desktop Excel session, not a Linux container or an unattended server job.
Capacity planning should focus on the Excel workload: try representative workbooks, query refreshes, recalculations, and overlapping sessions before choosing a host size. The v2.6.11–v2.6.13 release series consistently presents MCP and CLI as functionally equivalent and describes lower CLI token usage as workload-dependent. Local workbook execution is separate from the network requirements of the AI client and any workbook data connections.
excelcli exposes the same Excel functionality.Windows-based analysts and coding agents that need to refresh Power Query, update PivotTables, or edit existing workbooks without losing Excel-specific features, with results inspectable in the desktop application.
The workload must run unattended, the target is Linux or macOS, or the job only needs basic file reads and writes without an installed copy of Excel.
Quick Start & Installation
copilot plugin install excel-mcp@awesome-copilot
# Or, for command-line Excel automation:
copilot plugin install excel-cli@awesome-copilotComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mcp-server-excel ★ | 983 | +14 | C# | MIT | COM-backed MCP and CLI for editing and analyzing Excel workbooks in desktop Exce |
| claude-code-best-practice | 69.6k | +191 | HTML | MIT | Claude Code playbook for agent orchestration and cross-model review |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| skills | 338.7k | +4.4k | Shell | MIT | Composable Markdown skills that bring engineering workflows to coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/sbroenne/mcp-server-excel.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mcp-server-excel
Should I connect my agent over MCP or use `excelcli`?
excelcli when the agent can run shell commands and look up usage through built-in help. Both interfaces expose the same Excel operations; the CLI can use fewer AI tokens, but the difference depends on the task, model, and client.What hardware should I provision, and does ExcelMcp need a GPU?
Can we self-host it commercially and keep workbook data local?
When is this a better fit than a library that edits spreadsheet files directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy