UseJunior/safe-docx
๐ ๐ ๐ ๐ง ๐ช - Surgical editing of existing Word .docx files with formatting preservation, tracked changes, comments, footnotes, and document comparison.
Quick Install
{
"mcpServers": {
"usejunior-safe-docx": {
"command": "npx",
"args": [
"-y",
"usejunior-safe-docx"
]
}
}
}Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.
Documentation Overview
Safe Docx
Edit Word and OpenDocument files with coding agents.
English ยท Espaรฑol ยท ็ฎไฝไธญๆ ยท Portuguรชs ยท Deutsch
Safe Docx is a local MCP server and CLI for reading, searching, editing, comparing, converting, and saving document files. It preserves DOCX structure and can produce clean or tracked-changes output.
Example
Ask your coding agent:
Edit NDA.docx. Change the governing law from New York to Delaware.
Save a clean copy and a tracked-changes copy. Do not change anything else.
Safe Docx finds the clause, applies the targeted edit, and writes both files for review. The rest of the document stays outside the requested edit.
Follow the complete editing walkthrough.
Comparisons
Install
npm install --global @usejunior/safe-docx
Then configure your MCP client with the installed executable's absolute path. For Claude Code:
claude mcp add safe-docx -- /absolute/path/to/safe-docx
See Installation and verification for locating the executable, pinning a version, and configuring clients.
Documentation
- Installation and verification
- Tool reference
- TypeScript library
- Architecture
- Testing and evidence
- Trust and conformance
- Contributing
Standards Conformance
Browse the Safe Docx Conformance Explorer to navigate ECMA-376 sections, OOXML schema declarations, capability claims, explicit non-goals, and measured cross-implementation outcomes.
The generated repository conformance report remains the source-controlled record of targeted sections, non-goals, and verification references.
What Safe Docx Is Not Optimized For
Safe Docx is not a visual editor or layout engine. It does not provide browser rendering, real-time collaboration, or pixel-level pagination guarantees. .dotx templates must be converted to .docx before use.