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 分