Give Claude, Codex, Cursor, OpenCode, and any MCP client a production PDF engine. Generate pixel-perfect PDFs from agent-authored HTML through MCP or REST.
Connect once through Model Context Protocol. Claude, Codex, Cursor, OpenCode, and other MCP clients can turn their own HTML into production-ready PDFs without custom glue code.
pixeltopdf / MCP
Streamable HTTP · authenticated · agent-ready
HTML or URL → embedded PDF resource
HTML or URL → PNG, JPEG, or WebP
Reusable workflow for accessible, print-ready documents
Prompts never contain your key. Configure it privately in your client, never in agent chat or source control.
Let your agent write the HTML and PixelToPdf handle production rendering. Use native MCP tools for conversational workflows or the REST API for application code.
We obsess over the details so you can focus on building great products
We care about predictable output
Wait for network activity, load deferred images, add a bounded delay, and set an explicit timeout for each conversion.
We care about your needs
From custom headers and footers to CSS injection and JavaScript execution. Support for Tailwind, Bootstrap, and any CSS framework.
We care about your security
Requests use API key authentication over HTTPS. Generated files follow the deletion policy described in our privacy documentation.
We care about your privacy
PixelToPdf is operated by Dinacode SL in Spain. Our public privacy and GDPR pages explain document processing, retention, and user rights.
MCP-native workflows backed by a high-fidelity Chromium rendering API
Give any compatible AI agent authenticated PDF and screenshot tools over Streamable HTTP.
Return PDFs as embedded MCP resources and screenshots as image content in the same conversation.
PDF, PNG, JPEG, or WebP. Choose the format that fits your needs.
Convert any URL or raw HTML content with a single API call.
Inject CSS and JavaScript. Support for Tailwind, Bootstrap, and more.
Add page numbers, dates, or custom HTML to every page.
Wait for network activity, lazy-loaded images, or a custom delay before capture.
Set paper format, orientation, margins, page ranges, print mode, and zoom.
Capture a full page or target one element with a CSS selector.
Return binary output or Base64 and set a download filename in the request.
Disable JavaScript when it is not needed and set explicit conversion timeouts.
Production use cases
Follow practical patterns for the documents and screenshots developers generate most often.
Generate consistent invoices from your own HTML with print CSS, page numbers, and controlled filenames.
02Capture public web pages after JavaScript, fonts, images, and network requests have finished loading.
03Turn dashboards and recurring business reports into paginated, downloadable documents.
04Create full-page or element-level PNG, JPEG, and WebP captures through the same REST API.
Build your first AI-generated PDF with MCP, Guides, or the Playground
Start free, scale as you grow. No hidden fees.
100MB max file size
3.8k credits/mo
€6.67/1k/extra credit
100MB max file size
7.5k credits/mo
€5.33/1k/extra credit
100MB max file size
37.5k credits/mo
€2.67/1k/extra credit
Need more? Check out our high-volume plans.
View all plansEverything you need to know about PixelToPdf
Create a key, copy one setup prompt, and start generating PDFs through MCP. You get 75 free conversion credits every month.