yalamber avatar

pdfzen

yalamber/pdfzen

Gives Claude direct access to pdfzen's HTML-to-PDF rendering engine through the x402 micropayment protocol. The server exposes the same /v1/render/pdf endpoint developers use, letting agents generate PDFs from 45 starter templates or raw HTML by paying per render with USDC. No API key setup or account management needed on your end. Useful when you want Claude to programmatically generate invoices, reports, or formatted documents during a conversation without pre-funding credits or managing auth tokens. The agent pays roughly half a cent per render directly from its wallet, and you get the PDF bytes back in the response.

tools
4
transport
HTTP
last updated
May 14, 2026

Install

From registry metadata
$ npx add-mcp https://api.pdfzen.site/mcp --name render

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http render https://api.pdfzen.site/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 4 tools

Verified live against the running server on Nov 6, 2026.

list_startersList pdfzen's 45 public starter templates — invoices, receipts, contracts, certificates, NDAs, letters, reports, resumes, boarding passes, menus, bank statements, lab reports, lease agreements, performance reviews, and more. Returns an array of { slug, name, description, icon,...

List pdfzen's 45 public starter templates — invoices, receipts, contracts, certificates, NDAs, letters, reports, resumes, boarding passes, menus, bank statements, lab reports, lease agreements, performance reviews, and more. Returns an array of { slug, name, description, icon,...

No parameters. Call it with no arguments.

get_starterFetch the full HTML body, CSS, sampleData, and pageOptions for one starter template by slug. Use this when you need to understand the exact shape of `data` the template expects before calling render_template_to_pdf, or when you want to fork a starter into custom HTML. Free, no...1 params

Fetch the full HTML body, CSS, sampleData, and pageOptions for one starter template by slug. Use this when you need to understand the exact shape of `data` the template expects before calling render_template_to_pdf, or when you want to fork a starter into custom HTML. Free, no...

Parameters* required
slug*string
The starter slug. Examples: "invoice", "receipt", "certificate", "contract", "nda", "boarding-pass", "menu". Call list_starters to discover all 45 slugs.
render_template_to_pdfPrepare a paid PDF render from one of the 45 starter templates. Validates your template + data and returns the exact, ready-to-execute HTTP request to run against pdfzen's render endpoint — POST /v402/render/pdf (x402, $0.006 USDC on Base, no API key) or POST /v1/render/pdf (p...3 params

Prepare a paid PDF render from one of the 45 starter templates. Validates your template + data and returns the exact, ready-to-execute HTTP request to run against pdfzen's render endpoint — POST /v402/render/pdf (x402, $0.006 USDC on Base, no API key) or POST /v1/render/pdf (p...

Parameters* required
dataobject
Handlebars context. Each starter expects a specific shape — call get_starter to see the sampleData and dataKeys for the chosen slug. Your fields merge ON TOP of sampleData, so you can supply only t...
pageOptionsobject
Page format/margin/orientation overrides. Defaults come from the starter (most are A4 portrait). Example: { "format": "Letter", "landscape": true }.
template*string
Slug of the starter to render (e.g. "invoice", "receipt", "certificate"). Call list_starters first if unsure which fits the user request.
render_html_to_pdfPrepare a paid PDF render from arbitrary Handlebars-flavoured HTML. Use only when no starter fits (one-off layouts, custom branding). Prefer render_template_to_pdf when a starter matches. Validates your HTML and returns the exact, ready-to-execute HTTP request to run against p...4 params

Prepare a paid PDF render from arbitrary Handlebars-flavoured HTML. Use only when no starter fits (one-off layouts, custom branding). Prefer render_template_to_pdf when a starter matches. Validates your HTML and returns the exact, ready-to-execute HTTP request to run against p...

Parameters* required
cssstring
Optional CSS injected into the document head. Alternative to inline <style> in `html`.
dataobject
Handlebars context object resolved against the {{...}} expressions in `html`.
html*string
The HTML body. Supports Handlebars {{ }} expressions resolved against `data`, plus pdfzen helpers ({{barChart}}, {{lineChart}}, {{pageBreak}}, {{#each}}, {{#if eq}}). Don't include <html>/<head>; j...
pageOptionsobject
Page format/margin/orientation. Defaults to A4 portrait. Example: { "format": "A4", "margin": { "top": "20mm" } }.

Sponsors

Readme

Details

Repository
github.com/yalamber/pdfzen
Website
pdfzen.site
Category
Design & Creative
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026

Related Design & Creative MCP servers

View all
1skyblue3925-svg avatarGeo Figure (지리 시험 지도·그래프)skyblue3925-svg/geo-figure-mcp지리 시험용 지도·그래프를 실제 통계로, 도형 하나하나 고칠 수 있는 PPTX·HWPX로 만든다.0stars
2investigation-game avatarInvestigation Game Apptech.skybridge.investigation-game/investigation-gameFind out who killed Claude by interrogating the LLM driven suspects...0stars
3wei-ai-lab avatarClinical Trial Designwei-ai-lab/clinical-trial-designPhase 2/3 clinical trial design via gsDesign / gsDesign2: sample size, GS boundaries, multiplicity0stars
43keys avatarWish Gameworld.3keys/wish-gameWish game — every agent wish permanently reshapes a shared world. Free, no key needed.0stars
5wspringer avatarMath Svg Mcpwspringer/math-svg-mcpConvert LaTeX math expressions to crisp, scalable SVG images0stars
6yjhann33-design avatarKorea Stock Insight Mcpyjhann33-design/korea-stock-insight-mcpKorean stock market MCP — DART disclosures + KRX prices, English-first for global LLM analysts.0stars