mcp-name: io.github.sbroenne/mcp-server-excel

NuGet NuGet Downloads GitHub

Control Excel with Natural Language through AI assistants like GitHub Copilot, Claude, and ChatGPT. This MCP server enables AI-powered Excel automation for Power Query, DAX measures, VBA macros, PivotTables, Charts, and more.

โžก๏ธ Learn more and see examples

๐Ÿ›ก๏ธ 100% Safe - Uses Excelโ€™s Native COM API

Unlike third-party libraries that manipulate .xlsx files (risking corruption), ExcelMcp uses Excelโ€™s official COM automation API. This guarantees zero risk of file corruption while you work interactively with live Excel files - see your changes happen in real-time.

๐Ÿ”— Unified Service Architecture - The MCP Server forwards all requests to the shared ExcelMCP Service, enabling CLI and MCP to share sessions transparently.

๐Ÿ“ฆ Unified Package - Includes CLI: This package includes both the MCP Server (mcp-excel) and CLI (excelcli). Install once, get both tools! For advanced users who prefer command-line scripting, the CLI interface supports RPA workflows, CI/CD pipelines, and batch automation. CLI has 15 command categories with 214 operations matching the MCP Server (23 tools with 214 operations).

Requirements: Windows OS + Excel 2016+

๐Ÿš€ Installation

Quick Setup Options:

  1. VS Code Extension - One-click install for GitHub Copilot
  2. Manual Install - Works with Claude Desktop, Cursor, Cline, Windsurf, and other MCP clients
  3. MCP Registry - Find us at registry.modelcontextprotocol.io

Manual Installation (All MCP Clients):

Requires .NET 10 Runtime or SDK

## Install unified package (includes MCP Server + CLI)
dotnet tool install --global Sbroenne.ExcelMcp.McpServer

## Both tools are now available:
## - mcp-excel (MCP Server for AI assistants)
## - excelcli (CLI for coding agents and scripting)

Supported AI Assistants:

๐Ÿ“– Detailed setup instructions: Installation Guide

๐ŸŽฏ Quick config examples: examples/mcp-configs/

๐Ÿ› ๏ธ What You Can Do

23 specialized tools with 214 operations:

๐Ÿ“š Complete Feature Reference โ†’ - Detailed documentation of all 214 operations

AI-Powered Workflows:


๐Ÿ’ก Example Use Cases

โ€œCreate a sales tracker with Date, Product, Quantity, Unit Price, and Total columnsโ€
โ†’ AI creates the workbook, adds headers, enters sample data, and builds formulas

โ€œCreate a PivotTable from this data showing total sales by Product, then add a chartโ€
โ†’ AI creates PivotTable, configures fields, and adds a linked visualization

โ€œImport products.csv with Power Query, load to Data Model, create a Total Revenue measureโ€
โ†’ AI imports data, adds to Power Pivot, and creates DAX measures for analysis

โ€œCreate a slicer for the Region field so I can filter interactivelyโ€
โ†’ AI adds slicers connected to PivotTables or Tables for point-and-click filtering

โ€œPut this data in A1: Name, Age / Alice, 30 / Bob, 25โ€
โ†’ AI writes data directly to cells using natural delimiters you provide


๐Ÿ“‹ Additional Resources

License: MIT
Privacy: PRIVACY.md
Platform: Windows only (requires Excel 2016+)
Support: GitHub Issues