
一个MCP(模式上下文协议)服务器,从任何支持MCP的AI代理生成专业Word(.docx)和PDF文件,包括Claude桌面,Amazon Q开发者,Cline,Cread,和.
概览
一个MCP(模式上下文协议)服务器,从任何支持MCP的AI代理生成专业Word(.docx)和PDF文件,包括克洛德桌面,亚马逊Q开发者,Cline,Creep等. - 生成 Word 文档 (. docx) - 生成 PDF 文档 - (不需要回击!) QQ- 专业语法强调( VS 代码 暗号主题)- 智能页标( 页面之间没有内容剪切)- 100% 响应格式化( 尊重 A4 边距)- Markdown 支持( 标题, 列表, 粗体, 斜体, 代码块)- 自动专业格式化 - QQ元数据( 作者, 创建日期) 1. 定位配置文件: - ~/.config/claude-desktop/claude desktop config.json -~/图书馆/应用程序支持/Claude/claude desktop config.json -% APDATA+Claude\claude desktop config.json 1. 使用亚马逊Q分机的开口VS代码 2. 访问亚马逊Q设置 3.
概述(AI 翻译)
一个MCP(模式上下文协议)服务器,从任何支持MCP的AI代理生成专业Word(.docx)和PDF文件,包括克洛德桌面,亚马逊Q开发者,Cline,Creep等.
□ * * * * 特点
- 生成Word文档(.docx)
- 生成 PDF 文档 -=YTET -伊甸园字幕组=- 翻译:
- 专业语法突出化(VS代码黑暗主题)
- 智能页标(各页之间没有内容剪接)
- 100%的响应格式(尊重A4边距)
- Markdown支持(标题、列表、粗体、斜体、代码块)
- 自动专业格式化
- 元数据(作者,创建日期)
□ 安装
Via NPX(建议)
全球国家预防机制
□ QQ 配置
克劳德桌面
- 定位配置文件:
- ** 利纳:**
~/.config/claude-desktop/claude_desktop_config.json - **
~/Library/Application Support/Claude/claude_desktop_config.json - 窗户:
%APPDATA%\Claude\claude_desktop_config.json
-
添加此配置:
-
重新启动克洛德桌面
亚马逊 Q 开发者
- 带有Amazon Q扩展的开放 VS 代码
- 访问亚马逊Q设置
- 添加 MCP 服务器 :
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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
安装
npx --yes --cache /tmp/.npx-cache document-generator-mcp@latest配置
{
"mcpServers": {
"document-generator": {
"command": "npx",
"args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"]
}
}
}