PDF rendering API
Markdown in.
Finished document out.
A PDF API for developers and AI agents. No template editor, no template IDs, no dashboard. One POST request, or one MCP tool call. Markdown arrives with a stylesheet that makes agent-written documents look right by default.
Invoice #42
| Item | Price |
|---|---|
| Widget | $9.00 |
| Gadget | $24.00 |
One request. Chromium renders it. You get a document.
No signup needed · 10 seconds
# Markdown or HTML in, PDF bytes out curl -X POST https://mintpdf.dev/v1/pdf \ -H "Content-Type: application/json" \ -d '{"markdown":"# Invoice #42\n\n| Item | Price |\n|---|---|\n| Widget | $9.00 |","pageNumbers":true}' \ --output invoice.pdf # → 200 application/pdf · one A4 page, table already styled # want a link instead of bytes? add: "output": "url" → {"download_url": "…", "expires_at": "…"}
The work is in the print CSS
Where a page breaks is the whole problem
Nothing gets sliced
Tables, code blocks and blockquotes are not cut across a page boundary, and a row is never split in half.
Headers repeat
A table running over three pages carries its header onto each one, so page three is not a wall of numbers with no columns.
Headings stay put
A heading is never stranded at the foot of a page with its content on the next.
Built for agents, not just for people
Remote over HTTP, or local over stdio
Nothing to install
Point any MCP client at https://mintpdf.dev/mcp over streamable HTTP.
Two tools: generate_pdf and pdf_from_url.
One line, no key
npx -y mintpdf-mcp starts the stdio server. It works immediately on the
anonymous tier, so nothing needs configuring to try it.
What you can send, and what happens after
| send | Markdown, HTML, or a public URL |
| get back | PDF bytes, or a link that expires in an hour |
| page setup | A4 · Letter · Legal · A3 · A5, landscape, custom margins |
| furniture | Header and footer text, page numbers |
| rich content | Mermaid diagrams and LaTeX maths render to vectors, not images |
| retention | Files auto-delete after one hour. No accounts, no document storage, and what you render is not logged. |
| self-hosting | MIT licensed, container published at
ghcr.io/trendtweekers/mintpdf |
Priced by what you render
Renders per month
One email, one key, no card
Raises the anonymous 10 a day to 100 a month. Lost your key? Ask again with the same email.
Already have a key
Paste it, pick a tier, and checkout carries it across. The key is the account, so nothing else changes.