# ExcelMcp

> Drives desktop Excel on Windows: refresh Power Query, build pivot tables and charts, evaluate DAX and run VBA while keeping existing formulas and formatting, so finance and admin staff can automate existing reports. Needs Windows, Excel 2016+ and Node.js; no macOS.

- Type: MCP
- Repository: https://github.com/sbroenne/mcp-server-excel
- Page: https://hebbmind.com/ko/mcp/mcp-server-excel
- Stars: 959
- Professions: [Data analysis](https://hebbmind.com/ko/tools.md?profession=data), [Admin / Office](https://hebbmind.com/ko/tools.md?profession=office), [Finance / Accounting](https://hebbmind.com/ko/tools.md?profession=finance), [Investing / Analysis](https://hebbmind.com/ko/tools.md?profession=investment)
- Tags: spreadsheets, financial-analysis, data-analysis, excel, windows
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
claude mcp add excel-mcp -- npx -y @sbroenne/mcp-server-excel
```

### Codex

```bash
codex mcp add excel-mcp -- npx -y @sbroenne/mcp-server-excel
```

## README

> The content below comes from the upstream repository https://github.com/sbroenne/mcp-server-excel . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

# ExcelMcp - MCP Server for Microsoft Excel

[![VS Code Marketplace Installs](https://vsmarketplacebadges.dev/installs-short/sbroenne.excel-mcp.svg?label=VS%20Code%20Installs)](https://marketplace.visualstudio.com/items?itemName=sbroenne.excel-mcp)
[![Downloads](https://img.shields.io/github/downloads/sbroenne/mcp-server-excel/total?label=GitHub%20Downloads)](https://github.com/sbroenne/mcp-server-excel/releases)

[![CI Gate](https://github.com/sbroenne/mcp-server-excel/actions/workflows/ci.yml/badge.svg)](https://github.com/sbroenne/mcp-server-excel/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/release/sbroenne/mcp-server-excel)](https://github.com/sbroenne/mcp-server-excel/releases/latest)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![.NET](https://img.shields.io/badge/.NET-10-blue.svg)](https://dotnet.microsoft.com/download/dotnet/10.0)
[![Platform](https://img.shields.io/badge/platform-Windows-lightgrey.svg)](https://github.com/sbroenne/mcp-server-excel)
[![Built with Copilot](https://img.shields.io/badge/Built%20with-GitHub%20Copilot-0366d6.svg)](https://copilot.github.com/)

[**Website**](https://excelmcpserver.dev/) ·
[**Installation**](https://excelmcpserver.dev/installation/) ·
[**Features**](https://excelmcpserver.dev/features/) ·
[**Troubleshooting**](https://excelmcpserver.dev/troubleshooting/) ·
[**2-minute demo**](https://youtu.be/wbw3-hPcE2o)

**Automate real Microsoft Excel with AI.** Excel MCP Server lets GitHub Copilot,
Claude, ChatGPT, and other agents control Excel through natural-language
requests—using either MCP or a token-efficient CLI.

Unlike file-parser tools, ExcelMcp drives the **actual Excel application** through
its official COM API. It can refresh Power Query, recalculate formulas, evaluate
DAX, run VBA and Python `=PY()`, and preserve PivotTables, charts, macros, the
Data Model, and workbook formatting.

**64 MCP tools across 33 feature areas, with 437 operations**, cover end-to-end Excel automation.

> [!IMPORTANT]
> Requires **Windows**, **Microsoft Excel 2016 or later**, and an interactive
> desktop. It is not intended for Linux, macOS, or server-side batch processing.

## 🚀 Get Started

| Use case | Recommended path |
|---|---|
| **VS Code** | [Install the extension](https://marketplace.visualstudio.com/items?itemName=sbroenne.excel-mcp) |
| **Claude Desktop or another MCP client** | [Install the MCP Server](https://excelmcpserver.dev/installation-mcp-server/) |
| **Coding agents (fewer AI tokens)** | [Install the CLI](https://excelmcpserver.dev/installation-cli/) |
| **Not sure which to choose?** | [Read the installation overview](https://excelmcpserver.dev/installation/) |

For **GitHub Copilot CLI**, install either plugin from the
[Awesome Copilot Excel listings](https://github.com/github/awesome-copilot/blob/main/plugins/external.json):

```powershell
copilot plugin install excel-mcp@awesome-copilot
# Or, for command-line Excel automation:
copilot plugin install excel-cli@awesome-copilot
```

For a workbook already open in Excel, use discovery and attachment to keep
working in that workbook. Excel determines whether newly opened files are read-only.

## What You Can Automate

- **[Data & analytics](https://excelmcpserver.dev/features/data-analytics/):**
  Power Query, DAX, Power Pivot, Excel Tables, PivotTables, and data connections.
- **[Cells & workbooks](https://excelmcpserver.dev/features/cells-workbooks/):**
  ranges, formulas, formatting, worksheets, files, calculation, and named ranges.
- **[Charts & visuals](https://excelmcpserver.dev/features/charts-visuals/):**
  charts, slicers, conditional formatting, screenshots, drawings, and sparklines.
- **[Automation & advanced](https://excelmcpserver.dev/features/automation-advanced/):**
  VBA, Python in Excel, Goal Seek, scenarios, data tables, windows, and XML Maps.

Explore the [capabilities behind all 437 operations](https://excelmcpserver.dev/features/).
Current command details come from CLI help or the MCP tool descriptions.

## See It in Action

[![A sales table, regional summary, and chart created in the real Excel application by Excel MCP Server](https://excelmcpserver.dev/assets/images/excel-demo-table-chart.png)](https://excelmcpserver.dev/use-cases/)

Ask in plain language:

- *"Import products.csv with Power Query and load it to the Data Model."*
- *"Create a PivotTable showing revenue by region, then add a column chart."*
- *"Use Goal Seek to find the price that produces $100,000 profit."*
- *"Show me Excel while you work."*

Because Excel performs the work, you can inspect results live and continue editing
the workbook normally.

[See more examples and use cases](https://excelmcpserver.dev/use-cases/).

## MCP Server or CLI?

Both entry points expose the same Excel commands and behavior, so the choice is
technical. Coding agents can use either one.

| Interface | Works with | Why |
|---|---|---|
| **MCP Server** | Any MCP-compatible client | Tool discovery and persistent sessions |
| **CLI (`excelcli`)** | Agents that can run terminal commands | Built-in help without loading MCP tool definitions, usually with fewer AI tokens |

Both entry points run Excel commands in separate worker processes, so a blocked
Excel operation does not block their basic controls. The CLI also keeps a
background service running so workbook sessions persist across commands.

```text
AI assistant or script
        │
   MCP Server / CLI
        │
 Shared Excel commands
        │
 Real Excel COM API
```

[Read the architecture](https://github.com/sbroenne/mcp-server-excel/blob/HEAD/docs/ARCHITECTURE.md) or browse the
[MCP Server](https://excelmcpserver.dev/mcp-server/) and
[CLI](https://excelmcpserver.dev/cli/) guides.

## ⭐ GitHub Star History

[![GitHub stars over time for ExcelMcp](https://excelmcpserver.dev/assets/images/star-history.svg)](https://github.com/sbroenne/mcp-server-excel/stargazers)

## 📋 Additional Information

[Documentation](https://excelmcpserver.dev/) ·
[Changelog](https://excelmcpserver.dev/changelog/) ·
[Contributing](https://excelmcpserver.dev/contributing/) ·
[Security](https://excelmcpserver.dev/security/) ·
[Privacy](https://excelmcpserver.dev/privacy/)

**License:** MIT License - see [LICENSE](https://github.com/sbroenne/mcp-server-excel/blob/HEAD/LICENSE) file

## Related Projects

Other projects by the author:

- [PowerPoint MCP Server](https://powerpointmcpserver.dev/) — AI-powered PowerPoint automation via MCP, the sister project to this one
- [pytest-skill-engineering](https://github.com/sbroenne/pytest-skill-engineering) — LLM-powered testing framework for AI agents
- [Windows MCP Server](https://windowsmcpserver.dev/) — AI-powered Windows automation via MCP
- [OBS Studio MCP Server](https://github.com/sbroenne/mcp-server-obs) — AI-powered OBS Studio automation

