Skip to main content
plugin

legalrabbit-docx — Claude Code plugin for DOCX files

Reads, creates and edits DOCX files on your own machine, with tracked changes and comments. Useful when a contract needs markup without opening Word.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install legalrabbit-docx@claude-community
Open on GitHub

What legalrabbit-docx does

The plugin wires an MCP server into your agent so it can work with DOCX files. Two ideas carry it. First, HTML and DOCX convert both ways: the model writes HTML and the server turns that into a document. Second, editing is surgical — you point at one paragraph, table or row instead of rewriting the whole file. That keeps token use below what you get from unzipping a docx and touching document.xml.

Capabilities cover reading text and comments, building a new file (an existing DOCX can serve as the template, and its styles carry over), adding tracked changes, and posting or replying to comments. Everything runs offline, so the documents stay where they are.

Installation on Claude goes through the plugin marketplace. Once it is in, add a line to CLAUDE.md telling the agent to use legalrabbit-docx-mcp for reading, creating and manipulating docx files — skip that and the agent may reach for other tools on the same file.

What it helps with

  • draft an NDA from a template with the parties filled in
  • read comments left by a counterparty and reply to each
  • redline an agreement without disturbing its styles
  • strip internal comments and leave only client-facing ones
  • build a fresh DOCX on top of an existing one, keeping its formatting

Example prompts for the agent

  • Create an NDA docx file based on NDA-template.docx. My company is LegalRabbit, the other party is John Austin.
  • Review Data Processing Agreement.docx and flag issues — redline and comment directly in the file.
  • I left comments in BPO referral agreement.docx. Please address them.

How to install legalrabbit-docx

Plugin marketplace

/plugin marketplace add anthropics/claude-plugins-community
/plugin install legalrabbit-docx@claude-community

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about legalrabbit-docx

How do I install legalrabbit-docx in Claude Code?

Run /plugin marketplace add anthropics/claude-plugins-community, then /plugin install legalrabbit-docx@claude-community.

What does legalrabbit-docx do?

It lets the agent read and manipulate DOCX files locally: create documents, edit individual paragraphs and tables, add tracked changes and comments.

How is this MCP different from a plain DOCX skill?

It converts between HTML and DOCX, so the model works in HTML rather than document XML. It also edits a single paragraph or table row instead of rewriting the entire file.

Source text

SKILL.md · MIT
DOCX MCP for Claude Cowork and Codex
====================================================================

legalrabbit-docx-mcp enables your Claude Cowork and Codex to read and manipulate DOCX files locally. 

Our MCP uses 2-5x fewer tokens than the Anthropic's docx skill, is faster, and is more reliable. There are 2 reasons:

1. Our MCP supports a bidirectional transformation of HTML <-> DOCX. AI will write HTML, not DOCX. It is well known that [AI is excellent and efficient at processing HTML](https://claude.com/blog/using-claude-code-the-unreasonable-effectiveness-of-html)!
2. Our MCP supports "surgical editing". AI can specify which paragraph/table/row to edit without editing the entire doc. This saves a lot of tokens compared to the traditional docx skill that unzips a docx file and edits document.xml directly.

You can use our DOCX plugin together with [Claude for Legal](https://github.com/anthropics/claude-for-legal) to enable a more seamless experience of working with a docx file!

[Click to see the demo](https://drive.google.com/file/d/1UNlUJYwkNX3NiANDkLLb3UoRSms2dXCU/view?usp=drive_link)

[![Demo](https://github.com/user-attachments/assets/cc89cf6b-2d9d-4134-a399-523e72489ce4)](https://drive.google.com/file/d/1UNlUJYwkNX3NiANDkLLb3UoRSms2dXCU/view?usp=drive_link)

Capabilities:
- Read the content and the comments.
- Create a new docx file. Optionally, you can use an existing docx file as the template. The styles will be copied from the template.
- Add tracked changes to an existing docx file.
- Add comments and reply to comments.
 
We are using this plugin at [LegalRabbit](https://legalrabbit.ai) to speed up our legal services. Try it out and let us know if you have any questions.

The plugin works offline, ensuring data privacy and security of your DOCX files.

Example prompts
----------------

- _Create a NDA docx file based on NDA-template.docx. My company is LegalRabbit. The other party is John Austin._
- _Review and flag issues in 'Data Processing Agreement.docx'. You can redline and add comments on the doc directly._
- _I've made comments in 'BPO referral agreement.docx'. Please address them._
- _Delete all comments and provide customer-facing comments_ 

How to install
---------------

![Claude Installation](https://raw.githubusercontent.com/LegalRabbit-AI/legalrabbit-media/main/claude.jpg) __For Claude Cowork:__

1. Go to the latest release, 1.0.0, and download [legalrabbit-docx.mcpb](https://github.com/LegalRabbit-AI/legalrabbit-docx-mcp/releases/download/1.0.0/legalrabbit-docx.mcpb).
2. Switch to Claude and go to `Settings`
3. Select the `Extensions` tab and click on `Advanced settings`
4. Click `Install Extension` and select the downloaded `legalrabbit-docx.mcpb` file.
5. Click `Install`
6. Add `You must use the legalrabbit-docx-mcp tool for reading, creating, and manipulating docx files.` to `CLAUDE.md`

![Claude Installation](https://raw.githubusercontent.com/LegalRabbit-AI/legalrabbit-media/main/openai.jpg) __For Codex:__

1. Go to `Plugins` and click the `+ v` (the down arrow next to the plug button) on the top right corner
2. Select `+ Add marketplace`
3. Fill `Source` with `https://github.com/LegalRabbit-AI/legalrabbit-docx-mcp` and click `Add marketplace`
4. On the Plugins page, click on the `legalrabbit-tools` marketplace.
5. Click `Add plugin` on the Legalrabbit Docx plugin.
6. Add `You must use the legalrabbit-docx skill for reading, creating, and manipulating docx files` to `AGENTS.md`

🛠️ __Testing__

You can try `Create a beautifully written short docx`


Support
---------

Contact: tanin(at)legalrabbit.ai

Learn more about us: [LegalRabbit](https://legalrabbit.ai/)


Release a new version
----------------------

1. Go to [the release Github Actions workflow](https://github.com/LegalRabbit-AI/legalrabbit-docx-mcp/actions/workflows/release.yml).
2. Click `Run workflow` and fills in an appropriate tag e.g. `1.0.0`, `1.0.0-dev`
3. Wait for the workflow to complete.
4. Go to the [releases page](https://github.com/LegalRabbit-AI/legalrabbit-docx-mcp/releases) and edit the new release accordingly.

© LegalRabbit-AI · MIT · LegalRabbit-AI/legalrabbit-docx-mcp

Similar plugins

All plugins for Office documents →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor