AI & MCP

The DocRenders MCP server lets Claude and any MCP-compatible AI agent generate PDFs directly — no code required.

MCP Server

Ask Claude to "generate an invoice for Acme Corp" and it will call the API, fill the template, and return a download link.

The server is published as docrenders-mcp on npm. Node.js 18+ is required.

Install for Claude Desktop

Add the following to your claude_desktop_config.json, then restart Claude Desktop.

{
  "mcpServers": {
    "docrenders": {
      "command": "npx",
      "args": ["-y", "docrenders-mcp"],
      "env": {
        "DOCRENDERS_API_KEY": "dcr_live_YOUR_API_KEY"
      }
    }
  }
}
OSConfig file location
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json

Install for Claude Code

Run the following command to add the server to your Claude Code configuration:

claude mcp add docrenders -- npx -y docrenders-mcp

Then set your API key:

claude mcp add docrenders --env DOCRENDERS_API_KEY=dcr_live_YOUR_API_KEY -- npx -y docrenders-mcp

Example prompts

  • "Generate an invoice PDF for Acme Corp, $2,500 for design work, due June 17."
  • "Create a PDF resume for Jordan Whistler, senior Go engineer."
  • "Convert this markdown to a PDF using the ai-summary template."
  • "How many renders have I used this month?"

MCP Tools Reference

ToolDescriptionKey parameters
render Convert Markdown or HTML to a PDF. Returns a signed download URL valid for 15 minutes. markdown or html (required); template, format, landscape (optional)
render_template Generate a PDF from a built-in or custom template with structured data. The template provides the layout and styling. template, data (required); format, landscape (optional)
render_template_preview Generate a preview PDF for a template using its built-in preview fields. Previews are cached — repeated calls return instantly and do not count against your render quota. template (required)
list_templates List all available templates with their categories, tags, and field schemas. Supports optional filtering by category or tag. category, tag (optional)
get_template Get the full field schema for a specific template, including field types, descriptions, and examples. name (required)
get_usage Check current period render count, plan limit, and rate limit for the authenticated account.

All templates and their fields are documented in the Templates section. The MCP server validates required fields before making a request and surfaces any missing_fields errors as readable messages. Use list_templates or get_template to let the agent discover schemas at runtime.

Custom templates are automatically discovered when the MCP server starts — it fetches your account's templates and exposes them alongside the built-in ones. See Using Custom Templates in API & MCP for details.