Groupdocs Editor Mcp

io.github.groupdocs-editor由 GitHub 帳號 groupdocs-editor 發布v26.10.0更新於 Nov 1, 2026

MCP server for GroupDocs.Editor — edit Word, Excel, PowerPoint and PDF via HTML with AI agents.

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理在保留格式的前提下檢視、編輯與轉換 Word、Excel、PowerPoint、PDF 及文字檔案。

可以做什麼
  • 檢視文件資訊:格式家族、頁數/工作表數/投影片數、大小、加密狀態與可儲存格式
  • 轉為可編輯 HTML:整份文件、單一工作表、單張投影片或 PDF 頁面範圍,並附純文字預覽
  • 將編輯後的 HTML 存回 Office、PDF、Markdown、EPUB 等格式,也可把單一部件併回原檔
  • 尋找並取代文字,支援字面、忽略大小寫、全字或正規表示式比對,並保留格式
  • 讀取與填寫 Word 表單欄位,例如文字方塊、核取方塊、下拉式清單與日期欄位
  • 查詢支援的格式與目前授權狀態
適用情境
適合需要對既有 Office 或 PDF 檔案做定點修改又不破壞版面的情境,例如在合約中替換名稱、只編輯某個工作表或投影片、填寫 Word 表單。較適合本機、以檔案為主的文件處理,而非從零建立文件。
執行需求
透過 stdio 在本機執行;原生執行需要 .NET 10 SDK,也可改用已發佈的 Docker 映像(無需原生環境)。需設定 GROUPDOCS_MCP_STORAGE_PATH 指定輸入輸出資料夾,可選用 GROUPDOCS_MCP_OUTPUT_PATH。正式使用需以 GROUPDOCS_LICENSE_PATH 提供授權檔,或設定按用量計費的金鑰。Linux 僅在輸出 PDF/XPS 時需要字型套件。
安裝前請注意
未授權時引擎以評估模式執行:輸出會帶評估橫幅、儲存的活頁簿會多出一張工作表,且只能編輯前 2 頁、前 2 張工作表或前 2 張投影片。按用量計費模式依使用量收費,並向 GroupDocs 伺服器回報用量,需要對外網路連線。GROUPDOCS_METERED_PRIVATE_KEY 是機密,不應寫入專案設定檔。伺服器會把編輯副本寫入儲存資料夾;不可信輸入若引用遠端資源可能觸發網路請求。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Groupdocs Editor Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

GroupDocs.Editor MCP Server

Let Claude, Cursor, GitHub Copilot and any other MCP agent edit Word, Excel, PowerPoint, PDF and text documents without wrecking their formatting — replace text in place, round-trip a document (or one worksheet, slide or PDF page range) through editable HTML, and fill Word form fields. Locally: your files never leave your machine.

[NuGet] [NuGet downloads] [Docker pulls] [MCP Registry] [Integration tests] [License: MIT]

Install in 60 seconds

[Install in VS Code] [Install in VS Code Insiders] [Add to Cursor] [Codex CLI setup] [Windsurf setup]

One-click installs pre-fill every supported setting: edit the placeholder documents folder after install (output defaults to the same folder); an empty GROUPDOCS_LICENSE_PATH runs in evaluation mode - point it at your license to lift limits.

More clients - ready-made configs for Claude Code, Codex CLI, Visual Studio 2022, Cursor, Windsurf, Cline, and JetBrains Rider live in install/generated/.

Requires the .NET 10 SDK for native runs — or skip straight to Docker.

Run directly with dnx (recommended — no install step):

bash
dnx GroupDocs.Editor.Mcp --yes

Pulls the latest stable release on every invocation. To pin a version (recommended for shared configs and CI), append @<version>:

bash

The server reads and writes documents in GROUPDOCS_MCP_STORAGE_PATH (default: the current directory). Edited copies are saved next to the originals and never overwrite an existing file.

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "groupdocs-editor": {      "type": "stdio",      "command": "dnx",      "args": ["GroupDocs.Editor.Mcp", "--yes"],      "env": {        "GROUPDOCS_MCP_STORAGE_PATH": "/path/to/documents"      }    }  }}

