原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Microsoft Office

作者:mindstone版本 0.3.0i★ –i在你的电脑上运行
注册名称io.github.mindstone/mcp-server-office

安装

概览

作者提供的说明(英文原文)

Microsoft Office MCP server: read and edit Word documents, Excel workbooks, and PowerPoint files

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公
  • 你需要填写:MCP_OFFICE_SIDECAR_STATE

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MCP_OFFICE_SIDECAR_STATE, MCP_OFFICE_SIDECAR_DISABLE, REBEL_DISABLE_OFFICE_SIDECAR, MCP_OFFICE_SIDECAR_STATE_DIR, MCP_OFFICE_ADDIN_DIR

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "your-value",
        "MCP_OFFICE_SIDECAR_DISABLE": "your-value",
        "REBEL_DISABLE_OFFICE_SIDECAR": "your-value",
        "MCP_OFFICE_SIDECAR_STATE_DIR": "your-value",
        "MCP_OFFICE_ADDIN_DIR": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add office --env MCP_OFFICE_SIDECAR_STATE=your-value --env MCP_OFFICE_SIDECAR_DISABLE=your-value --env REBEL_DISABLE_OFFICE_SIDECAR=your-value --env MCP_OFFICE_SIDECAR_STATE_DIR=your-value --env MCP_OFFICE_ADDIN_DIR=your-value -- npx -y @mindstone/mcp-server-office

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "your-value",
        "MCP_OFFICE_SIDECAR_DISABLE": "your-value",
        "REBEL_DISABLE_OFFICE_SIDECAR": "your-value",
        "MCP_OFFICE_SIDECAR_STATE_DIR": "your-value",
        "MCP_OFFICE_ADDIN_DIR": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "office": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "your-value",
        "MCP_OFFICE_SIDECAR_DISABLE": "your-value",
        "REBEL_DISABLE_OFFICE_SIDECAR": "your-value",
        "MCP_OFFICE_SIDECAR_STATE_DIR": "your-value",
        "MCP_OFFICE_ADDIN_DIR": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MCP_OFFICE_SIDECAR_STATE 必填 env
    Absolute path to sidecar state file (host-managed; sidecar writes port + token here)
  • MCP_OFFICE_SIDECAR_DISABLE env
    Kill-switch — set to 1 to refuse to spawn or talk to the sidecar
  • REBEL_DISABLE_OFFICE_SIDECAR env
    DEPRECATED legacy alias for MCP_OFFICE_SIDECAR_DISABLE — still honored for backward compatibility with v0.1.1 operator-set kill-switches; will be removed in a future major version. Use MCP_OFFICE_SID…
  • MCP_OFFICE_SIDECAR_STATE_DIR env
    Sidecar state directory (certs, per-app manifests). Normally derived from MCP_OFFICE_SIDECAR_STATE; hosts managing the sidecar lifecycle directly can override.
  • MCP_OFFICE_ADDIN_DIR env
    Absolute path to the built add-in static files. Defaults to the package's dist/addin/ directory.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mindstone 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 2192 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2192 个服务器的 24% 更新
  • 基础检查结果等于或优于此分类中其他 2192 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Microsoft Office 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MCP_OFFICE_SIDECAR_STATE

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.0)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT6天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT3天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@mindstone/mcp-server-office

Read and edit Word documents, Excel workbooks, and PowerPoint presentations from desktop Microsoft 365 via an Office Add-in sidecar.

*Desktop-only Office MCP. Edits the Word/Excel/PowerPoint documents the user already has open on macOS or Windows.*

Status

  • Version: 0.3.0 · npm
  • Auth: None (server.json)
  • Tools: 62 (word, excel, powerpoint, setup)
  • Surface: desktop-addin
  • Machine-readable: STATUS.json

Why this exists

At the time we built this, Microsoft did not ship an MCP server for the *desktop* Office apps, and the community options we found either targeted cloud-stored documents through Microsoft Graph or only worked on Windows. We needed something that could edit a Word document, Excel workbook, or PowerPoint deck the user already has open — on both macOS and Windows — with live access to selections, formulas, and tracked changes. This package bundles the MCP server, the small local helper that talks to Office, and the Office Add-in itself into a single npm install, so the three pieces always ship at the same version.

