MCP Catalogs
首页

mcp-server-excel

by sbroenne·157·综合分 50

通过COM API提供23个工具和214个操作的Excel自动化MCP服务器。

developer-toolsproductivityai-llm
29
Forks
7
活跃 Issue
本月
最近提交
2 天前
收录于

概述

ExcelMcp是一个全面的模型上下文协议(MCP)服务器,使AI助手能够通过自然语言命令自动执行Microsoft Excel操作。它使用Excel的原生COM API安全地直接控制Excel应用程序,而不是直接操作XLSX文件。该项目提供MCP服务器和CLI两种接口,共有25个专业工具,涵盖Power Query、DAX、Excel表格、数据透视表、图表、VBA、范围、工作表、连接、命名范围、文件、计算模式、切片器、条件格式、截图和窗口管理。两种接口共享相同的后端服务,确保功能一致性,同时针对不同使用场景进行优化。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:数据分析师通过AI助手自动执行重复性Excel工作流程
:开发人员构建基于Excel的AI驱动数据解决方案
:业务用户使用自然语言命令管理复杂的Excel工作簿
:这兼容Mac或Linux吗?
:我可以将其用于服务器端自动化吗?

什么时候选它

如果您需要在Windows上进行AI驱动的Excel自动化,具有广泛的数据分析、报告和工作簿管理功能,请选择此MCP服务器。

什么时候不要选它

如果您使用Linux/macOS,需要服务器端处理,或者需要在没有Excel安装的情况下进行大批量操作,请避免使用此服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • power_query

    Atomic workflows, M code management, load destinations for Power Query

  • data_model_dax

    Create and manage DAX measures, relationships, and model structure

  • excel_tables

    Manage Excel tables including filtering, sorting, and structured references

  • pivot_tables

    Create and manage PivotTables including fields, aggregations, and calculated members

  • charts

    Create and configure charts including series, formatting, and data labels

  • range

    Get/set values, formulas, formatting, validation, and protection for ranges

  • worksheets

    Manage worksheets including lifecycle, colors, visibility, and moves

  • connections

    Manage OLEDB/ODBC connections and refresh data sources

  • named_ranges

    Create and manage named ranges for parameters and configuration

  • files

    Manage session, workbook creation, and IRM/AIP-protected file support

  • slicers

    Create and manage slicers for interactive filtering of PivotTables and Tables

  • screenshot

    Capture ranges or sheets as PNG for visual verification

可对比工具

openpyxl-mcpexcel-online-api-mcpsheet-mcpgoogle-sheets-mcp

安装

安装选项

**VS Code扩展(推荐)** 从[VS Code市场](https://marketplace.visualstudio.com/items?itemName=sbroenne.excel-mcp)安装

**Claude Desktop** 从[最新版本](https://github.com/sbroenne/mcp-server-excel/releases/latest)下载.mcpb文件

**其他MCP客户端** 从发布页下载mcp-excel.exe并添加到PATH

Claude Desktop配置

添加到您的Claude Desktop配置文件(config.json):

{
  "mcpServers": {
    "excel": {
      "command": "path/to/mcp-excel.exe",
      "args": []
    }
  }
}

**注意:**使用前请关闭所有Excel文件。服务器在自动化期间需要独占工作簿访问权限。

FAQ

这兼容Mac或Linux吗?
不兼容,由于使用COM互操作,这仅适用于Windows。需要安装Microsoft Excel。
我可以将其用于服务器端自动化吗?
不可以,这是为安装并运行Excel的桌面环境设计的。对于服务器端处理,请使用与Excel兼容的库,如ClosedXML或EPPlus。

mcp-server-excel 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。