HTML and CSS to PDF MCP server with page headers, footers and page numbers. No headless browser.
Call this server's tools from your browser. Nothing to install.
Optional API key; the anonymous tier works without it
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Render up to 256 KB of HTML to a PDF. Returns a download link to the PDF. Give the user the `download_url` so they can open the PDF. The link works for 15 minutes; after that, render again. The result is `{"download_url": "<link>", "pages": <page count>, "size_bytes": <PDF size>, "expires_in_minutes": 15}`. Only HTML and CSS are rendered; JavaScript is not run. For documents larger than 256 KB, use the REST API (`POST /v1/render`). Credits: 1 per call.
A complete HTML document, up to 256 KB. Inline images, fonts and CSS as data: URIs; external resources are not loaded.
Write the PDF as PDF/A-2b or PDF/A-3b, for archiving. Paid plans only. Leave it out for a regular PDF.
Render up to 256 KB of HTML to a PDF. Returns a download link to the PDF. Give the user the `download_url` so they can open the PDF. The link works for 15 minutes; after that, render again. The result is `{"download_url": "<link>", "pages": <page count>, "size_bytes": <PDF size>, "expires_in_minutes": 15}`. Only HTML and CSS are rendered; JavaScript is not run. For documents larger than 256 KB, use the REST API (`POST /v1/render`). Credits: 1 per call.
| Argument | Type | Description |
|---|
| html* | string | A complete HTML document, up to 256 KB. Inline images, fonts and CSS as data: URIs; external resources are not loaded. |
| pdf_variant | any | Write the PDF as PDF/A-2b or PDF/A-3b, for archiving. Paid plans only. Leave it out for a regular PDF. |
{
"type": "object",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"description": "A complete HTML document, up to 256 KB. Inline images, fonts and CSS as data: URIs; external resources are not loaded."
},
"pdf_variant": {
"anyOf": [
{
"enum": [
"pdf/a-2b",
"pdf/a-3b"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Write the PDF as PDF/A-2b or PDF/A-3b, for archiving. Paid plans only. Leave it out for a regular PDF."
}
},
"additionalProperties": false
}