TD

thiagotw10/document-generator-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

10 stars 4 forks Качество 67 Тренд 18MIT

Сервер MCP (Model Context Protocol) для создания профессиональных документов Word (.docx) и PDF от любого агента ИИ, который поддерживает MCP, включая Claude Desktop, Amazon Q Developer, Cline, Continue и...

Обзор

Сервер MCP (Model Context Protocol) для создания профессиональных документов Word (.docx) и PDF от любого агента ИИ, который поддерживает MCP, включая Claude Desktop, Amazon Q Developer, Cline, Continue и другие. Создайте документы Word (.docx) - Создайте PDF-документы - ✅ (не нужны затычки!) Профессиональное выделение синтаксиса (тема VS Code Dark) - Умная пагинация (без сокращений контента между страницами) - 100% отзывчивое форматирование (соответствует марже A4) - Поддержка разметки (заголовки, списки, жирные, курсивные, кодовые блоки) - Автоматическое профессиональное форматирование - Метаданные (автор, дата создания) 1.Найти файл конфигурации: - ~/.config/claude-desktop/claude desktop config.json - ~/Library/Application Support/Claude/claude desktop config.json - %APPDATA%\Claude\claude desktop config.json 1.Откройте VS-код с расширением Amazon Q 2. Доступ к настройкам Amazon Q 3.

Обзор (машинный перевод)

Сервер MCP (Model Context Protocol) для создания профессиональных документов Word (.docx) и PDF от любого агента ИИ, который поддерживает MCP, включая Claude Desktop, Amazon Q Developer, Cline, Continue и другие.

Feature Особенности

Генерировать документы Word (.docx) Создание PDF-документов Авто-детектирование блоков JSON (не нужны затычки!) Профессиональное выделение синтаксиса (тема VS Code Dark) Умная пагинация (нет сокращений контента между страницами) 100% отзывчивое форматирование (уважение маржи A4) Поддержка Markdown (заголовки, списки, жирные, курсивные, кодовые блоки) Автоматическое профессиональное форматирование Метаданные (автор, дата создания)

###Установка

Via NPX (рекомендуется)

###С помощью NPM Global

️ Конфигурация

###Клод Десктоп

1.Найти файл конфигурации:

  • **Linux: ** ~/.config/claude-desktop/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • **Windows: ** %APPDATA%\Claude\claude_desktop_config.json
  1. Добавить эту конфигурацию:

3 Перезагрузка Claude Desktop

Amazon Q Разработчик

1.Откройте VS-код с расширением Amazon Q 2 Доступ к настройкам Amazon Q 3. Добавить MCP-сервер:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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

npx document-generator-mcp@latest

Via NPM Global

npm install -g document-generator-mcp

⚙️ Configuration

Claude Desktop

  1. 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
  2. Add this configuration:

{
  "mcpServers": {
    "document-generator": {
      "command": "npx",
      "args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"]
    }
  }
}
  1. Restart Claude Desktop

Amazon Q Developer

  1. Open VS Code with Amazon Q extension
  2. Access Amazon Q settings
  3. 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 both
  • gerar_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 list
  • 1. Item → Numbered list
  • **text** → Bold text
  • *text* → Italic text
  • ***text*** → Bold + Italic
  • `code` → Inline code
  • > quote → Blockquote
  • --- → Horizontal line

Code Blocks

```javascript
Открыть полный README на GitHub

Установка

npx --yes --cache /tmp/.npx-cache document-generator-mcp@latest
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "document-generator": { "command": "npx", "args": ["--yes", "--cache", "/tmp/.npx-cache", "document-generator-mcp@latest"] } } }