Docx MCP Server

Professional document generation from structured data

Local serverstdio

What is the Docx MCP server?

Professional document generation from structured data. That is what the docx mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

Generate contracts, reports, proposals, and compliance documents directly from agent workflows. No Word installation required.

Getting it running

Installation goes through your MCP client rather than a global install: point it at docx-forge-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

The tools it exposes

The server publishes 9 tools. What each one is for:

  • 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
  • Cursor — The Cursor tool exposed by this server

What it needs from you

  • Node.js >= 18.0.0 - No Microsoft Word or Office installation required - PDF export requires LibreOffice or pandoc (optional) ---

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Docx.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Docx's toolset — create_document, read_document, add_section and 6 more — is a fair guide to whether it matches your workflow. It is maintained by mdfifty50-boop; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
create_documentCreate a new .docx from a title and markdown content
read_documentExtract text, headings, paragraphs, and metadata from a .docx
add_sectionAppend a new section (heading + body) to an existing .docx
replace_textFind and replace text — ideal for template variable substitution
add_tableInsert a formatted table with bold headers into a .docx
merge_documentsCombine multiple .docx files into one
export_to_pdfConvert .docx to PDF via LibreOffice or pandoc
get_document_statsGet word count, page estimate, section count, table count
CursorThe Cursor tool exposed by this server.

How to install the Docx MCP server

{
  "mcpServers": {
    "docx-forge": {
      "command": "npx",
      "args": ["docx-forge-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 18.0.0 - No Microsoft Word or Office installation required - PDF export requires LibreOffice or pandoc (optional) ---

Example prompts to try

  • Use Docx to create document.
  • Use Docx to read document.
  • Use Docx to add section.

Frequently asked questions

It connects Docx to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (create_document, read_document, add_section, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Docx directly.