Edit Word .docx files programmatically while preserving formatting, styles, and structure. Built for developers who need AI-driven document manipulation without losing layout or metadata.
io.github.UseJunior/safe-docx
Local install
STDIO
No auth required
How models use it and what it is built for.
Edit Word .docx files programmatically while preserving formatting, styles, and structure. Built for developers who need AI-driven document manipulation without losing layout or metadata.
Local install — runs as a subprocess.
Where to find authoritative docs and source for Safe Docx.
Paste any of these into Agent Studio after connecting Safe Docx.
Common questions about connecting and running Safe Docx.
What file formats does safe-docx support?
The server works with .docx (Office Open XML) files. It preserves all formatting, styles, and structure during edits.
How do I install and run safe-docx?
Install via npm: `npx @usejunior/safe-docx@0.9.1`. It runs over stdio transport, so you can connect it to any MCP client.
Will my document formatting be lost when I edit it?
No—safe-docx is designed to preserve all formatting, styles, and document structure during edits. That's its core feature.
Can I use this for bulk document processing?
Yes, you can programmatically edit multiple .docx files. Each edit operation preserves the original formatting and metadata.
What's the difference between safe-docx and just using a generic Word library?
safe-docx is AI-native and designed for surgical, targeted edits through natural language. Generic libraries require manual XML manipulation and are more error-prone for complex formatting.
MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 60+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.
Open Agent StudioJudges Panel
45 judges that evaluate AI-generated code for security, cost, and quality with built-in AST.
Addozhang Nexus
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Cyanheads MCP Ts Template
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Chernistry Bernstein
Declarative agent orchestration for engineering teams