MCP Office Excel

io.github.dosev-ai由 GitHub 账号 dosev-ai 发布v0.7.0更新于 Oct 25, 2026

65-tool Excel MCP server. Read, write, format, and export .xlsx files. Windows-first.

概览

AI 生成的概览

一个本地 Windows MCP 服务器,为助手提供 65 个工具,用于读取、写入、格式化、校验和导出 Excel .xlsx 工作簿。

可以做什么
读取和查看工作簿内容,每次调用返回的行数可配置(默认 50)。在启用写入模式后写入单元格、创建工作表并应用格式。通过 COM 工具重新计算工作簿、导出 PDF、填充模板、创建数据透视表和计算公式。作为受管控的 Office 自动化套件的一部分,校验并导出 Excel 文件。
适用场景
适用于在 Windows 上处理 .xlsx 文件,并希望助手通过结构化工具调用查看、编辑、格式化或导出表格,而不是手工操作。适合需要将文件访问限制在指定目录的开发者式 Office 自动化场景。
运行要求
在 Windows 10 或 11 上以 stdio 本地进程运行,需要 Python 3.11 或更高版本,从 mcp-office 包安装。必须设置 EXCEL_ALLOWLIST_ROOTS,列出服务器可访问的目录。写入操作需将 EXCEL_ENABLE_WRITE 设为 true。COM 工具需将 EXCEL_ENABLE_COM 设为 true,并需要 pywin32 和本地安装的 Microsoft Excel。还需要 Claude Desktop 或 VS Code Copilot 等 MCP 客户端。
安装前请注意
写入操作会修改工作簿文件,仅在设置 EXCEL_ENABLE_WRITE 后启用;应尽量缩小允许访问的目录范围。COM 工具会驱动本地安装的 Excel,仅限 Windows。README 提醒 PyPI 上名为 excelmcp 的包是无关的第三方包,不应安装;套件包是 mcp-office。文件保留在本地,但 MCP 客户端和模型可能有各自的数据处理边界。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MCP Office Excel,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCP Office

Local-first, governed MCP servers for Microsoft Office — built for developers who want to treat Office files the way they treat code.

[License: MIT] [Python 3.11+] [CI] [PyPI] [UAT]


What is this?

MCP Office is a suite of Model Context Protocol servers that expose Microsoft Office capabilities as governed, deterministic tool calls. Each server runs locally on Windows, connects to your MCP client (Claude Desktop, VS Code Copilot, or any MCP-compatible client), and gives you structured control over Office files — without an in-app AI assistant.

This is not a Copilot replacement. It is a developer-first execution layer for Office automation.


Packages

✅ Available now

PackageWhat it doesInstallTools
excelmcpRead, write, style, validate, and export Excel workbookspip install mcp-office65
pptmcpBuild, edit, review, and export PowerPoint presentations. Output Contract framework for machine-verifiable slide specspip install mcp-office51
wordmcpTemplate assembly, tracked-changes support, and structural QA for Word documentspip install mcp-office50

🚧 Coming next

PackageStatus
mailmcpIntegrated into the current source distribution; Windows Outlook UAT and published-artifact verification pending

MailMCP is now included in the repository's single mcp-office source distribution, but the currently published PyPI artifact does not yet claim MailMCP availability. See mailmcp/README.md for source validation while Windows Outlook UAT and release verification remain open.

New packages are added as they complete their proof cycle. See ROADMAP.md.


Quick start

Prerequisites

  • Windows 10 or 11
  • Python 3.11 or later (python --version)
  • Claude Desktop or VS Code with GitHub Copilot
  • Microsoft Office (Excel / PowerPoint / Word) — required for COM-backed tools (styling, PDF export, tracked-changes)
  • Classic Microsoft Outlook desktop — required for MailMCP

Install

PyPI note: excelmcp on PyPI is an unrelated third-party package. Do not pip install excelmcp — that ships you a stranger's code. The published suite package is mcp-office.

bash
pip install mcp-office

Or clone and install the consolidated suite from source (including MailMCP and Windows COM support):

bash
git clone https://github.com/dosev-ai/mcp-office.gitcd mcp-officepython -m venv .venv.venv\Scripts\activatepython -m pip install -e ".[com]"

Configure Claude Desktop

Open %APPDATA%\Claude\claude_desktop_config.json (create it if it doesn't exist) and add the servers you installed:

json
{  "mcpServers": {    "excel-excelmcp": {      "command": "python",      "args": ["-m", "excelmcp.server"],      "env": {        "EXCEL_ALLOWLIST_ROOTS": "C:\\path\\to\\your\\files",        "EXCEL_ENABLE_WRITE": "true"      }    },    "powerpoint-pptmcp": {      "command": "python",      "args": ["-m", "pptmcp.server"],      "env": {        "PPT_ALLOWLIST_ROOTS": "C:\\path\\to\\your\\files",        "PPT_ENABLE_WRITE": "true"      }    },    "word-wordmcp": {      "command": "python",      "args": ["-m", "wordmcp.server"],      "env": {        "WORD_ALLOWLIST_ROOTS": "C:\\path\\to\\your\\files",        "WORD_ENABLE_WRITE": "true"      }    }  }}

Replace C:\\path\\to\\your\\files with the directory where your Office files live. Restart Claude Desktop after saving.

Verify

In Claude Desktop, send:

Call capabilities() on excel-excelmcpCall capabilities() on powerpoint-pptmcpCall capabilities() on word-wordmcp

Each should return a tool list (65 for Excel, 51 for PowerPoint, 50 for Word). If a server is missing, check that python resolves to the venv where you installed mcp-office.

Full per-package guides: excelmcp/README.md · pptmcp/README.md · wordmcp/README.md · mailmcp/README.md (source-integrated; release pending)

Detailed step-by-step: docs/quickstart.md


Requirements

RequirementNotes
Windows 10 or 11COM automation requires Windows
Python 3.11+python --version to confirm
Microsoft OfficeRequired for COM-dependent tools (styling, PDF export, tracked-changes). Read-only docx/xlsx/pptx tools work without Office.
Classic Outlook desktopRequired for MailMCP. MailMCP remains release-pending until Windows Outlook UAT and published-artifact verification pass.
MCP clientClaude Desktop or VS Code with Copilot

Architecture

Your MCP client (Claude Desktop / VS Code Copilot / other)        │        │  MCP stdio protocol        ↓  MCP Office servers (local Python processes)   ├─ excelmcp    — Excel automation (live)   ├─ pptmcp      — PowerPoint automation (live)   ├─ wordmcp     — Word automation (live)   └─ mailmcp     — Outlook automation (source-integrated; release pending)        │        │  COM / Outlook COM / openpyxl / python-pptx / python-docx        ↓  Microsoft Office (local installation)

Each server is a standalone local stdio MCP process. MCP Office does not add a hosted service; Microsoft Office and your MCP client/model may still have their own sync and data-handling boundaries.


Contributing

This project is in active development. The best way to contribute right now:

  1. Try any package (excelmcp, pptmcp, wordmcp) and open a First Run Report
  2. Report bugs via GitHub Issues
  3. Ask questions or share what you built in GitHub Discussions

See CONTRIBUTING.md for development guidelines.


License

MIT — see LICENSE.

来源:README.md,提交 d8f84dd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.7.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分