To use a license, add "GROUPDOCS_LICENSE_PATH": "/path/to/GroupDocs.Editor.lic" to env — omit it to run in evaluation mode.

Claude Code

bash
claude mcp add groupdocs-editor -- dnx GroupDocs.Editor.Mcp --yes

VS Code / GitHub Copilot

Use the Install in VS Code button above, or copy the ready-made snippet from the NuGet package page into .vscode/mcp.json, or take install/generated/vscode-mcp.json from this repo.

Visual Studio 2022 (17.14+)

Create .mcp.json in your solution root with the contents of install/generated/vs2022-mcp.json.

Cursor · Windsurf · Cline · Rider · Codex

Docker

bash
docker run --rm -i \  -v "$(pwd)/documents:/data" \  ghcr.io/groupdocs-editor/editor-net-mcp:latest

Images are published to GHCR (ghcr.io/groupdocs-editor/editor-net-mcp) and Docker Hub (groupdocs/editor-net-mcp) for linux/amd64 + linux/arm64, tagged latest plus an immutable version tag matching each NuGet release (e.g. :26.10.0). The image needs no native setup.

Docker on Linux: run the container as your user

The image runs as a non-root user (uid 1654), and a bind mount keeps its host owner — so on a Linux host every edited file the server writes into /data fails with Permission denied unless the container runs as you:

bash
docker run --rm -i --user "$(id -u):$(id -g)" \  -v "$(pwd)/documents:/data" \  ghcr.io/groupdocs-editor/editor-net-mcp:latest

JSON client configs run no shell, so put the numbers in: "args": ["run", "--rm", "-i", "--user", "1000:1000", …]. Docker Desktop on Windows and macOS does not need this.

Global dotnet tool

bash
dotnet tool install -g GroupDocs.Editor.Mcpgroupdocs-editor-mcp

Available MCP Tools

ToolWhat it does
get_document_infoFormat family, format, number of pages / worksheets / slides, size, encryption, and the formats it can be saved to (JSON)
extract_htmlTurns a document — or one worksheet, one slide, or a PDF page range — into editable HTML saved to storage, plus a plain-text preview. Self-contained by default; embedResources=false writes a <name>_resources folder
save_from_htmlSaves edited HTML back as DOCX, DOC, RTF, ODT, XLSX, XLS, ODS, CSV, PPTX, PPT, ODP, PDF, XPS, TXT, Markdown, MHTML, EPUB, MOBI, AZW3, EML or MSG. With sourceFile + worksheet/slide it splices one edited part back into the original and keeps every other part
replace_textFind and replace that keeps formatting — literal, case-insensitive, whole-word or regex; one worksheet or slide at a time; optional output format. Reports how many occurrences changed; writes nothing when nothing matched
get_supported_formatsThe formats GroupDocs.Editor can open and save, per family, or the save targets of one file (JSON)
get_form_fieldsLists a Word document's form fields — text boxes, check boxes, drop-downs, number and date fields — with type and value (JSON)
fill_form_fieldsFills Word form fields and saves a filled copy; unknown names and values that do not fit are reported, never ignored
get_license_statusLicensing mode, metered consumption and engine version (shipped by GroupDocs.Mcp.Core)

Worksheet, slide and page numbers are 1-based. Every failure sets isError and starts with the tool's prefix, e.g. HTML extraction failed for 'report.docx': …, so a client needs one check.

Example prompts for AI agents

Replace "ACME Corp" with "Globex" in contract.docx and keep the formatting.Give me the second worksheet of budget.xlsx as HTML so I can edit it.Save edited.html back as a Word document, and also as a PDF.Fill the form fields in application.docx: name = Jane Doe, agree = yes.Which formats can GroupDocs.Editor open and save?

Evaluation mode

The MCP server itself is MIT; the GroupDocs.Editor engine requires a license for production use. Without one every tool still works, with these limits (measured on GroupDocs.Editor 26.6.1):

  • Edited output starts with an evaluation banner ("Created with evaluation version of GroupDocs.Editor …").
  • A saved workbook gains an extra worksheet.
  • Only the first 2 pages of a PDF, the first 2 (visible) worksheets of a workbook and the first 2 slides of a presentation can be edited. The engine would silently return part 2 for a higher number; the server refuses the request instead and says why. Saving an edited part back into worksheet or slide 3+ is not limited.

