# Safe Docx

> Safe Docx is an open-source MCP server for files and documents. Edit Word and ODT files as tracked changes with reasons, so redlines stay reviewable. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Website:** https://usejunior.com/developer-tools/safe-docx
- **Repository:** https://github.com/usejunior/safe-docx/tree/HEAD/packages/safe-docx
- **MCP Registry name:** io.github.UseJunior/safe-docx
- **Categories:** files and documents, legal and government
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `name`: description

## 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

- [ASTra](https://ai-powered.com/mcp/astra): ASTra is a freemium MCP server for files and documents.
- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [SupplyClub Catalog](https://ai-powered.com/mcp/supplyclub-catalog): SupplyClub Catalog is a free MCP server for legal and government.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.
- [CARTESIAN ECU](https://ai-powered.com/mcp/cartesian-ecu): CARTESIAN ECU is a paid MCP server for files and documents.
- [MedXpert 标准检索连接器](https://ai-powered.com/mcp/medxpert-2): MedXpert 标准检索连接器 is a free MCP server for legal and government.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/safe-docx
