Docx MCP logo

Docx MCP

by SecurityRonin

Read, create, edit, audit, and compare Word documents with tracked changes, comments, footnotes, and OOXML validation.

Install Docx MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "securityronin-docx-mcp": {
      "command": "uvx",
      "args": [
        "docx-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx docx-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

SecurityRonin/docx-mcp MCP server lets AI agents create, read, edit, compare, and audit Microsoft Word .docx documents. It runs as a local stdio server through uvx or pip and exposes 18 tools for tracked revisions, comments, footnotes, tables, formatting, document protection, and structural checks. Edits can be saved with Word-compatible revision markup, while change summaries and document diffs can be exported as text. Reach for it when document workflows require reviewable redlines, template-based report generation, or pre-delivery integrity checks.

Use cases

  • Review contracts with tracked redlines and explanatory comments
  • Generate formatted Word reports from Markdown and templates
  • Compare two document versions and export a change summary
  • Audit footnotes, headings, bookmarks, and document structure
  • Apply batch replacements across Word templates

Key features

  • Tracked insertions, deletions, replacements, and formatting changes
  • Comments, threaded replies, footnotes, and endnotes
  • Markdown and template-based DOCX creation
  • Document comparison with DOCX and text outputs
  • Structural validation and watermark removal
  • Document protection and table editing

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

35/36 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · docx-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars71Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Docx MCP works

What SecurityRonin/docx-mcp does

SecurityRonin/docx-mcp works with Word documents in .docx format and can create new files, open existing files, apply edits, and save results. Documents can start blank, come from a .dotx template, or be generated from Markdown. Supported content includes headings, tables, lists, images, code blocks, footnotes, and common formatting.

The server is designed for workflows where edits must remain visible to a reviewer. Text insertions, deletions, replacements, table changes, and formatting changes can be written as tracked revisions. An editing tool can also be called with tracked=False when direct changes without revision markup are preferred. Existing revisions can be accepted or rejected by author.

Comments can be attached to paragraphs and extended with replies. The server also supports searching across document text, footnotes, and comments, as well as editing headers and footers. Documents can be merged, protected for tracked-changes-only, read-only, or comments-only access, and checked for structural consistency.

How it works

SecurityRonin/docx-mcp runs as an MCP process that receives document operations from a compatible client. A typical review sequence opens a file, inspects headings, searches for target text, applies tracked edits, adds comments, audits the result, and saves a new document. The resulting file can be opened in Microsoft Word to inspect revision marks and comments.

After a tracked-edit session, generate_change_summary creates a numbered text report covering insertions, deletions, and replacements. diff_to_text compares two separate Word files and produces both a document with inline tracked differences and a plain-text summary, without requiring the server to have edited either source file.

Structural auditing covers items such as footnote references, headings, bookmarks, images, and internal consistency. The server can also validate footnote and endnote cross-references, inspect embedded images, remove DRAFT watermarks from headers, and create internal paragraph links using bookmarks.

Setup and configuration

The documented installation uses Python 3.10 or newer. With Claude Code, add the server using:

Terminal
claude mcp add docx-mcp -- uvx docx-mcp-server

Other documented stdio configurations use the uvx command with docx-mcp-server as its argument. The same command format is shown for Claude Desktop, Cursor, Windsurf, and VS Code. The package can also be installed with pip install docx-mcp-server.

A companion skill is installed when the server first starts in Claude Code.

Tools and capabilities

SecurityRonin/docx-mcp provides 18 tools covering these operations:

  • Create documents from blank content, Markdown, or .dotx templates.
  • Read headings, document structure, headers, footers, comments, footnotes, and images.
  • Search text with literal or regular-expression matching across document areas.
  • Insert, delete, replace, and format content with optional tracked revisions.
  • Add comments and replies to comment threads.
  • Create and modify tables, including row insertion and deletion.
  • Add, list, and validate footnotes and endnotes.
  • Set page breaks, section breaks, page size, orientation, and margins.
  • Merge Word documents and add internal links between bookmarked paragraphs.
  • Apply document protection modes with passwords.
  • Generate change summaries, compare document versions, and run structural audits.
  • Detect and remove DRAFT watermarks from headers.

PII scrubbing is marked experimental. It uses Microsoft Presidio and a spaCy named-entity model to detect several types of personal information, then permanently removes matched text from the XML and replaces it with a solid black rectangle.

Limitations and notes

The README explicitly says the PII scrubbing feature is not suitable for production use or as the sole control for privileged, regulated, or legally sensitive documents. Treat it as an experimental feature rather than a complete privacy or compliance control.

Its installation examples use local stdio execution through uvx or a locally installed Python package.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Docx MCP

SecurityRonin/docx-mcp is an MCP server that connects AI agents to Microsoft Word .docx files. Its main tools create, read, edit, compare, and audit documents, including tracked revisions, comments, footnotes, tables, formatting, change summaries, document protection, and structural validation.

Install it with `uvx` or pip. For Claude Code, run `claude mcp add docx-mcp -- uvx docx-mcp-server`; alternatively, run `pip install docx-mcp-server` and configure the local stdio command in your MCP client.

Add an MCP server entry that runs `uvx` with `docx-mcp-server` as its argument, using the client’s MCP configuration file.

Yes, editing tools can insert, delete, and replace text as tracked revisions. Formatting and table edits can also use revision tracking, while passing `tracked=False` writes a direct change without revision markup.

Yes, `diff_to_text` compares two separate Word files and produces a DOCX with inline tracked differences plus a plain-text change summary.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDocx MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/securityronin-docx-mcp?style=directory)](https://allmcps.com/mcp/securityronin-docx-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/securityronin-docx-mcp"><img src="https://allmcps.com/api/badge/securityronin-docx-mcp?style=directory" alt="Docx MCP on AllMCPs" /></a>