Mmcp.market

boxpdf-html MCP server

by earonesty·io.github.earonesty/boxpdf-html·v1.6.0

Render HTML to PDF (html_to_pdf) plus boxpdf library docs and templates, for AI agents.

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
Growing

2 stars49 downloads/wk

Reviews

Write one

Nobody has reviewed boxpdf-html yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

boxpdf-html tools (2)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • boxpdf_docs

    Get focused guidance on using the boxpdf / boxpdf-html libraries directly when html_to_pdf is not enough \u2014 custom layout, pagination, tables, fonts, themes, streaming, the HTML API, or Cloudflare Workers.

  • html_to_pdf

    Render an HTML string (optionally with extra CSS) to a PDF using boxpdf-html. Supports a practical subset of CSS \u2014 flex, grid, tables, borders, colors, typography, and compiled Tailwind. No browser or JS execution. Returns the PDF (written to outputPath, or inline as a base64 resource) plus any warnings and unsupported-CSS diagnostics so you can fix the input.

Public scan report

scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it

no findings
  • Code scan10 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 27 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

From the boxpdf-html repository's README, as published. We do not edit it. Read it on GitHub

@boxpdf/html-reader

Readable HTML-to-PDF rendering built on @boxpdf/writer. It is for invoices, receipts, reports, emails, and other authored document HTML where a useful static PDF matters more than browser pixel emulation.

npm install @boxpdf/html-reader @boxpdf/writer pdf-lib

The original boxpdf-html package and boxpdf-html command remain supported. They are published from the same build and at the same version as @boxpdf/html-reader. New projects should use the scoped package; existing projects do not need to change.

CLI

Render an HTML file directly:

npx @boxpdf/html-reader invoice.html invoice.pdf

The scoped package also provides html-reader as a shorter command name.

With generated Tailwind CSS:

npx tailwindcss -i ./tailwind.css -o ./dist/tailwind.css --minify
npx @boxpdf/html-reader invoice.html invoice.pdf --css ./dist/tailwind.css

For very large inputs, add --stream:

npx @boxpdf/html-reader archive.html archive.pdf --stream
type archive.html | npx @boxpdf/html-reader - archive.pdf --stream

Streaming makes two bounded passes over the HTML: one for CSS, fonts, and images, then one for incremental layout and PDF output. Stdin is spooled to a temporary file so it can be reopened. The output replaces its destination only after a successful conversion. This path requires boxpdf 1.12.0 or newer.

With PDF 2.0 AES-256 password encryption:

BOXPDF_PASSWORD='open me' \
  npx @boxpdf/html-reader invoice.html invoice.pdf --password-env BOXPDF_PASSWORD

--password-env accepts an environment-variable name. The variable must be set to a non-empty password. The password value is never accepted as a command argument, which keeps it out of the command line and process listing.

With custom fonts and local images:

npx @boxpdf/html-reader invoice.html invoice.pdf \
  --font ./Inter-Regular.ttf \
  --bold-font ./Inter-Bold.ttf \
  --font-family 'Inter=normal:Inter-Regular.ttf,bold:Inter-Bold.ttf'

Useful flags:

html-reader <input.html> <output.pdf>
html-reader - <output.pdf>                  # read HTML from stdin
html-reader input.html output.pdf --css app.css
html-reader input.html output.pdf --base-url ./public
html-reader input.html output.pdf --password-env BOXPDF_PASSWORD
html-reader input.html output.pdf --debug
html-reader input.html output.pdf --unsupported-css
html-reader input.html output.pdf --profile
html-reader input.html output.pdf --stream

The CLI defaults to pdf-lib's built-in Helvetica family. Use real embedded fonts for production output when brand matching, unicode coverage, or exact metrics matter.

MCP server

boxpdf-html mcp is a stdio MCP server for AI agents. It's batteries-included: an htmltopdf tool plus the full boxpdf library docs, so an agent never has to add a second server.

claude mcp add boxpdf-html -- npx -y @boxpdf/html-reader mcp

Tools

  • htmltopdf — render an HTML string (and optional css) to a PDF. Writes to outputPath, or returns the PDF inline as a base64 resource. Always returns warnings and unsupportedCss diagnostics so the agent can fix its input.
  • Args: html (required), css, outputPath, size (Letter/A4/Legal/Tabloid, default Letter), margin (default 40), baseUrl, fonts: { regular, bold, italic, boldItalic } (TTF/OTF paths), allowRemote (default false — http(s) image fetches are blocked unless enabled), debug.
  • boxpdf_docs — focused guidance for building PDFs with the libraries directly. topic: quickstart (default), fonts, themes, tables, pagination, streaming, html-api, cloudflare.

Resources: boxpdf-html://guide, boxpdf-html://readme, boxpdf://readme, and the five boxpdf://templates/ sources (receipt, boarding-pass, resume, order-confirmation, certificate).

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Install directly

Runs npx -y boxpdf-html on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add boxpdf-html -- npx -y boxpdf-html
Add to Cursor

boxpdf-html: common questions

Is boxpdf-html MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the boxpdf-html safety report
How do I install boxpdf-html?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does boxpdf-html need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is boxpdf-html maintained?
The last commit was 27 days ago (2026-08-28). The latest release is v1.6.0.
What can I use instead of boxpdf-html?
Servers from other publishers that do the same job: Open Agreements MCP server, SvGrid MCP server and AI Context MCP server. Compare all boxpdf-html alternatives.

Alternatives to boxpdf-html

Same job from other publishers: the closest match first, then the best rated.

All boxpdf-html alternatives →
  • Open Agreements
    Fill standard legal agreement templates (NDAs, SAFEs, NVCA docs, employment) as DOCX files.
    A
  • SvGrid
    Checks AI-written SvGrid code against the real API, plus version-pinned Svelte 5 grid docs.
    A
  • AI Context
    Local-first MCP server: version-correct library docs, code map, and offline drift for your repo.
    B
  • Context7
    Up-to-date code docs for any prompt
    A
  • Svelte MCP
    The official Svelte MCP server providing docs and autofixing tools for Svelte development
    A

More from earonesty →