$ gen-pdf _
PDF generation MCP server for AI agents. Transform markdown into publication-ready documents with LaTeX, Mermaid, and code highlighting.
{
"mcpServers": {
"gen-pdf": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://gen-pdf.com/mcp"
]
}
}
}
How it works
From markdown to PDF in seconds
Configure MCP
Add gen-pdf to your mcp.json configuration file.
Write Markdown
Create your document using familiar markdown syntax.
Generate PDF
Your AI generates a beautifully formatted PDF.
Examples
See what you can create
Why Gen-PDF?
Stop wrestling with PDF libraries
Traditional PDF generation is painful. Complex APIs, ugly output, and hours of debugging. Gen-PDF lets your AI create beautiful documents in seconds.
Instant Setup
Add one line to your config and start generating PDFs immediately. No API keys, no complex setup.
Developer-First
Built for AI agents. Your LLM writes markdown, we handle the beautiful PDF output.
TeX-Quality Output
Professional typesetting with LaTeX math, syntax highlighting, and Mermaid diagrams.
Blazing Fast
Rust-powered Typst compiler generates PDFs in milliseconds, not seconds.
Use Cases
Built for every document type
From simple letters to complex technical reports, Gen-PDF handles it all with professional quality.
Reports & Analysis
Generate data-driven reports with charts, tables, and insights.
Invoices & Contracts
Create professional business documents with precise formatting.
Technical Documentation
Write docs with code blocks, diagrams, and mathematical formulas.
Comparison
Gen-PDF vs. Traditional Solutions
See why developers choose Gen-PDF over complex PDF libraries and services.
| Feature | Gen-PDF | Others |
|---|---|---|
| Setup Time | < 1 seconds | 30+ seconds |
| Rendering | Typst | Browser-based printing |
| LaTeX Math Support | ✓ Native | Limited/None |
| Mermaid Diagrams | ✓ Built-in | Requires plugins |
| Code Highlighting | 100+ languages | Basic |
| AI-Optimized | ✓ MCP Native | REST API only |
What Developers Say
Built for AI-powered workflows
"Finally, a PDF solution that just works with my AI agent. Setup took 30 seconds and the output quality is incredible."
"The LaTeX support is phenomenal. My AI can now generate publication-ready papers automatically."
"We replaced our entire invoice generation pipeline with Gen-PDF. It's faster, prettier, and our team loves it."
Ready to automate your PDF generation?
Start generating beautiful PDFs in under a minute. Free to try, no credit card required.
✓ 20 free PDFs per month • ✓ No credit card required • ✓ Cancel anytime