docx-mcp

A document tool for creating, reading, and editing Microsoft Word files. It works with Word's internal structure so edits can appear as tracked changes, comments, and other real document features.

In plain words
What is it for?
Use it to create documents from templates or Markdown, edit files with tracked changes, add comments and footnotes, review structure, remove watermarks, and make bulk replacements.
Why use it?
It handles Word documents more faithfully than plain-text conversion, including changes that reviewers need to see inside Microsoft Word.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/securityronin/docx-mcp/skill
Any agent
npx skills add SecurityRonin/docx-mcp --skill skill
Clone the repo
git clone --depth 1 https://github.com/SecurityRonin/docx-mcp

Made for: Claude Code, Codex.

Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00089 $0.05381
Opus 5 $0.00044 $0.02691
Sonnet 5 $0.00018 $0.01076
Haiku 4.5 $0.00009 $0.00538

Measured 3d ago against content hash f0301e647a3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docx-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (__init__.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • docx-mcp — 100% identical, 0 lines differ
docx_mcp/skill/SKILL.md · 449 lines

How it starts

The opening of the file, as written. The whole thing — 449 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating and Editing Word Documents with docx-mcp

Overview

The docx-mcp MCP server provides tools for creating, reading, and editing .docx files with proper OOXML markup. Create documents from scratch or from markdown. Edits appear as real revisions in Microsoft Word — red strikethrough for deletions, green underline for insertions, comments in the sidebar.

A .docx file is a ZIP archive of XML files. This server unpacks the archive, parses all XML parts with lxml, edits the cached DOM trees directly, and repacks modified XML back into a valid .docx archive. This gives full control over OOXML markup — essential for track changes, comments, and structural validation that higher-level libraries don't expose.

When to Use

  • Creating new .docx documents from scratch or from templates
  • Converting markdown to .docx with full formatting (headings, tables, lists, images, footnotes, code blocks)
  • Editing existing .docx files with tracked changes
  • Adding comments or footnotes to documents
  • Reviewing/auditing document structure
  • Removing watermarks
  • Bulk find-and-replace with revision marks
  • Any task where changes must be visible as Word revisions

Do NOT use for: PDFs, spreadsheets, or .doc (legacy binary format — convert to .docx first).

Workflows

Creating Documents from Markdown

1. create_from_markdown(output_path, markdown="# Title\n\nContent with **bold**.")
2. audit_document()                          → verify integrity
3. save_document()                           → save to disk

Supports: headings, bold/italic/strikethrough, links, images, bullet/numbered/nested lists, code blocks, blockquotes, tables, footnotes, task lists. Smart typography (curly quotes, em/en dashes, ellipses) is applied automatically.

Creating Blank Documents

1. create_document("/path/to/new.docx")      → blank document
2. create_document("/path/to/new.docx", template_path="/path/to/template.dotx")  → from template

Editing Existing Documents

Read the full file on GitHub · 449 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 449 lines · 89 tokens per session scan A f0301e647a3d

Subscribe to this mod's changes

docx-mcp is a skill published in the GitHub repository SecurityRonin/docx-mcp (44 stars, last pushed 28d ago), licensed MIT. It adds 89 tokens to every session and 5,381 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories