{
  "markdown": "# DocuQueue — MCP Document Generation Server\n\n[![npm version](https://img.shields.io/npm/v/docuqueue-mcp.svg)](https://www.npmjs.com/package/docuqueue-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Glama](https://glama.ai/mcp/servers/docuqueue/docuqueue-mcp/badges/score.svg)](https://glama.ai/mcp/servers/docuqueue/docuqueue-mcp)\n\n> Generate PDFs, receipts, invoices, and manage documents from AI chat. Works with Claude, ChatGPT, Cursor, and any MCP-compatible client. MCP server for ecommerce receipts, invoices, contracts, and document generation.\n\n**MCP document generation** lets AI assistants like Claude, ChatGPT, and Cursor create PDFs, contracts, and invoices directly from chat. The Model Context Protocol (MCP) connects your AI agent to a document generation API — no custom integration code required. DocuQueue is an MCP server that exposes tools like `generate_document`, `fill_template`, and `batch_generate` for any MCP-compatible client.\n\n## TL;DR\n\n```bash\nclaude mcp add docuqueue -e DOCUQUEUE_API_KEY=your_api_key -- npx docuqueue-mcp\n```\n\n## Features\n\n- **Template Management**: Browse, create, and preview document templates\n- **PDF Generation**: Fill templates with data and generate PDFs instantly\n- **Form Filling**: Auto-detect and fill PDF form fields (W-9, W-4, contracts)\n- **Batch Processing**: Generate multiple documents from CSV/Excel data\n- **Brand Extraction**: Extract colors, fonts, and logos from any website\n- **DOCX Support**: Upload and use Word documents as templates\n- **Tool Annotations**: Read-only and destructive operations clearly marked\n\n## Common Forms\n\nFill and generate these popular forms directly from AI chat:\n\n| Form | Description | Link |\n|------|-------------|------|\n| W-9 | Request for Taxpayer Identification Number | [Fill Online](https://docuqueue.com/w-9-form) |\n| W-4 | Employee's Withholding Certificate | [Fill Online](https://docuqueue.com/w-4-form) |\n| I-9 | Employment Eligibility Verification | [Fill Online](https://docuqueue.com/i-9-form) |\n| 1040 | U.S. Individual Income Tax Return | [Fill Online](https://docuqueue.com/1040-form) |\n\n## Quick Start\n\n### Option 1: Hosted (Recommended)\n\nNo installation required. Add this URL to your AI client:\n\n```\nhttps://docuqueue.com/mcp/sse\n```\n\n### Option 2: Local Install\n\n```bash\n# Claude Code\nclaude mcp add docuqueue -e DOCUQUEUE_API_KEY=your_api_key -- npx docuqueue-mcp\n\n# Or install globally\nnpm install -g docuqueue-mcp\n```\n\n## Client Integration\n\n### Claude.ai (Hosted)\n\n1. Go to **Settings → Connectors → Add custom connector**\n2. Paste: `https://docuqueue.com/mcp/sse`\n3. Click **Authorize** in the browser popup\n4. Start generating documents\n\n### Claude Desktop\n\nAdd to `~/.config/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"docuqueue\": {\n      \"command\": \"npx\",\n      \"args\": [\"docuqueue-mcp\"],\n      \"env\": {\n        \"DOCUQUEUE_API_KEY\": \"your_api_key\"\n      }\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add docuqueue -e DOCUQUEUE_API_KEY=your_api_key -- npx docuqueue-mcp\n```\n\n### Codex\n\nAdd to `~/.codex/config.toml`:\n\n```toml\n[mcp_servers.docuqueue]\ncommand = \"npx\"\nargs = [\"docuqueue-mcp\"]\n\n[mcp_servers.docuqueue.env]\nDOCUQUEUE_API_KEY = \"your_api_key\"\n```\n\n### OpenCode\n\nAdd to `~/.config/opencode/opencode.jsonc`:\n\n```json\n{\n  \"mcp\": {\n    \"docuqueue\": {\n      \"type\": \"local\",\n      \"command\": [\"npx\", \"docuqueue-mcp\"],\n      \"env\": {\n        \"DOCUQUEUE_API_KEY\": \"your_api_key\"\n      }\n    }\n  }\n}\n```\n\n### Cursor / Windsurf\n\nAdd to `~/.cursor/mcp.json` or `~/.codeium/windsurf/mcp_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"docuqueue\": {\n      \"command\": \"npx\",\n      \"args\": [\"docuqueue-mcp\"],\n      \"env\": {\n        \"DOCUQUEUE_API_KEY\": \"your_api_key\"\n      }\n    }\n  }\n}\n```\n\n### ChatGPT\n\n1. Go to **Settings → Connectors → Add custom connector**\n2. Enter URL: `https://docuqueue.com/mcp/sse`\n3. Add header: `Authorization: Bearer YOUR_API_KEY`\n\n## Available Tools\n\n### Templates\n\n| Tool | Description | Annotations |\n|------|-------------|-------------|\n| `list_templates` | Browse available document designs | Read-only |\n| `create_template` | Design a new document layout | Write |\n| `preview_template` | See how your document will look | Read-only |\n| `upload_docx_template` | Use your own Word document as a design | Write |\n\n### Document Generation\n\n| Tool | Description | Annotations |\n|------|-------------|-------------|\n| `fill_template` | Create a document with your data | Write |\n| `get_status` | Check if your document is ready | Read-only |\n| `download_pdf` | Get your finished document | Read-only |\n\n### Branding\n\n| Tool | Description | Annotations |\n|------|-------------|-------------|\n| `extract_branding` | Match your company's visual style from their website | Read-only (external) |\n| `get_branding` | View your saved style settings | Read-only |\n\n## Comparison with Other MCP Document Servers\n\n| Feature | DocuQueue | DocsAutomator | Carbone | PDF Generator API |\n|---------|-----------|---------------|---------|-------------------|\n| PDF generation | ✓ | ✓ | ✓ | ✓ |\n| DOCX templates | ✓ | ✗ | ✗ | ✗ |\n| PDF form filling | ✓ | ✗ | ✗ | ✗ |\n| Batch processing | ✓ | ✓ | ✗ | ✓ |\n| Free tier | 25 credits | Limited | ✓ | Sandbox |\n| MCP server | ✓ | ✓ | ✓ | ✓ |\n| Visual template editor | ✓ | ✗ | ✗ | ✓ |\n\n## Tool Annotations\n\nDocuQueue MCP tools include [MCP ToolAnnotations](https://modelcontextprotocol.io/specification/2025-03-26/server/tools#toolannotations) so clients can:\n\n- Distinguish **read-only** tools from write-capable tools\n- Understand which operations are **destructive**\n- Identify tools that access **external resources**\n\n| Tool | `readOnlyHint` | `destructiveHint` | `idempotentHint` | `openWorldHint` |\n|------|----------------|-------------------|------------------|-----------------|\n| `list_templates` | `true` | `false` | `true` | `false` |\n| `create_template` | `false` | `false` | `false` | `false` |\n| `preview_template` | `true` | `false` | `true` | `false` |\n| `fill_template` | `false` | `false` | `false` | `false` |\n| `get_status` | `true` | `false` | `true` | `false` |\n| `download_pdf` | `true` | `false` | `true` | `false` |\n| `extract_branding` | `true` | `false` | `true` | `true` |\n| `get_branding` | `true` | `false` | `true` | `false` |\n| `upload_docx_template` | `false` | `false` | `false` | `false` |\n\n## Usage Examples\n\nEach example is a prompt you can paste directly into your AI chat:\n\n### Generate an invoice\n\n> Create an invoice for Acme Corp, 3 widgets at $50 each, 10% tax\n\nThe AI will list templates, preview the invoice, generate the PDF, and return a download link.\n\n### Generate a certificate\n\n> Create a certificate for John Doe, completed the Python bootcamp on August 12, 2026\n\n### Generate a contract\n\n> Create an NDA between Acme Corp and Globex Corp, effective January 1, 2026\n\n### Fill a form\n\n> Fill in this W-9 form: name \"Acme Corp\", EIN \"12-3456789\", address \"123 Main St\"\n\n### Extract branding from a website\n\n> Extract the brand colors and fonts from https://stripe.com\n\n### Generate a receipt\n\n> Create a receipt for customer John Smith, order #ORD-2024-0892, 3x Widget Pro at $24.99 each, subtotal $74.97, tax $5.62, total $80.59, paid with Visa ending in 4242\n\n### Upload a custom template\n\n> Upload this Word document as a template: /path/to/contract.docx\n\n## Configuration\n\n| Environment Variable | Required | Description |\n|---------------------|----------|-------------|\n| `DOCUQUEUE_API_KEY` | Yes* | Your DocuQueue API key |\n\n*Not required when using hosted OAuth mode.\n\nGet your API key from [docuqueue.com/dashboard](https://docuqueue.com/dashboard).\n\n## How It Works\n\n1. **Connect** — Add the MCP server to your client with your API key\n2. **Browse** — Use `list_templates` to find a template\n3. **Preview** — Use `preview_template` to see how it looks with your data\n4. **Generate** — Use `fill_template` to create the PDF\n5. **Download** — Use `download_pdf` to get the finished document\n\n## Troubleshooting\n\n| Symptom | Fix |\n|---------|-----|\n| Authentication error | Ask the AI: \"re-authenticate with DocuQueue\" |\n| Connection refused | Check the server URL is `https://docuqueue.com/mcp/sse` |\n| Rate limited | Wait 1 minute, then retry |\n| Template not found | Ask the AI to list templates first |\n| Tool not appearing | Restart your MCP client after adding the server |\n\n## Privacy\n\nDocuQueue MCP is a remote server — your requests go to DocuQueue's servers and return generated PDFs. Authentication tokens are sent only to DocuQueue's services during OAuth login and API calls. Documents are generated on-the-fly and not stored indefinitely.\n\n## Development\n\n### Prerequisites\n\n- Node.js 18+\n- npm or yarn\n\n### Setup\n\n```bash\ngit clone https://github.com/docuqueue/docuqueue-mcp.git\ncd docuqueue-mcp\nnpm install\n```\n\n### Run Locally\n\n```bash\n# Development mode with hot reload\nnpm run dev\n\n# Or build and run\nnpm run build\nnpm start\n```\n\n### Test\n\n```bash\nnpm test\n```\n\n### Project Structure\n\n```\nsrc/\n├── index.ts          # Local MCP server (stdio)\n├── remote.ts         # Remote MCP server (SSE/HTTP)\n├── config.ts         # Configuration management\n├── tools/            # Tool implementations\n│   ├── listTemplates.ts\n│   ├── createTemplate.ts\n│   ├── fillTemplate.ts\n│   ├── previewTemplate.ts\n│   ├── getStatus.ts\n│   ├── downloadPdf.ts\n│   ├── uploadDocxTemplate.ts\n│   └── uploadPdf.ts\n├── branding/         # Brand extraction\n├── api/              # API client\n├── errors/           # Error handling\n└── types/            # TypeScript types\n```\n\n## License\n\nMIT\n\n## Links\n\n- Website: [docuqueue.com](https://docuqueue.com)\n- MCP page: [docuqueue.com/mcp](https://docuqueue.com/mcp)\n- API docs: [docuqueue.com/redoc](https://docuqueue.com/redoc)\n- GitHub: [github.com/docuqueue/docuqueue-mcp](https://github.com/docuqueue/docuqueue-mcp)\n- Issues: [github.com/docuqueue/docuqueue-mcp/issues](https://github.com/docuqueue/docuqueue-mcp/issues)\n",
  "bytes": 10012,
  "sha": "a09c150c93e514e0e9711ba51f0dbd689bee25f93050f108741c00b3c6c904df",
  "repo_slug": "docuqueue/docuqueue-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_dvcoolarun_docuqueue_mcp_5428fc1f/readme"
}