
ExcelMcp
MCP在 Windows 上直接驱动本机 Excel:刷新 Power Query、做透视表和图表、计算 DAX、运行 VBA,并保留原有公式与格式,适合财务和行政在现有报表上自动整理数据。需要 Windows、Excel 2016 以上和 Node.js,不支持 macOS。
ExcelMcp - MCP Server for Microsoft Excel
Website · Installation · Features · Troubleshooting · 2-minute demo
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 |
| Claude Desktop or another MCP client | Install the MCP Server |
| Coding agents (fewer AI tokens) | Install the CLI |
| Not sure which to choose? | Read the installation overview |
For GitHub Copilot CLI, install either plugin from the Awesome Copilot Excel listings:
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: Power Query, DAX, Power Pivot, Excel Tables, PivotTables, and data connections.
- Cells & workbooks: ranges, formulas, formatting, worksheets, files, calculation, and named ranges.
- Charts & visuals: charts, slicers, conditional formatting, screenshots, drawings, and sparklines.
- Automation & advanced: VBA, Python in Excel, Goal Seek, scenarios, data tables, windows, and XML Maps.
Explore the capabilities behind all 437 operations. Current command details come from CLI help or the MCP tool descriptions.
See It in Action
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.
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.
AI assistant or script
│
MCP Server / CLI
│
Shared Excel commands
│
Real Excel COM API
Read the architecture or browse the MCP Server and CLI guides.
⭐ GitHub Star History
📋 Additional Information
Documentation · Changelog · Contributing · Security · Privacy
License: MIT License - see LICENSE file
Related Projects
Other projects by the author:
- PowerPoint MCP Server — AI-powered PowerPoint automation via MCP, the sister project to this one
- pytest-skill-engineering — LLM-powered testing framework for AI agents
- Windows MCP Server — AI-powered Windows automation via MCP
- OBS Studio MCP Server — AI-powered OBS Studio automation
相关资源

Excel MCP Server
MCP无需安装 Microsoft Excel 即可创建、读取和修改 xlsx 工作簿:支持公式、格式与条件格式、图表、透视表和表格,可本地 stdio 运行,也可作为远程 HTTP 服务。
haris-musa/excel-mcp-server4.4k
XLSX
Skill创建、编辑与分析 Excel 表格:公式、格式、图表与数据清洗,也能在 csv、tsv 等表格格式间转换。驱动 Claude 文档能力的 Anthropic 官方技能,源码可见但非开源。
anthropics/skills203k
clean-data-xls
SkillAnthropic 官方技能,把系统导出的杂乱 Excel 表格整理干净:去空格、统一大小写和日期格式、文本型数字转数值、去重,并标出混合类型列、乱码与错误值。默认用辅助列公式保留原数据,改动前先列方案、分步确认。可在 Excel 的 Claude 插件里用,处理本地 .xlsx 需 Python 环境。
anthropics/financial-services41.6k
audit-xls
SkillAnthropic 官方金融技能,帮财务和分析师检查 Excel:找出 #REF! 等公式错误、写死在公式里的数字、漏行的求和范围和单位混用;检查整个模型时还核对资产负债表是否平衡、现金是否勾稽。只列问题清单和修改建议,改动前会先询问,结果需专业人员复核。
anthropics/financial-services41.6k
minimax-xlsx
SkillMiniMax 官方 Excel 技能:读取分析、新建、修改和校验 xlsx 表格,修复出错的公式。改已有文件时直接编辑底层结构,保留原有格式、公式与透视表;计算结果都写成公式,并按财务建模惯例用颜色区分输入值和公式,适合做预算表和财务模型。需要本地 Python(pandas),另装 LibreOffice 可重算公式。
MiniMax-AI/skills13.9k
Camelot
CLI从 PDF 中抽取表格的开源工具,自带 camelot 命令行,可把财报、银行对账单、统计报表里的表格导出为 Excel、CSV 或 Markdown,并给出识别准确度。需要 Python 3.10+;默认只处理能选中文字的 PDF,扫描件需另装 ml 与 ocr 扩展;结果建议人工核对。
camelot-dev/camelot3.9k
