Sbroenne.ExcelMcp.McpServer
1.8.30
{ "servers": { "Sbroenne.ExcelMcp.McpServer": { "type": "stdio", "command": "dnx", "args": ["Sbroenne.ExcelMcp.McpServer@1.8.30", "--yes"] } } }
.vscode/mcp.json settings file.
dotnet tool install --global Sbroenne.ExcelMcp.McpServer --version 1.8.30
dotnet new tool-manifest
dotnet tool install --local Sbroenne.ExcelMcp.McpServer --version 1.8.30
#tool dotnet:?package=Sbroenne.ExcelMcp.McpServer&version=1.8.30
nuke :add-package Sbroenne.ExcelMcp.McpServer --version 1.8.30
ExcelMcp - Model Context Protocol Server for Excel
mcp-name: io.github.sbroenne/mcp-server-excel
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.
CLI also available: The MCP Server tool (mcp-excel) and CLI tool (excelcli) are published as separate .NET tools. Install Sbroenne.ExcelMcp.McpServer for MCP clients, and optionally install Sbroenne.ExcelMcp.CLI for scripting/RPA workflows.
Requirements: Windows OS + Excel 2016+
🚀 Installation
Quick Setup Options:
- VS Code Extension - One-click install for GitHub Copilot
- Manual Install - Works with Claude Desktop, Cursor, Cline, Windsurf, and other MCP clients
- MCP Registry - Find us at registry.modelcontextprotocol.io
Manual Installation (All MCP Clients):
Requires .NET 10 Runtime or SDK
# Install MCP Server tool
dotnet tool install --global Sbroenne.ExcelMcp.McpServer
# Optional: install CLI tool separately
dotnet tool install --global Sbroenne.ExcelMcp.CLI
Supported AI Assistants:
- ✅ GitHub Copilot (VS Code, Visual Studio)
- ✅ Claude Desktop
- ✅ Cursor
- ✅ Cline (VS Code Extension)
- ✅ Windsurf
- ✅ Any MCP-compatible client
📖 Detailed setup instructions: Installation Guide
🎯 Quick config examples: examples/mcp-configs/
🛠️ What You Can Do
25 specialized tools with 225 operations:
- 🔄 Power Query (1 tool, 11 ops) - Atomic workflows, M code management, load destinations
- 📊 Data Model/DAX (2 tools, 18 ops) - Measures, relationships, model structure
- 🎨 Excel Tables (2 tools, 27 ops) - Lifecycle, filtering, sorting, structured references
- 📈 PivotTables (3 tools, 30 ops) - Creation, fields, aggregations, calculated members/fields
- 📉 Charts (2 tools, 26 ops) - Create, configure, series, formatting, data labels, trendlines
- 📝 VBA (1 tool, 6 ops) - Modules, execution, version control
- 📋 Ranges (4 tools, 42 ops) - Values, formulas, formatting, validation, protection
- 📄 Worksheets (2 tools, 16 ops) - Lifecycle, colors, visibility, cross-workbook moves
- 🔌 Connections (1 tool, 9 ops) - OLEDB/ODBC management and refresh
- 🏷️ Named Ranges (1 tool, 6 ops) - Parameters and configuration
- 📁 Files (1 tool, 6 ops) - Session management, workbook creation, IRM/AIP-protected file support
- 🧮 Calculation Mode (1 tool, 3 ops) - Get/set calculation mode and trigger recalculation
- 🎚️ Slicers (1 tool, 8 ops) - Interactive filtering for PivotTables and Tables
- 🎨 Conditional Formatting (1 tool, 2 ops) - Rules and clearing
- 📸 Screenshot (1 tool, 2 ops) - Capture ranges/sheets as PNG for visual verification
- 🪧 Window Management (1 tool, 9 ops) - Show/hide Excel, arrange, position, status bar feedback
📚 Complete Feature Reference → - Detailed documentation of all 225 operations
AI-Powered Workflows:
- 💬 Natural language Excel commands through GitHub Copilot, Claude, or ChatGPT
- 🔄 Optimize Power Query M code for performance and readability
- 📊 Build complex DAX measures with AI guidance
- 📋 Automate repetitive data transformations and formatting
- 👀 Show Excel Mode - Say "Show me Excel while you work" to watch changes live
💡 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
- GitHub Repository - Source code, issues, discussions
- Installation Guide - Detailed setup for all platforms
- VS Code Extension - One-click installation
- CLI Documentation - Comprehensive commands for RPA and CI/CD automation
License: MIT
Privacy: PRIVACY.md
Platform: Windows only (requires Excel 2016+)
Support: GitHub Issues
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.8.30 | 69 | 3/13/2026 |
| 1.8.29 | 56 | 3/12/2026 |
| 1.8.28 | 110 | 3/10/2026 |
| 1.8.27 | 151 | 3/9/2026 |
| 1.8.26 | 164 | 3/6/2026 |
| 1.8.25 | 175 | 3/3/2026 |
| 1.8.24 | 164 | 3/2/2026 |
| 1.8.23 | 177 | 2/28/2026 |
| 1.8.22 | 156 | 2/28/2026 |
| 1.8.21 | 174 | 2/27/2026 |
| 1.8.20 | 172 | 2/27/2026 |
| 1.8.19 | 188 | 2/26/2026 |
| 1.8.18 | 166 | 2/26/2026 |
| 1.8.17 | 110 | 2/25/2026 |
| 1.8.16 | 199 | 2/24/2026 |
| 1.8.15 | 167 | 2/23/2026 |
| 1.8.14 | 175 | 2/23/2026 |
| 1.8.13 | 178 | 2/23/2026 |
| 1.8.12 | 136 | 2/22/2026 |
| 1.8.11 | 186 | 2/22/2026 |
See https://github.com/sbroenne/mcp-server-excel/releases for release notes