pagenull/mcp
@pagenull/mcp
An MCP server for pagenull: let an AI assistant turn HTML or a URL into a PDF or screenshot, render your templates, check receipts and see your usage. It runs on your machine over stdio and calls the pagenull API with your own key.
Files come back to the assistant as base64, or are written to a path you give with save_to. pagenull keeps no copy either way.
Tools
Tool | What it does | API call |
| HTML or a public URL to PDF: format, margins, landscape, backgrounds, page numbers, test mode, and any other API option |
|
| HTML or a public URL to PNG or JPEG |
|
| Your saved templates and the built-in ones |
|
| A template plus JSON data to PDF |
|
| Check a receipt's signature with pagenull's published key, and that a file matches it |
|
| This month's renders, limit and rate limit |
|
Every render result has the file plus renderId, receipt, warnings, pages, sha256 and quota. Errors come back with
the API's own code and message (see errors), so the assistant can fix the request.
save_to writes the file on your machine instead of returning base64. Use it for large files, and when you'd rather the
PDF didn't pass through the AI provider at all. The folder must exist; an existing file is only replaced with
overwrite: true.
Related MCP server: screenshot
Settings
Variable | |
| Your API key, from the dashboard. Needed for everything except |
| Optional. Default |
The server never logs, and the key only goes into the Authorization header of requests to the API.
Setup
Requires Node.js 18 or later.
Claude Desktop
In claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"pagenull": {
"command": "npx",
"args": ["-y", "@pagenull/mcp"],
"env": { "PAGENULL_API_KEY": "pm_live_…" }
}
}
}Claude Code
claude mcp add pagenull -e PAGENULL_API_KEY=pm_live_… -- npx -y @pagenull/mcpCursor
In ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), the same mcpServers block as for Claude Desktop.
VS Code
In .vscode/mcp.json. VS Code asks for the key once and keeps it out of the file:
{
"inputs": [{ "type": "promptString", "id": "pagenull-key", "description": "pagenull API key", "password": true }],
"servers": {
"pagenull": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@pagenull/mcp"],
"env": { "PAGENULL_API_KEY": "${input:pagenull-key}" }
}
}
}Windows
If the client says it can't find
npx, run it throughcmd:"command": "cmd", "args": ["/c", "npx", "-y", "@pagenull/mcp"].To try the server by hand in PowerShell:
$env:PAGENULL_API_KEY = "pm_live_…"; npx -y @pagenull/mcp. It then waits for an MCP client on stdin; stop it with Ctrl+C.save_totakes Windows paths, e.g.C:\Users\you\Documents\invoice.pdf.
Privacy
pagenull renders and keeps nothing, whoever calls it. With an AI assistant in the loop, the HTML you ask it to render, and the
base64 PDF unless you use save_to, also pass through the AI provider, under that provider's own data policy. More on
pagenull.dev/docs/ai-agents.
Development
pnpm --filter @pagenull/mcp build # compiles to dist/
pnpm --filter @pagenull/mcp test # mocked API, plus a stdio run of the built server
PAGENULL_MCP_LIVE=1 PAGENULL_API_KEY=pm_live_… pnpm --filter @pagenull/mcp test # also one free test render on the live APILicence
MIT. See LICENSE. This licence covers this package only.
Available Tools
6 toolsget_usageGet usageBRead-only
This month's render count, limit, what's left and the rate limit for your plan.
Inputs: no named parameters.
list_templatesList templatesARead-only
List your saved templates (ids and names) and the built-in ones (invoice, receipt, certificate, report).
Inputs: no named parameters.
render_pdfRender a PDFA
Turn HTML or a public URL into a PDF with pagenull. Send exactly one of html or url. Returns the PDF (base64, or written to save_to), its signed receipt, warnings and quota. Nothing is stored by pagenull.
Inputs: url, html, test, format, +8 more.
render_templateRender a templateA
Render a saved or built-in template with JSON data into a PDF. Returns it like render_pdf.
Inputs: id (required), data, test, options, +3 more.
screenshotTake a screenshotA
Render HTML or a public URL to a PNG or JPEG image. Send exactly one of html or url. Returns the image (or writes it to save_to). Nothing is stored by pagenull.
Inputs: url, html, test, type, +8 more.
verify_receiptVerify a receiptARead-only
Check a pagenull receipt's Ed25519 signature with pagenull's published key, and optionally that a file is the exact output it describes. Give the file as file_path, pdf_base64 or its sha256. The file never leaves this machine.
Inputs: receipt (required), sha256, file_path, pdf_base64.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools are clearly distinct by action and resource, but render_pdf and render_template both produce PDFs and require the agent to distinguish between HTML/URL input versus template/data input. The descriptions make the boundary clear enough, though the overlap is the main source of potential misselection.
The set mostly follows a verb_noun pattern: get_usage, render_pdf, list_templates, render_template, verify_receipt. The only notable deviation is screenshot, which is a single noun/verb rather than verb_noun, but it remains readable and idiomatic.
Six tools is well-scoped for a focused PDF rendering and verification service. Each tool earns its place, and the set avoids unnecessary surface area.
Core workflows are covered: usage, PDF rendering from HTML/URL, screenshots, template listing and rendering, and receipt verification. The main gap is template lifecycle management, since agents can list and render templates but cannot create, update, or delete saved templates through this MCP surface.
Maintenance
Related MCP Connectors
Render HTML, Markdown, or URLs to images, PDF, or branded artifacts; extract and watch pages.
Generate PDFs and images from HTML, Markdown, URLs or JSON templates.
Generate images and PDFs from HTML/CSS, live websites, and reusable templates.
HTML or URL to PDF with headless Chrome, and invoice/receipt/quote PDFs from JSON.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables PDF and image generation from templates, JSON, HTML, or URLs through the PDF Gen Studio API. Supports rendering, template management, and multiple output formats.10 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides tools to capture pixel-perfect website screenshots as images or PDF. Supports configurable viewport, full-page capture, CSS injection, and returns either viewable images or base64-encoded content.MIT
- AlicenseNot gradedqualityDmaintenanceTurn HTML or a URL into a pixel-accurate PDF in a single tool call.MIT

formfeedofficial
AlicenseAqualityBmaintenanceRender PDFs and images from HTML templates (Jinja2, Liquid, Handlebars) or Word and PowerPoint files through the Formfeed API, check data against a template's schema before rendering, and convert Office documents to PDF.181MIT