Catalog›Plugins›Files & documents›safe-docxSDsafe-docxAI-powered DOCX and ODT editing with tracked changes, redlining, and formatting preservation Open site Open in the app JSON README (API)AI-powered DOCX and ODT editing with tracked changes, redlining, and formatting preservationREADMELoading documentation…# Safe Docx Edit Word and OpenDocument files with coding agents. <!-- SYNC:badges BEGIN --> [](https://github.com/usejunior/safe-docx/actions/workflows/ci.yml) [](https://app.codecov.io/gh/usejunior/safe-docx) [](https://www.npmjs.com/package/@usejunior/safe-docx) [](https://github.com/UseJunior/safe-docx/blob/main/LICENSE) [](https://github.com/UseJunior/safe-docx/commits/main) [](https://github.com/UseJunior/safe-docx/issues?q=is%3Aissue+is%3Aclosed) <!-- SYNC:badges END --> <!-- SYNC:lang-nav BEGIN --> [English](https://github.com/usejunior/safe-docx/blob/HEAD/README.md) · [Español](https://github.com/usejunior/safe-docx/blob/HEAD/README.es.md) · [简体中文](https://github.com/usejunior/safe-docx/blob/HEAD/README.zh.md) · [Português](https://github.com/usejunior/safe-docx/blob/HEAD/README.pt-br.md) · [Deutsch](https://github.com/usejunior/safe-docx/blob/HEAD/README.de.md) <!-- SYNC:lang-nav END --> 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: ```text 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](https://github.com/usejunior/safe-docx/blob/HEAD/docs/tutorial.md). ## Comparisons - [SuperDoc](https://github.com/usejunior/safe-docx/blob/HEAD/docs/comparisons.md#superdoc) - [Claude's built-in DOCX editing](https://github.com/usejunior/safe-docx/blob/HEAD/docs/comparisons.md#claudes-built-in-docx-editing) - [python-docx](https://github.com/usejunior/safe-docx/blob/HEAD/docs/comparisons.md#python-docx) - [DOCX compatibility matrix](https://github.com/usejunior/safe-docx/blob/HEAD/docs/comparisons.md#compatibility-matrix) ## Install ```bash npm install --global @usejunior/safe-docx ``` Then configure your MCP client with the installed executable's absolute path. For Claude Code: ```bash claude mcp add safe-docx -- /absolute/path/to/safe-docx ``` ### Antigravity CLI Add Safe Docx to `~/.gemini/config/mcp_config.json`: ```json { "mcpServers": { "safe-docx": { "command": "/absolute/path/to/safe-docx", "args": [] } } } ``` Restart `agy`, then ask it to edit a `.docx` file. Antigravity may ask you to approve the MCP server before first use. See [Installation and verification](https://github.com/usejunior/safe-docx/blob/HEAD/docs/installation.md) for locating the executable, pinning a version, and configuring clients. ## Documentation - [Installation and verification](https://github.com/usejunior/safe-docx/blob/HEAD/docs/installation.md) - [Tool reference](https://github.com/usejunior/safe-docx/blob/HEAD/packages/docx-mcp/docs/tool-reference.generated.md) - [TypeScript library](https://github.com/usejunior/safe-docx/blob/HEAD/packages/docx-core/README.md) - [Architecture](https://github.com/usejunior/safe-docx/blob/HEAD/docs/architecture.md) - [Testing and evidence](https://github.com/usejunior/safe-docx/blob/HEAD/docs/testing-and-evidence.md) - [Trust and conformance](https://github.com/usejunior/safe-docx/blob/HEAD/docs/trust-and-conformance.md) - [Contributing](https://github.com/usejunior/safe-docx/blob/HEAD/CONTRIBUTING.md) ## Standards Conformance Browse the [Safe Docx Conformance Explorer](https://usejunior.com/engineering/safe-docx/conformance) to navigate ECMA-376 sections, OOXML schema declarations, capability claims, explicit non-goals, and measured cross-implementation outcomes. The generated [repository conformance report](https://github.com/usejunior/safe-docx/blob/HEAD/spec-compliance/CONFORMANCE.md) 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. DetailsTypePluginsTopicFiles & documentsPublisherusejuniorSourcegeminiCategoryToolsVersion0.23.0Stars47Copies (forks)7Proposed changes13Last update2026-10-26T23:56:43ZProject statusActiveLanguageTypeScriptLicenseApache-2.0Added2026-08-30 14:13:39Updated2026-08-30 14:13:39Source idusejunior/safe-docxMoreMore plugins on Files & documentsAll from usejuniorA–Z index