rendoc-mcp-server is the official MCP (Model Context Protocol) server for rendoc, used to let AI assistants generate professional PDF documents on demand. It is aimed at Claude Desktop, Cursor, and other MCP-compatible clients, turning natural language prompts into actual PDF files, such as invoices, contracts, reports, certificates, and more.
Purpose The server converts the AI assistant's natural language tool calls into authenticated REST requests to the rendoc API, and returns structured JSON responses containing the PDF download URL, document ID, and metadata for the assistant to process further. For example, a prompt such as "generate an invoice for Acme Corp, 40 hours of consulting, 85 euros per hour" can become a deliverable PDF in seconds.
Main capabilities
- Provides 7 tools, covering document generation, template management, and usage tracking.
- Supports both template-based and inline markup approaches: you can save reusable templates or pass in markup on the fly.
- Supports Handlebars syntax, allowing {{variables}}, {{#each}}, and {{#if}} in markup.
- Supports multiple paper sizes: A4, Letter, Legal, A3, A5, as well as portrait or landscape orientation.
- Supports Schema validation: templates can declare a JSON Schema, so the AI cannot pass in invalid data.
- Each tool returns structured JSON, including a download URL, document ID, and metadata.
How to use Configuration is simple; you only need to set the RENDOC_API_KEY environment variable. The official documentation provides quick setup instructions for Claude Desktop, Claude Code, and Cursor:
- Claude Desktop: add the configuration in claude_desktop_config.json; after restarting, the rendoc tools will appear in the MCP tools menu.
- Claude Code: add the configuration in the project or global settings (.claude/settings.json).
- Cursor: add it to ~/.cursor/mcp.json or the project's .cursor/mcp.json. The API key needs to be registered at rendoc.dev; the firstgo to the API Keys dashboard to create and copy it into the MCP client configuration.
Use cases The official examples directory provides detailed walkthroughs of multiple real prompts and tool calls, including:
- 01 — Generate an invoice using inline markup: generate an invoice in a single pass.
- 02 — Freelance contract template: create once, reuse forever.
- 03 — Generate a certificate from a saved template: multi-step tool discovery.
- 04 — Monthly sales report: use CSS to implement rich visualization.
- 05 — Batch generate from a dataset: generate 50 PDFs from one prompt.
Limitations and notes The project is written in pure TypeScript, is about 35 KB unpacked, has only 2 runtime dependencies, and uses the MIT license. It has passed security, quality, and license checks on Glama. For security-related issues, refer to SECURITY.md and email info@rendoc.dev; do not publicly submit an issue. Contribution guidelines are in CONTRIBUTING.md. Official SDKs are also provided: @rendoc/sdk (TypeScript) and rendoc (Python).