Official MCP server for rendoc - Generate professional PDFs (invoices, contracts, reports, certificates) from Claude, Cursor, and other AI tools via reusable templates or inline HTML/Handlebars markup.
@rendoc/mcp-server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
The **rendoc MCP server** lets AI assistants like **Claude Desktop**, **Cursor**, and any other MCP-compatible client generate professional PDF documents on demand. Connect your AI to rendoc and it can create **invoices**, **contracts**, **reports**, **certificates**, and any other PDF — from reusable templates or inline HTML/Handlebars markup — all from a natural language prompt.
> Turn *"Generate an invoice for Acme Corp, 40 hours of consulting at €85/h"* into a delivered PDF in seconds.
Use Cases
| Use Case | Example Prompt |
|----------|----------------|
| **Invoices** | *"Generate an invoice for client X with these line items..."* |
| **Contracts** | *"Draft a freelance contract for TechStart SL, €18,000 fee, 50% upfront..."* |
| **Certificates** | *"Issue a course completion certificate for María González..."* |
| **Reports** | *"Create a March 2026 sales report with these KPIs..."* |
| **Bulk generation** | *"Generate certificates for all 50 attendees in this CSV"* |
| **Custom documents** | Anything you can describe in HTML + data |
See detailed walkthroughs in **examples/**.
Features
- **7 tools** for document generation, template management, and usage tracking
- **Template-based or inline** — save reusable templates or pass markup on the fly
- **Handlebars syntax** — use {{variables}}, {{#each}}, {{#if}} in your markup
- **Multiple paper sizes** — A4, Letter, Legal, A3, A5, portrait or landscape
- **Schema validation** — templates can declare a JSON Schema so the AI can't pass invalid data
- **Zero config** — just set RENDOC_API_KEY and go
- **Lightweight** — ~35 KB unpacked, pure TypeScript, only 2 runtime dependencies
- **Verified on Glama** — security, quality, and license checks passed
Quick Setup for Claude Desktop
Add this to your Claude Desktop configuration file (claude_desktop_config.json):
Restart Claude Desktop. The rendoc tools will appear in the MCP tools menu.
Quick Setup for Claude Code
Add this to your project or global settings (.claude/settings.json):
Quick Setup for Cursor
Add to ~/.cursor/mcp.json (or your project's .cursor/mcp.json):
Available Tools
| Tool | Description | Key Parameters |
|------|-------------|----------------|
| generate_document | Generate a PDF from a template or inline markup | template_id or markup, data, paper_size?, orientation?, filename? |
| list_templates | List available document templates | category? |
| preview_template | Inspect a template's markup, styles, and schema | template_id |
| create_template | Create a new reusable template | name, slug, markup, schema, category?, styles?, sample_data?, paper_size?, orientation?, is_public? |
| delete_template | Delete a template by ID | template_id |
| get_document | Get details of a generated document | document_id |
| get_usage | View monthly API usage statistics | _(none)_ |
Each tool returns structured JSON with download URLs, document IDs, and metadata the assistant can act on.