Skip to content

Menu

Microsoft Excel MCP Server logo

Microsoft Excel MCP Server

Published · Updated

At a glance

GitHub repository
sbroenne/mcp-server-excel
Watch out for
Windows only, with desktop Excel 2016 or later and an interactive session.

ExcelMcp by Stefan Broenner is a community MCP server that controls the real Microsoft Excel application rather than parsing .xlsx files. It drives Excel through its official COM automation interface, which is why it can do things file-based tools cannot: refresh Power Query queries, recalculate formulas, work with the data model and DAX, and run VBA.

The range is large: the README counts 437 operations across 33 feature areas, exposed through 64 MCP tools. They fall into four areas. First is data and analytics (Power Query, DAX, Power Pivot, Excel Tables, PivotTables and data connections). Next come cells and workbooks (ranges, formulas, formatting, worksheets, calculation and named ranges). Then charts and visuals (charts, slicers, conditional formatting, sparklines and screenshots), and automation (VBA, Python in Excel, Goal Seek, scenarios and data tables). It can also be used as a command-line tool, which its author describes as more token-efficient for coding agents.

The requirement that comes with this approach is strict: it needs Windows, Microsoft Excel 2016 or later and an interactive desktop session. It does not work on Linux or macOS, and it is not meant for server-side batch processing. If you need to read or write .xlsx files on any platform, a file-based library is the better tool; this server is for automating Excel itself.

How it connects

Your AI app

An assistant or agent that supports MCP

Microsoft Excel MCP Server

Gives the agent

  • Data and analytics
  • Cells and workbooks
  • Charts and visuals
  • Automation
  • MCP or CLI

Microsoft Excel

The data or system the tools act on

Your AI app talks to Microsoft Excel MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Data and analytics
Power Query, DAX, Power Pivot, Excel Tables, PivotTables and data connections, including refreshing queries.
Cells and workbooks
Ranges, formulas, formatting, worksheets, named ranges and recalculation.
Charts and visuals
Charts, slicers, conditional formatting, sparklines and screenshots of sheets.
Automation
VBA, Python in Excel, Goal Seek, scenarios and data tables.
MCP or CLI
Use it as an MCP server or as the excelcli command-line tool, which usually uses fewer tokens.

Setting it up

On a Windows machine with Excel 2016 or later, VS Code users can install the ExcelMcp extension from the Marketplace. For Claude Desktop or another MCP client, follow the installation guide at excelmcpserver.dev, which covers installing the server and adding it to your client's config. Excel runs visibly in your desktop session while the agent works. Keep backups of important workbooks, since the agent can change formulas, data and VBA.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Refreshing Power Query data and rebuilding a PivotTable report
  • Adding formulas, formatting and charts to a workbook from a description
  • Writing or fixing VBA macros in a workbook
  • Running Goal Seek or scenario analysis on a financial model

Limitations and things to watch

  • Windows only, with desktop Excel 2016 or later and an interactive session.
  • Not suitable for servers or batch processing, as the README states.
  • The agent can run VBA and change workbooks; work on copies of important files.
  • A community project, not a Microsoft product.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…