Oleafly is a live collaborative LaTeX, Typst and Markdown editor for research that offers a local MCP server and an oleafly mcp stdio command so outside AI clients can use its project tools.

Document Generator MCP server
An MCP server that generates professional Word and PDF documents from AI agents supporting the Model Context Protocol.
WHAT IT DOES
- •Generates Word (.docx) and PDF documents, with a tool for Word/PDF or both and another for PDF only.
- •Supports Markdown formatting including headings, lists, bold, italic, inline code, blockquotes, and horizontal lines.
- •Applies professional syntax highlighting to code blocks using a VS Code Dark theme with smart pagination.
- •Auto-detects JSON objects and arrays and formats them as code blocks without backticks.
BEST FOR
- •Creating Word or PDF reports and analyses from natural language prompts in an MCP agent.
- •Producing technical manuals and API documentation in both Word and PDF formats.
- •Documenting code with examples that benefit from syntax highlighting.
ABOUT DOCUMENT-GENERATOR-MCP
Document Generator MCP server is cataloged as an MCP server attributed to thiagotw10. An MCP server that generates professional Word and PDF documents from AI agents supporting the Model Context Protocol. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Document Generator MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Where are generated documents saved?
Documents are saved in the ./generated_documents/ folder with unique timestamps.
Which MCP agents can use this server?
It works with any agent implementing the Model Context Protocol, including Claude Desktop, Amazon Q Developer, Cline, and Continue.
Does content get split awkwardly across pages?
No; code blocks are kept from splitting between pages and headings are kept with following content.
上游原版 README
README.md · e51403b59690 · 采集于 2026-11-13 11:43:03 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Document Generator MCP
An MCP (Model Context Protocol) server to generate professional Word (.docx) and PDF documents from any AI agent that supports MCP, including Claude Desktop, Amazon Q Developer, Cline, Continue, and others.
🚀 Features
- ✅ Generate Word documents (.docx)
- ✅ Generate PDF documents
- ✅ Auto-detect JSON blocks (no backticks needed!) 🆕
- ✅ Professional syntax highlighting (VS Code Dark theme)
- ✅ Smart pagination (no content cuts between pages)
- ✅ 100% responsive formatting (respects A4 margins)
- ✅ Markdown support (headings, lists, bold, italic, code blocks)
- ✅ Automatic professional formatting
- ✅ Metadata (author, creation date)
📦 Installation
Via NPX (Recommended)
npx document-generator-mcp@latest
Via NPM Global
npm install -g document-generator-mcp
⚙️ Configuration
Claude Desktop
-
Locate the configuration file:
- Linux:
~/.config/claude-desktop/claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
-
Add this configuration:
{
"mcpServers": {
"document-generator": {
"command": "npx",
"args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"]
}
}
}
- Restart Claude Desktop
Amazon Q Developer
- Open VS Code with Amazon Q extension
- Access Amazon Q settings
- Add the MCP server:
{
"mcpServers": {
"document-generator": {
"command": "npx",
"args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"]
}
}
}
Other MCP Agents (Cline, Continue, etc.)
For other agents that support MCP, add the server configuration:
{
"name": "document-generator",
"command": "npx",
"args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"]
}
Check your agent's specific documentation for configuration details.
🎯 How to Use
After configuration, you can use natural commands in any MCP agent:
Example Prompts
- "Create a Word document about sales analysis"
- "Generate a PDF report about the project"
- "Make a technical manual in Word and PDF"
- "Create API documentation in Word format"
- "Document this JavaScript code with examples"
Available Tools
gerar_documento_word: Creates Word documents, PDF, or bothgerar_documento_pdf: Creates PDF documents only
📝 Supported Formatting
The MCP automatically processes:
Markdown
# Heading 1→ Heading 1 (20pt)## Heading 2→ Heading 2 (16pt, blue)### Heading 3→ Heading 3 (14pt)#### Heading 4→ Heading 4 (12pt)- Item→ Bulleted list1. Item→ Numbered list**text**→ Bold text*text*→ Italic text***text***→ Bold + Italic`code`→ Inline code> quote→ Blockquote---→ Horizontal line
Code Blocks
```javascript
async function example() {
const data = await fetch('api.com');
return data.json();
}
```
Auto-Detected JSON (New in v1.0.9!)
JSON objects and arrays are automatically detected and formatted as code blocks:
{
"status": "success",
"data": {
"users": [
{"id": 1, "name": "John"}
]
}
}
No need for ``` backticks! Just paste your JSON and it will be automatically formatted with syntax highlighting.
Syntax Highlighting Colors (VS Code Dark theme):
- 🟣 Keywords:
async,function,const,await, etc. (#C586C0) - 🟠 Strings:
"text",'text'(#CE9178) - 🟢 Comments:
// comment,/* block */(#6A9955) - 🟢 Numbers:
42,3.14,0xFF(#B5CEA8) - 🟡 Functions:
fetch,console.log(#DCDCAA) - 🔵 Types/Classes:
Promise,Array(#4EC9B0)
🎨 Features Highlights
Professional Syntax Highlighting
- Dark background (#1E1E1E) for code blocks
- VS Code Dark theme colors
- Language indicator header
- Automatic line wrapping
Smart Pagination
- Code blocks never split between pages
- Headings kept with following content
- Automatic page breaks when needed
- Consistent spacing
Responsive Formatting
- All content respects A4 margins
- Automatic line breaks for long text
- Proper width control for all elements
- No content overflow
🧪 Testing
To test if it's working:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | npx document-generator-mcp@latest
Expected output: List of available tools (gerar_documento_word, gerar_documento_pdf)
🔧 Troubleshooting
Error "use strict: not found"
If you get this error, npm is using an old cached version. Solutions:
- Use this optimized configuration:
{
"mcpServers": {
"document-generator": {
"command": "npx",
"args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"]
}
}
}
- Or clear the cache:
npm cache clean --force
rm -rf ~/.npm/_npx
Documents not generating
- Check if
generated_documents/folder exists - Verify Node.js version (18+ required)
- Check MCP server logs in your agent
📁 Generated Files
Documents are saved in ./generated_documents/ with unique timestamps.
Example: api_documentation_1759715959772.docx
🤖 Compatible Agents
This MCP works with any agent that implements the Model Context Protocol:
- ✅ Claude Desktop - Full native support
- ✅ Amazon Q Developer - Support via VS Code
- ✅ Cline (VS Code) - VS Code extension
- ✅ Continue - Code assistant with MCP
- ✅ Other MCP agents - Any compatible implementation
🤝 Contributing
Contributions are welcome! Open issues or pull requests on GitHub.
Development Setup
git clone https://github.com/thiagotw10/document-generator-mcp.git
cd document-generator-mcp
npm install
npm run build
📄 License
MIT License - see LICENSE file for details.
🔗 Links
- NPM Package: https://www.npmjs.com/package/document-generator-mcp
- GitHub Repository: https://github.com/thiagotw10/document-generator-mcp
- MCP Documentation: https://modelcontextprotocol.io
- Amazon Q MCP Guide: https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/qdev-mcp.html
⚠️ Requirements
- Node.js: 18+ required
- Platforms: Linux, macOS, Windows
- MCP Support: Any agent implementing Model Context Protocol
📊 Changelog
v1.0.9 (Latest)
- ✅ Auto-detect JSON blocks - No need for ``` backticks around JSON
- ✅ Automatically formats JSON objects and arrays as code blocks
- ✅ Validates JSON syntax before formatting
- ✅ Applies syntax highlighting to detected JSON
- ✅ Works in both Word and PDF documents
v1.0.8
- ✅ English documentation for international audience
- ✅ Improved README structure
v1.0.7
- ✅ Professional syntax highlighting in PDF (VS Code Dark theme)
- ✅ 100% responsive formatting (respects A4 margins)
- ✅ Smart pagination (no content cuts)
- ✅ Improved spacing after code blocks
- ✅ Visual parity between Word and PDF
Made with ❤️ by Thiago Oliveira
Transform natural language into professional documents with AI!
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Document Generator MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/document-generator-mcp)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related productivity work MCP Servers
Alternative and complementary servers in the same category
Buddy is an Android app that offers its phone tools through a local MCP server to Claude Code, Codex, OpenCode, Antigravity, and Grok sessions.

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