Responses of the editing tools then start with one Evaluation mode: line. Call get_license_status to see which mode is active.

Licensing

There are two ways to license the server.

License file — point GROUPDOCS_LICENSE_PATH at your GroupDocs.Editor (or GroupDocs.Total) license file. Works offline.

Metered (pay-per-use) — set both GROUPDOCS_METERED_PUBLIC_KEY and GROUPDOCS_METERED_PRIVATE_KEY. You pay for what you process, which suits agent workloads. If both a metered key pair and a license file are configured, metered wins and the file is ignored.

Metered mode needs outbound connectivity. Usage is reported to GroupDocs servers, so air-gapped or firewalled deployments must allow that egress — or use a license file instead.

Keeping the private key out of your config

The metered private key is a secret. MCP client configs are plain files, and a project-scoped .mcp.json is committed by convention, so prefer, in order:

  1. Set the variables in your OS environment and leave them out of the config entirely — an stdio MCP server inherits its client's environment. On macOS an app launched from Finder does not inherit shell exports; use launchctl setenv or launch the client from a terminal.
  2. Reference them indirectly if your client supports it (Claude Code expands ${VAR}; VS Code uses ${env:VAR} and ${input:...}).
  3. A literal value in a user-scoped config (for example ~/.claude.json) is acceptable for a single developer.
  4. Never commit a literal key in a project-scoped .mcp.json.

For Docker, forward the values without writing them into any file:

bash
docker run --rm -i \  -e GROUPDOCS_METERED_PUBLIC_KEY -e GROUPDOCS_METERED_PRIVATE_KEY \  -v /path/to/documents:/data \  ghcr.io/groupdocs-editor/editor-net-mcp:latest

Configuration

VariableDescriptionDefault
GROUPDOCS_MCP_STORAGE_PATHBase folder for input and output filescurrent directory
GROUPDOCS_MCP_OUTPUT_PATH(Optional) separate folder for output filesGROUPDOCS_MCP_STORAGE_PATH
GROUPDOCS_LICENSE_PATHPath to a GroupDocs license file(evaluation mode)
GROUPDOCS_METERED_PUBLIC_KEYMetered public key. Requires the private key too; takes precedence over the license file(unset)
GROUPDOCS_METERED_PRIVATE_KEYMetered private key. Secret — see Licensing(unset)

Native prerequisites

GroupDocs.Editor draws through Aspose.Drawing (managed) and SkiaSharp, whose native libraries ship inside the package — no libgdiplus is needed on any platform. Saving edited content to PDF or XPS lays text out, so Linux needs real fonts:

PlatformSetup
WindowsNothing.
Linuxsudo apt-get install -y libfontconfig1 ttf-mscorefonts-installer (only for PDF/XPS output)
macOSNothing.
DockerNothing — the image bundles the fonts.

Limits

  • replace_text matches within one formatting run. A phrase split across differently formatted text (half bold, half not) is not matched; use extract_html and save_from_html for such edits.
  • PDF editing is a conversion. A PDF is turned into flowing HTML and back, so complex layouts do not round-trip perfectly. Save the edited result as DOCX if fidelity matters.
  • PPTX and email outputs need an original. save_from_html creates DOCX, XLSX, PDF, TXT, Markdown and EPUB from HTML alone; for PPTX and EML/MSG pass the original as sourceFile.
  • Remote resources. HTML or Office input that references remote images or stylesheets may cause the engine to fetch them while loading. Run the server without network egress if inputs are untrusted.
  • macOS CI. Integration tests gate on Linux and Windows; the family-wide macOS runner hang is tracked separately.

Usage with Docker Compose

bash
cd dockerdocker compose up

Edit docker/docker-compose.yml to point the volume at your documents folder.

Documentation & guides

Step-by-step deployment guides and a published-package integration test suite live in the companion repo GroupDocs.Editor.Mcp.Tests:

That repo exercises every advertised tool against the published package (dnx on Linux, Windows and macOS) and the Docker image, reading every edit back through the server.

License

MIT — see LICENSE

來源:README.md,提交 5ba07eb

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

1
  1. v26.10.0最新Nov 1, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分