sbroenne/mcp-server-excel

Automate real Microsoft Excel with AI via MCP Server or CLI — Power Query, DAX, VBA, PivotTables, and charts.

What it solves

Excel MCP Server solves the problem of automating real Microsoft Excel workbooks without losing fidelity. File-parser tools can only read or write spreadsheet files, but they cannot handle Excel's advanced features like Power Query, DAX formulas, VBA macros, or Python =PY() cells. This server drives the actual Excel application through its official COM API, so every operation preserves PivotTables, charts, macros, the Data Model, and formatting.

How it works

The server exposes two entry points that share the same underlying Excel commands: an MCP Server for any MCP-compatible client, and a CLI (excelcli) for agents that can run terminal commands. Both translate natural-language requests into Excel COM API calls. Commands run in separate worker processes, so a blocked Excel operation does not block the server's basic controls. The CLI also keeps a background service running so workbook sessions persist across commands. The AI assistant sends a request, the server executes it against the live Excel application, and the user can inspect results in real time.

Who it’s for

This is for developers and power users who want AI assistants like GitHub Copilot, Claude, ChatGPT, or other MCP-compatible agents to automate Excel workbooks. It requires Windows, Microsoft Excel 2016 or later, and an interactive desktop session. It is not intended for Linux, macOS, or server-side batch processing.

Highlights

  • 64 MCP tools across 33 feature areas, covering 437 operations for end-to-end Excel automation
  • Drives the actual Excel application via its official COM API, preserving all workbook features
  • Supports Power Query, DAX, Power Pivot, Excel Tables, PivotTables, charts, slicers, conditional formatting, VBA, Python in Excel, Goal Seek, scenarios, and more
  • Works with any MCP-compatible client, plus a token-efficient CLI for coding agents
  • Both entry points run commands in separate worker processes to avoid blocking
  • The CLI keeps a background service for persistent workbook sessions across commands
  • MIT-licensed and available as a VS Code extension, MCP server, or CLI

Related

  • Project
  • Project
  • Project
  • Project
  • Project