The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Docx Forge listing page.
MCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.
Generate contracts, reports, proposals, and compliance documents directly from agent workflows. No Word installation required.
Word documents are the default format for contracts, compliance reports, legal agreements, and business proposals — especially in enterprise and government workflows. This MCP server gives AI agents the ability to produce and manipulate .docx files programmatically, without any Office installation, UI automation, or file format guesswork.
Only 1 competitor exists for Word document manipulation via MCP as of 2026. This server fills that gap with a production-quality, fully-tested implementation.
| Tool | Description |
|---|---|
create_document | Create a new .docx from a title and markdown content |
read_document | Extract text, headings, paragraphs, and metadata from a .docx |
add_section | Append a new section (heading + body) to an existing .docx |
replace_text | Find and replace text — ideal for template variable substitution |
add_table | Insert a formatted table with bold headers into a .docx |
merge_documents | Combine multiple .docx files into one |
export_to_pdf | Convert .docx to PDF via LibreOffice or pandoc |
get_document_stats | Get word count, page estimate, section count, table count |
Add to your claude_desktop_config.json:
Add to your .cursor/mcp.json:
create_document and add_section both accept markdown content:
| Markdown | Result |
|---|---|
# Heading 1 | H1 heading |
## Heading 2 | H2 heading |
**bold text** | Bold text |
*italic text* | Italic text |
- item | Bullet list item |
1. item | Numbered list item |
--- | Horizontal divider |
| Blank line | Paragraph break |
export_to_pdf requires a system-level converter. It tries in order:
sudo apt-get install libreofficesudo apt-get install pandocIf neither is available, the tool returns success: false with installation instructions. The source .docx file is always preserved.
| URI | Description |
|---|---|
docx-forge://usage-guide | Step-by-step guide with workflow examples |
docx — .docx creation (no Office required)mammoth — .docx reading and text extraction@modelcontextprotocol/sdk — MCP protocolzod — Input validationMIT — see LICENSE