Example interaction

"In the Excel workbook I have open, fill column D with =B*C for each data row and bold the totals row."

Tools the host calls:

  1. rebel_office_excel_set_formula — writes =B *C into each cell in column D.
  2. rebel_office_excel_format_range — applies bold to the totals row range.

What the AI gets back

Every tool, including setup, status and input-validation failures, returns JSON in content[0].text. ok: true means the requested operation completed, including setting a value that already had that value. Successful results carry data; failures carry error and set MCP's isError: true.

{"ok":true,"app":"word","action":"read_document","data":{"paragraphs":[]}}
{"ok":false,"app":"excel","action":"write_range","error":{"code":"READ_ONLY","message":"<untrusted-content source=\"microsoft-office-excel\">The file is read-only.</untrusted-content>","fix":"Ask the user to enable editing or save an editable copy before trying again.","retryable":false}}

app is word, excel, powerpoint, or all for setup and status; action names the tool's operation (setup or status for those tools). Unknown or disabled tools and invalid inputs use INVALID_ARGUMENT (McpError(InvalidParams)); other exceptions thrown by handlers use INTERNAL_ERROR. An unknown tool has app: "office" and action: "unknown".

Error codes, fixes and retry guidance come from a local catalog. Unknown Office codes become UNKNOWN_ERROR. retryable means recovery may permit another attempt; after a timeout, read the current state before repeating an edit, because the edit may already have completed. Messages and all strings in data received from Office or the sidecar stay inside envelopes, with embedded closing tags escaped. App, action, codes and fixes stay outside those envelopes.

Undoing edits

Every successful edit includes an undo sentence, also shown at the end of its tool description. This guidance comes from the connector; previous text and formatting values stay in the enveloped data fields.

On current desktop Word and Excel, and PowerPoint on Windows, each edit uses one writing batch, so the user can undo it with Ctrl+Z (Cmd+Z on Mac). A PowerPoint slide with title, subtitle or body takes two: text, then slide. Deleting an Excel worksheet cannot be undone and clears Excel's undo history.

PowerPoint for Mac cannot reliably undo add-in edits with Cmd+Z. Its undo guidance names the existing tools and returned values to reverse an edit. Read the current state first and ask the user if it has changed since the edit. Deleting shapes or slides and applying layouts cannot be reversed exactly with these tools. Neither can restoring empty text or notes, a non-solid fill, no line, previous dimensions or line width of zero, or text formatting changed by update_text. Restoring previous text does not restore its original mixed formatting. Those limitations are stated in the tool's guidance; confirm with the user first. No undo history is stored by the connector.

For Excel read_range and read_table JSON rows, header-derived object keys are enveloped just like headers, including a column named __proto__. Other result keys that are not plain identifiers are also enveloped, including keys containing spaces, punctuation or closing tags. Word get_properties returns customProperties as an array of { name, value } entries; every name is enveloped, including names that look like identifiers and __proto__.

Word text inserts add all text and paragraph breaks first, then give heading and named styles to the whole paragraph, then add only the requested inline bold or italic, preserving the style's formatting.

Relative placements require their target: afterParagraph needs paragraphIndex, and afterSheet needs afterSheet. A paragraph range needs startParagraph, and a specific tracked-change target needs changeIds. If any requested tracked-change IDs are missing, ITEM_NOT_FOUND lists them before any changes are accepted or rejected.

If the Office connection is turned off for the Rebel installation, tools that start it return CONNECTION_DISABLED with retryable: false. Ask whoever manages the installation to re-enable it; Settings cannot override that decision.

Requirements

  • Node.js 20+
  • npm
  • macOS or Windows with Microsoft 365 Word, Excel, and/or PowerPoint installed
  • First-run admin prompt on Windows to trust the dev certificate (one-time)

On Windows, the helper registers the generated manifest under the current user's HKCU\Software\Microsoft\Office\16.0\WEF\Developer registry key so the add-in appears in Word, Excel and PowerPoint. This registration needs no administrator access. Run rebel_office_setup with action="uninstall" to remove the registration, then restart any open Office apps. On Windows, the add-in stays removed only while the Office connection is turned off in Rebel, because the connector registers it again whenever it starts.

One-click install

After clicking the button, your host will prompt you to fill: MCP_OFFICE_SIDECAR_STATE.

Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (Microsoft Office)

{

"mcpServers": { "Microsoft Office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "" } } } }

Quick Start

Install & build
cd <path-to-repo>/connectors/office

npm install npm run build

npx (once published)
npx -y @mindstone/mcp-server-office
Local
node dist/index.js

Configuration

Environment variables

Read by the stdio MCP server (`dist/index.js`):

  • MCP_OFFICE_SIDECAR_STATE — required. Absolute path to the sidecar state file (JSON). The MCP server reads port and token from this file to talk to the sidecar; the sidecar writes it on startup. The state file's parent directory doubles as the sidecar's state directory (certs, per-app manifests).
  • MCP_OFFICE_SIDECAR_DISABLE — optional kill-switch. When set (1), the MCP server refuses to talk to or spawn the sidecar.

Read by the sidecar (`dist/sidecar/cli.js`) — normally set by the MCP server when it lazy-spawns the sidecar, but documented here for hosts that manage the sidecar lifecycle directly:

  • MCP_OFFICE_SIDECAR_STATE_DIR — required by the sidecar. Directory for the state file, HTTPS certificates, and generated per-app manifests (manifest.word.xml, manifest.excel.xml, manifest.powerpoint.xml). The MCP server derives this from the parent directory of MCP_OFFICE_SIDECAR_STATE and passes it through automatically.
  • MCP_OFFICE_ADDIN_DIR — optional. Absolute path to the built add-in static files (the directory containing taskpane.html, taskpane.js, and assets/). The MCP server sets this to the package's dist/addin/ directory; hosts serving a custom add-in bundle can override it.

Host configuration examples

Claude Desktop / Cursor

The Office connector is designed to be managed by a host application (like Mindstone Rebel) that owns the sidecar lifecycle. Running it directly from Claude Desktop is possible but the host must provide a writable MCP_OFFICE_SIDECAR_STATE path.

{

"mcpServers": { "Office": { "command": "npx", "args": ["-y", "@mindstone/mcp-server-office"], "env": { "MCP_OFFICE_SIDECAR_STATE": "/absolute/path/to/sidecar-state.json" } } } }

Mindstone Rebel
"RebelOffice": {

"name": "RebelOffice", "type": "stdio", "command": "npx", "args": ["-y", "@mindstone/mcp-server-office@0.1.4"], "env": { "MCP_OFFICE_SIDECAR_STATE": "~/Library/Application Support/mindstone-rebel/office-sidecar/sidecar-state.json" }, "description": "Microsoft Office integration — Word, Excel, PowerPoint.", "catalogId": "bundled-office" }

Tools (62)

Setup
  • rebel_office_setup — Install or repair (or uninstall) the Office add-in.
  • rebel_office_status — Check Office connection status for Word, Excel, PowerPoint.
Word (20)
  • rebel_office_word_read_document — Read the active Word document body, paginated by paragraph.
  • rebel_office_word_get_document_structure — Get the heading/section outline of the document.
  • rebel_office_word_get_selection — Get the currently selected text and location.
  • rebel_office_word_find_text — Search for text occurrences with surrounding context.
  • rebel_office_word_insert_text — Insert text at a location or replace the selection (destructive).
  • rebel_office_word_replace_text — Find-and-replace text in the document (destructive).
  • rebel_office_word_format_text — Apply font, color, highlight, or alignment formatting (destructive).
  • rebel_office_word_apply_style — Apply a named paragraph style (e.g. "Heading 1", "Quote") to existing paragraphs (destructive).
  • rebel_office_word_insert_table — Insert a table with headers and rows (destructive).
  • rebel_office_word_read_table — Read a table's cell values as a 2D array.
  • rebel_office_word_update_table_cell — Replace the text of a sin

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx