mcpField
R
rendoc-mcp-server

rendoc-mcp-server

Local
github.com/yoryocoruxo-aiProductivity1Updated 28w ago

About rendoc-mcp-server

@rendoc/mcp-server connects MCP-compatible AI assistants to rendoc for generating PDFs from reusable templates or inline markup. It supports document creation and template management, returning structured results with download URLs.

Key features

  1. 01Generate PDFs from templates or inline markup
  2. 02Create and manage reusable templates
  3. 03Use Handlebars variables and control blocks
  4. 04Validate data against JSON Schema
  5. 05Choose paper size and orientation
  6. 06Inspect documents and usage

Use cases

  1. 01Create invoices, contracts, or reports
  2. 02Issue certificates from saved templates
  3. 03Generate PDFs in bulk from a dataset

MCP support

The server exposes seven tools for PDF generation, template management, and usage tracking to MCP clients over stdio. It sends authenticated REST requests to the rendoc API and returns structured results with PDF download URLs.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"yoryocoruxo-ai-rendoc": {
"command": "npx",
"args": [
"-y",
"@rendoc/mcp-server"
],
"env": {
"RENDOC_API_KEY": "<RENDOC_API_KEY>"
}
}
}
}
Run commandnpx -y @rendoc/mcp-server
Environment variables to set
RENDOC_API_KEYSecretYour rendoc API key from https://rendoc.dev/dashboard

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@rendoc/mcp-server1.0.9

Tools

7

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
dataobjectYesKey-value data to populate the template placeholders.
markupstringNoInline HTML/Handlebars markup template. Use when you don't have a saved template.
filenamestringNoCustom filename for the generated PDF (e.g. 'invoice-2024.pdf').
paper_sizeenumNoPaper size for the PDF. Defaults to A4.A4 | LETTER | LEGAL | A3 | A5
orientationenumNoPage orientation. Defaults to portrait.portrait | landscape
template_idstringNoID of a saved template to use. Mutually exclusive with markup.

Details

From the project README

@rendoc/mcp-server

npm version License: MIT CI

rendoc MCP server

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 CaseExample 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 documentsAnything 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):

{
  "mcpServers": {
    "rendoc": {
      "command": "npx",
      "args": ["-y", "@rendoc/mcp-server"],
      "env": {
        "RENDOC_API_KEY": "your-api-key"
      }
    }
  }
}

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):

{
  "mcpServers": {
    "rendoc": {
      "command": "npx",
      "args": ["-y", "@rendoc/mcp-server"],
      "env": {
        "RENDOC_API_KEY": "your-api-key"
      }
    }
  }
}

Quick Setup for Cursor

Add to ~/.cursor/mcp.json (or your project's .cursor/mcp.json):

{
  "mcpServers": {
    "rendoc": {
      "command": "npx",
      "args": ["-y", "@rendoc/mcp-server"],
      "env": {
        "RENDOC_API_KEY": "your-api-key"
      }
    }
  }
}

Available Tools

ToolDescriptionKey Parameters
generate_documentGenerate a PDF from a template or inline markuptemplate_id or markup, data, paper_size?, orientation?, filename?
list_templatesList available document templatescategory?
preview_templateInspect a template's markup, styles, and schematemplate_id
create_templateCreate a new reusable templatename, slug, markup, schema, category?, styles?, sample_data?, paper_size?, orientation?, is_public?
delete_templateDelete a template by IDtemplate_id
get_documentGet details of a generated documentdocument_id
get_usageView monthly API usage statistics(none)

Each tool returns structured JSON with download URLs, document IDs, and metadata the assistant can act on.

Get an API Key

  1. Sign up at rendoc.dev
  2. Go to the API Keys dashboard
  3. Create a new key and copy it into your MCP client config

Environment Variables

VariableRequiredDefaultDescription
RENDOC_API_KEYYes—Your rendoc API key for authentication
RENDOC_API_URLNohttps://rendoc.devBase URL for the rendoc API (useful for self-hosted instances)

Examples

Detailed walkthroughs with real prompts and tool calls:

How It Works

┌──────────────┐   MCP/stdio    ┌────────────────────┐   HTTPS   ┌─────────────┐
│ Claude Code  │ ─────────────▶ │ @rendoc/mcp-server │ ────────▶ │ rendoc API  │
│ / Desktop    │                │   (this package)    │           │  (PDF gen)  │
└──────────────┘ ◀───────────── └────────────────────┘ ◀──────── └─────────────┘
        ▲         tool results                        download URL
        │
        └── User prompt: "Generate an invoice for..."

The MCP server translates natural language tool calls from your AI assistant into authenticated REST requests to the rendoc API, and returns structured responses with PDF download URLs.

Contributing

Contributions are welcome. See CONTRIBUTING.md for development setup and PR guidelines.

For security issues, please see SECURITY.md and email [email protected] — do not open a public issue.

Links

License

MIT — see LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.