The Word tool carries a format argument, so one call can produce the Word file, the PDF or both, and the second tool exists for when a PDF is all you want. The part that saves real time is the code handling: dark-background syntax highlighting, JSON recognised even without fences, and pagination that refuses to split a code block across a page break.
A document generator for MCP clients. You give it a filename, a title and the body as Markdown; it produces a Word file, a PDF, or both, with headings, lists, quotes and syntax-highlighted code laid out properly.
- A Word file written from Markdown content, with a document title and an author (gerar_documento_word)
- The same call able to emit a PDF instead, or both formats at once, chosen by an argument
- A PDF-only path when that is all you want (gerar_documento_pdf)
- Four layout templates to choose from — a formal one with a rule under the title, a clean one with wide margins, an upper-case corporate one, and a plain default
- Markdown honoured: heading levels, bulleted and numbered lists, bold, italic, inline code, blockquotes and horizontal rules
- Code blocks rendered on a dark background with syntax colouring, and JSON detected and formatted even without fences
- Pagination that keeps a code block from splitting across pages and a heading with the text that follows it
- Content kept inside the page margins, with long lines wrapped rather than overflowing
Node.js. It runs straight from the published npm package with nothing to install first, and needs no keys or accounts. Files land in a generated-documents folder with a timestamp in the name.
One command — npx -y document-generator-mcp
