Docx MCP Server

Professional document generation from structured data

Local serverstdio

What is the Docx MCP Server?

Professional document generation from structured data

The short version

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

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) ---

Recorded tools

  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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

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

Professional document generation from structured data Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.