SM

sbroenne/mcp-server-excel

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

834 stars 101 forks 质量 69 趋势 43MIT

通过MCP服务器或CLI自动化真实的Microsoft Excel——Power Query、DAX、VBA、数据透视表、图表和326操作。

概览

— 一款模型上下文协议(MCP)服务器,用于通过对话式人工智能实现全面的Excel自动化。 使 AI 助手(GitHub Copilot、Claude、ChatGPT 等)能够通过自然语言命令自动化 Excel。自动化 Power Query、DAX 测量、VBA 宏、数据透视表、图表、格式化和数据转换(26 个工具,232 个操作)。 —— ExcelMcp通过其官方COM接口驱动实际的Excel应用程序,因此它能完成文件解析工具无法做到的事:运行实时操作(刷新Power Query、重新计算、刷新透视表和数据模型、评估DAX、运行VBA和Python =PY()),并编辑你现有的工作簿,保留所有公式、透视表、图表、宏和格式。 - 在Excel中即时查看结果。创建查询,运行,检查输出,进行优化,然后重复。Excel成为你快速开发和测试的AI驱动工作空间。 - 工具行为通过真实的LLM工作流验证,使用pytest-skill-engineering。

概述(AI 翻译)

网站 · 安装 · 特色 · 排查故障 · 2分钟演示

用AI自动化真实的Microsoft Excel。 Excel MCP服务器允许GitHub Copilot, Claude、ChatGPT 及其他代理通过自然语言控制 Excel 请求——使用MCP或高效的令牌CLI。

与文件解析器工具不同,ExcelMcp 驱动实际的 Excel 应用程序 它的官方COM接口。它可以刷新Power Query、重新计算公式、评估 DAX,运行VBA和Python =PY(),并保留数据透视表、图表、宏等 数据模型和工作簿格式化。

63个MCP工具,涵盖33个功能领域,424个操作,涵盖端到端的Excel自动化。

[!重要] 需要 Windows、Microsoft Excel 2016 或更高版本以及交互式 桌面。它不适用于Linux、macOS或服务器端批处理。

🚀 开始

使用场景 推荐路径
VS 代码 安装扩展
Claude桌面或其他MCP客户端 安装MCP服务器
**编码代理(减少AI令牌)**安装CLI
不确定选哪一个? 阅读安装概览

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.

63 MCP tools across 33 feature areas, with 429 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
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →