AI Skill Hub 推荐使用:Safe DOCX 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
Safe DOCX suite,提供docx-primitives, docx-comparison, safe-docx MCP server等功能,提高文档处理效率和安全性。
Safe DOCX 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Safe DOCX suite,提供docx-primitives, docx-comparison, safe-docx MCP server等功能,提高文档处理效率和安全性。
Safe DOCX 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/UseJunior/safe-docx
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"safe-docx": {
"command": "npx",
"args": ["-y", "safe-docx"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Safe DOCX 执行以下任务... Claude: [自动调用 Safe DOCX MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"safe_docx": {
"command": "npx",
"args": ["-y", "safe-docx"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
English | Español | 简体中文 | Português (Brasil) | Deutsch
read_file(file_path,
format)"]
end
subgraph Locate["2. Locate"]
direction TB
LocTool["grep(file_path,
pattern)"]
end
subgraph Edit["3. Edit"]
direction TB
EditTool["replace_text(
target_paragraph_id,
old_string, new_string,
instruction)"]
end
subgraph Save["4. Save"]
direction TB
SaveTool["save(save_to_local_path,
save_format)"]
end
ReadParse --> Locate
Locate --> Edit
Edit --> Save
end
DocInRight["Saved .docx outputSafe Docx is an open-source TypeScript stack for surgical editing of existing Microsoft Word .docx files. It is built for workflows where an agent proposes changes and a human still needs reliable, formatting-preserving document edits.
If you review contracts with AI, the slowest step is often applying accepted recommendations in Word. Safe Docx turns that into deterministic tool calls.
No. Supported runtime usage is JavaScript/TypeScript with jszip + @xmldom/xmldom.
When you prompt a coding agent (Claude Code, Cursor, Gemini CLI) with Safe Docx installed, the agent makes MCP tool calls like these:
User: Edit the NDA at ~/docs/NDA.docx — change the governing law
from "State of New York" to "State of Delaware" and save both
a clean copy and a tracked-changes copy.
Agent calls:
1. read_file(file_path="~/docs/NDA.docx", format="toon")
→ Returns paragraphs with stable IDs:
_bk_a3f29c10b8e4, _bk_7d2e8f1a4c5b, ...
(12-char hex hashes derived from intrinsic w14:paraId
or normalized text — byte-identical across reopens
for identical stored DOCX bytes)
2. grep(file_path="~/docs/NDA.docx", pattern="State of New York")
→ Match in paragraph _bk_e4c8a91f2d36
3. replace_text(
file_path="~/docs/NDA.docx",
target_paragraph_id="_bk_e4c8a91f2d36",
old_string="State of New York",
new_string="State of Delaware",
instruction="Change governing law to Delaware"
)
4. save(
file_path="~/docs/NDA.docx",
save_to_local_path="~/docs/NDA-clean.docx",
tracked_save_to_local_path="~/docs/NDA-tracked.docx",
save_format="both"
)
The agent handles the tool calls automatically. You get a clean file and a tracked-changes file for human review.
@usejunior/docx-core: primitives + comparison engine for existing .docx documents@usejunior/docx-mcp: MCP server implementation and tool surface@usejunior/safe-docx: canonical end-user install name (npx -y @usejunior/safe-docx)@usejunior/safedocx-mcpb: private MCP bundle wrapperSafe DOCX是一个开源的MCP工具,提供了文档处理和安全性检查的功能,提高了文档处理效率和安全性,值得关注。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Safe DOCX 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | safe-docx |
| 原始描述 | 开源MCP工具:Safe DOCX suite: docx-primitives, docx-comparison, safe-docx MCP server。⭐28 · TypeScript |
| Topics | mcpgemini-cli-extensiontypescript |
| GitHub | https://github.com/UseJunior/safe-docx |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端