docx4j Word documents MCP server
io.github.plutext/docx4j-mcp·v0.2.0Read, convert and fill Word (.docx) documents: templates, Markdown/HTML in and out, PDF with math.
0 stars
Reviews
Write oneNobody has reviewed docx4j Word documents yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
docx4j Word documents tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-15 · same rubric, same numbers if you re-run it
- –Code scanpackage could not be scannedn/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 23 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How docx4j Word documents compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 48,243 servers
Install docx4j Word documents in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the docx4j Word documents repository's README, as published. We do not edit it. Read it on GitHub
docx4j-mcp
A Model Context Protocol server that exposes docx4j's engine to AI agents: read, convert and fill Word (.docx) documents from Claude Desktop, Claude Code, or any MCP client.
Engine: docx4j 17.1.0 (the server versions independently; the bundled docx4j version is in the pom, the server's startup log, and its MCP instructions).
Status: phase 3 — all tools work over stdio against released docx4j 17.0.4; packaged as a runnable jar, an .mcpb bundle, an OCI image and a Claude Code plugin. The plan, tool surface and phasing are in CR-mcp-server.md.
Build
Requires JDK 17+. All docx4j dependencies (docx4j 17.1.0, ImportXHTML 17.0.4) come from Maven Central.
mvn package # -> target/docx4j-mcp.jar (shaded, runnable)
mvn test # JUnit 5 tests against the tool handlers directlyRun
java -jar target/docx4j-mcp.jar --root /path/to/documents [--root ...] [--max-inline-chars N]Bare directory arguments are also accepted as roots (this is what the .mcpb bundle's folder picker passes).
Claude Desktop, one click
Install docx4j-mcp.mcpb from the GitHub release (Settings → Extensions), pick the folders the server may touch, done. Built locally with packaging/build-mcpb.sh. Requires Java 17+ on your PATH.
Docker
docker run -i --rm -v /path/to/documents:/data ghcr.io/plutext/docx4j-mcp(paths in tool calls are then container paths under /data; packaging/docker/Dockerfile to build locally).
Claude Code plugin
packaging/claude-plugin/ bundles the server config and a skill for the template/authoring workflows. Set DOCX4JMCPJAR (path to the jar) and optionally DOCX4JMCPROOTS.
Releasing
Tag vX.Y.Z: .github/workflows/release.yml builds jar + mcpb, attaches them to the GitHub release, pushes ghcr.io/plutext/docx4j-mcp, and publishes server.json (sha filled in) to the official MCP registry via GitHub OIDC.
Every file path an agent passes must resolve inside one of the --root directories (symlinks are resolved first). There is no default root; the server refuses to start without one. Logging goes to stderr; stdout is the protocol. Tools that return text inline cap it at --max-inline-chars (default 200000) and otherwise write to output_path or truncate with a marker.
Claude Code (.mcp.json in your project)
{
"mcpServers": {
"docx4j": {
"command": "java",
"args": ["-jar", "/path/to/docx4j-mcp.jar", "--root", "/path/to/documents"]
}
}
}Claude Desktop (claudedesktopconfig.json)
{
"mcpServers": {
"docx4j": {
"command": "java",
"args": ["-jar", "/path/to/docx4j-mcp.jar", "--root", "/Users/you/Documents"]
}
}
}Tools
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
docx4j Word documents: common questions
- Is docx4j Word documents MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the docx4j Word documents safety report
- Does docx4j Word documents need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is docx4j Word documents maintained?
- The last commit was 44 days ago (2026-09-22). The latest release is v0.2.0.
- What can I use instead of docx4j Word documents?
- Servers from other publishers that do the same job: kordoc MCP server and Docling MCP server.
Alternatives to docx4j Word documents
Same job from other publishers: the closest match first, then the best rated.
- kordocParse Korean documents (HWP, HWPX, PDF, XLSX, DOCX, PPTX) to Markdown; fill forms, diff, render.not reviewedWidely usedA
- Docling MCPConvert PDFs and other documents to structured formats via Docling, for AI applications.not reviewedEstablishedA