Create PDFs with AI agents
Uses Prince to convert Markdown and HTML + CSS into high-quality PDF, for non-commercial use. Works with Claude, ChatGPT, Gemini, and any other AI agent that supports MCP.
Configuration
Add the server to your MCP client configuration:
Tools
The server provides three tools:
markdown_to_pdf — Convert Markdown content to PDF | ||
|---|---|---|
content | string | Markdown content to convert |
style | string | Additional CSS to apply |
page_size | string | Page size, e.g. A4, letter |
page_margin | string | Page margins, e.g. 20mm |
javascript | boolean | Enable JavaScript execution |
pdf_profile | string | PDF profile, e.g. PDF/A-3b, PDF/UA-1 |
output_filename | string | Output filename (default: output.pdf) |
html_to_pdf — Convert HTML content to PDF | ||
content | string | HTML content to convert |
| Same optional parameters as above. | ||
url_to_pdf — Fetch a URL and convert it to PDF | ||
url | string | URL of a document to fetch and convert |
| Same optional parameters as above. | ||
| Result | ||
| link | Download URL for the generated PDF. Links expire after 30 minutes. | |
| Report | text | Page count. |
| Log | text | Warnings and errors from the conversion, if any. |
Non-commercial use
This service is provided for non-commercial use under the Prince non-commercial license. PDF documents generated by Prince include a small notice identifying the software. You must not remove or alter these notices.
If you use this service to routinely generate documents, you must display a prominent link to www.princexml.com on the pages where the generated documents can be fetched, and in a prominent public page where business partners are listed.
For commercial use, please see the Prince license options.
Learn more
Prince supports CSS for paged media, advanced typography, and accessible PDF output. See the Prince documentation for details on supported features and styling options.