Skip to main content
Glama

@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

render_pdf

HTML or a public URL to PDF: format, margins, landscape, backgrounds, page numbers, test mode, and any other API option

POST /v1/pdf

screenshot

HTML or a public URL to PNG or JPEG

POST /v1/screenshot

list_templates

Your saved templates and the built-in ones

GET /v1/templates

render_template

A template plus JSON data to PDF

POST /v1/templates/{id}/render

verify_receipt

Check a receipt's signature with pagenull's published key, and that a file matches it

GET /.well-known/pagenull-keys.json

get_usage

This month's renders, limit and rate limit

GET /v1/usage

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

PAGENULL_API_KEY

Your API key, from the dashboard. Needed for everything except verify_receipt.

PAGENULL_API_BASE

Optional. Default https://api.pagenull.dev.

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/mcp

Cursor

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 through cmd: "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_to takes 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 API

Licence

MIT. See LICENSE. This licence covers this package only.

Available Tools

6 tools
get_usageGet usageB
Read-only

This month's render count, limit, what's left and the rate limit for your plan.

Inputs: no named parameters.

list_templatesList templatesA
Read-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 receiptA
Read-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

    A3.7/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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
    • A
      license
      A
      quality
      B
      maintenance
      Render 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.
      18
      1
      MIT