MCP server: One MCP server.

Safe Docx

@usejuniorRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

AI-native surgical editing of Word .docx and OpenDocument .odt files with formatting preservation

Office documentsv0.25.0Apache-2.0TypeScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npm@usejunior/safe-docxv0.25.0

Run

npx -y @usejunior/safe-docx

MCP client config

{
  "mcpServers": {
    "safe-docx": {
      "command": "npx",
      "args": [
        "-y",
        "@usejunior/safe-docx"
      ]
    }
  }
}
README2 min read

Edit Word and OpenDocument files with coding agents.

CI codecov npm version License: Apache 2.0 GitHub last commit GitHub issues closed

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:

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.

Comparisons

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 for locating the executable, pinning a version, and configuring clients.

Documentation

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.

Similar modules

Browse Office documents