Skip to content
MCP server

Safe Docx

Edit Word and ODT files as tracked changes with reasons, so redlines stay reviewable

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, macOS, Windows
Runs
Locally
Version
0.25.1
Listing updated
3 days ago

About Safe Docx

Safe Docx is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Instead of rewriting a .docx, the agent works from a format-preserving plain-text copy and writes each edit beside its reason. Edits land in the Word file as tracked changes; external-facing reasons become comments while internal ones stay with your team. Because the text copy diffs cleanly, a contract's rounds can be committed to Git and reviewed like code.

It runs locally from the npm package @usejunior/safe-docx and is Apache 2.0 licensed, free for commercial use. Tools cover reading, section outlines, replacing text, batch edits, footnotes, comments, accepting or rejecting AI edits, comparing documents and converting to ODT.

Install

Run in a terminal

claude mcp add safe-docx -- npx -y @usejunior/safe-docx

Add to claude_desktop_config.json

{
  "mcpServers": {
    "safe-docx": {
      "command": "npx",
      "args": [
        "-y",
        "@usejunior/safe-docx"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "safe-docx": {
      "command": "npx",
      "args": [
        "-y",
        "@usejunior/safe-docx"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "safe-docx": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@usejunior/safe-docx"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

name
description

What it does

Tracked changes
Edits arrive as Word revisions.
Reasons as comments
Each change is paired with a rationale.
Plain-text copy
A text projection that works in Git.
Formatting preserved
Layout and numbering are kept.
Compare documents
Compare two versions.
Footnotes and comments
Add, update and delete both.

Good for

  • Redline a contract with an AI agent
  • Review AI edits before accepting
  • Keep contract history in Git
  • Convert a document to ODT

Pricing

Open source

Apache 2.0, free for commercial use

Prices change. Check usejunior.com before you buy.

Safe Docx FAQ

Does it run locally?

Yes, over stdio.

What license?

Apache 2.0.

Can I reject AI edits?

Yes, via accept_ai_edits and reject_ai_edits.

Is Safe Docx free?

Yes. Safe Docx is open source, so you can use and self-host it for free.

How do I add Safe Docx to Claude Code?

Run this command in your terminal: claude mcp add safe-docx -- npx -y @usejunior/safe-docx

What are the best alternatives to Safe Docx?

The closest alternatives to Safe Docx are ASTra, NY LLC Publication (FileMyPublication), TribuJus, SupplyClub Catalog and SynomosAI Governance MCP.

Alternatives to Safe Docx

  1. ASTra

    MCP server

    Let agents read, edit, validate and undo Word .docx files with exact operations

    Runs locally
    • 5 tools
    • Freemium
    • Files and documents
  2. New York LLC publication rules, deadline, county prices, clerks and notice text

    • 8 tools
    • Remote
    • Free
    • Legal and government
  3. TribuJus

    MCP server

    Read-only access to UK bank accounts, cards and transactions via TrueLayer Open Banking

    Not checked yet
    • 5 tools
    • Remote
    • Open source
    • Legal and government
  4. Russian statutes, Supreme Court guidance and court practice for AI assistants

    • 3 tools
    • Remote
    • Free
    • Legal and government
  5. Self-assess AI agent governance: A3 scorecard, ISO 42001 evidence and PII scan

    Runs locally
    • 6 tools
    • Open source
    • Security
  6. CARTESIAN ECU

    MCP server

    Check and repair ECU and TCU flash-file checksums from Claude (Ultimate plan)

    Not checked yet
    • 5 tools
    • Remote
    • Paid
    • Files and documents