
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.
概览
本地 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 时需要字体包。
安装
在 SourceWeft 中
- 打开 控制台中的 Groupdocs Editor Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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):
Pulls the latest stable release on every invocation. To pin a version (recommended for shared
configs and CI), append @<version>:
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:
To use a license, add
"GROUPDOCS_LICENSE_PATH": "/path/to/GroupDocs.Editor.lic"toenv— omit it to run in evaluation mode.
Claude Code
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
- Cursor — use the Add to Cursor button above, or paste
install/generated/claude-desktop.jsoninto~/.cursor/mcp.json. - Windsurf — follow
install/generated/windsurf.md. - Cline — paste
install/generated/cline.jsoninto Cline's MCP settings. - JetBrains Rider — follow
install/generated/rider.md. - Codex CLI —
codex mcp add groupdocs-editor -- dnx GroupDocs.Editor.Mcp --yes, details ininstall/generated/codex.md.
Docker
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:
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
Available MCP Tools
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
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:
- 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 setenvor launch the client from a terminal. - Reference them indirectly if your client supports it (Claude Code expands
${VAR}; VS Code uses${env:VAR}and${input:...}). - A literal value in a user-scoped config (for example
~/.claude.json) is acceptable for a single developer. - Never commit a literal key in a project-scoped
.mcp.json.
For Docker, forward the values without writing them into any file:
Configuration
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:
Limits
replace_textmatches within one formatting run. A phrase split across differently formatted text (half bold, half not) is not matched; useextract_htmlandsave_from_htmlfor 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_htmlcreates DOCX, XLSX, PDF, TXT, Markdown and EPUB from HTML alone; for PPTX and EML/MSG pass the original assourceFile. - 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
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:
- Install from NuGet —
dnx, global tool, pinned vs always-latest - Run via Docker
- Verify on the MCP registry
- Use with Claude Desktop
- Use with VS Code / GitHub Copilot
- Run the integration tests
- Use with Cursor
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版本历史
1- v26.10.0最新Nov 1, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分