About docx4j Word documents
docx4j Word documents is an MCP server published by plutext in the Files category: read, convert and fill Word (.docx) documents: templates, Markdown/HTML in and out, PDF with math.
Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/plutext/docx4j-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (8)
convert_to_htmldocx → standalone HTML (visitor exporter; `image_dir_path` for images; optional `update_toc`).
Parameters not published.
convert_to_pdfdocx → PDF via XSL-FO / Apache FOP; equations and WMF/EMF drawings rendered as vectors; optional `update_toc`; reports font substitutions. Bundles metric-compatible fonts (Carlito, Caladea, Liberation, Tinos…).
Parameters not published.
describe_templateWhat data a template wants: skeleton XML + xpaths/conditions (OpenDoPE, bound content controls) or MERGEFIELD names and format switches (mail merge). Call before `fill_template`.
Parameters not published.
docx_to_markdowndocx → Markdown (structure preserved). Options: `tracked_changes` accept/markup, `image_dir_path`.
Parameters not published.
extract_textPlain text, one line per paragraph/table.
Parameters not published.
fill_templateFill a template, preserving its formatting. `data` is an XML string (OpenDoPE / bound controls; repeats and conditions processed) or a JSON object (mail merge).
Parameters not published.
html_to_docxHTML → docx via docx4j-ImportXHTML. Loose HTML accepted (normalised with jsoup); `h1`–`h6` map to heading styles; optional `styles_template_path`; `mode: altchunk` embeds the HTML for Word to convert on open. Remote images/stylesheets are never fetched.
Parameters not published.
markdown_to_docxMarkdown → properly styled docx (headings, numbering, GFM tables, footnotes, task lists, TeX math). Optional `styles_template_path`.
Parameters not published.
Ask AI
Ask AI about docx4j Word documents
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.