Because content and styles are separate calls, a document can be taken apart and reassembled in steps — read the template's styles, put them onto the draft, then write the content — instead of one reformat that either works or does not.
A .docx reader and writer built as four paginated tools. Content blocks and the paragraph style catalogue are read and written separately, which is what lets a document be reformatted in steps rather than through one all-or-nothing pass.
- Content blocks — paragraphs and tables — read in pages rather than all at once
- A document's paragraph style catalogue read on its own
- Content written back, with the file created if it does not exist yet
- Style definitions unioned onto an existing file, the incoming definition winning any conflict
A recent Python runtime. It works on files on disk, so the documents have to be reachable from wherever the server runs.
One command — docker run --rm -i docs-mcp
