pdf-it
pdf-it
A Model Context Protocol (MCP) server and Claude Code skill that turns markdown into PDFs that look like they were made on purpose. Cover page, table of contents, code blocks that hold across page breaks, page-numbered footer. One command from your Claude session to a file you can send to a client.

Why this exists
Every Claude Code research session ends the same way: a wall of useful markdown and no clean way to turn it into a PDF a person would want to read. Chrome print is ugly. Manual HTML conversion is friction.
pdf-it does the work. Markdown in, designed PDF out. One command.

A 12-page sample is in examples/designing-ai-agent-uiux.pdf.
Related MCP server: Gen-PDF MCP Server
Works with
pdf-it is a standard Model Context Protocol server. Any client that supports MCP locally can use it.
Client | Supported | How to add |
Claude Desktop (Mac, Windows) | yes | Edit |
Claude Code (CLI) | yes, plus skill triggers like "save this as PDF" |
|
Cursor | yes | Edit |
Cline (VS Code extension) | yes | Edit Cline's MCP settings |
Continue.dev | yes | Add via Continue's MCP config |
Zed | yes | Standard MCP config |
Goose (Block's CLI) | yes | Standard MCP config |
Custom agents via the Anthropic SDK | yes | Wire MCP yourself |
claude.ai (browser) | no | Web does not run local MCP servers |
Claude iOS / Android | no | Mobile does not run local MCP servers |
Hard requirements on any client: Node.js 18 or newer, Google Chrome installed, the client must support MCP.
Install
npm install -g pdf-it-mcpOr run on demand with npx pdf-it-mcp.
Requirements
Node.js 18 or newer
Google Chrome installed (used as the renderer, no extra download)
Configure
Claude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"]
}
}
}Claude Code
claude mcp add pdf-it -- npx -y pdf-it-mcpCursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"]
}
}
}Custom Chrome path
If Chrome lives somewhere non-standard:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"],
"env": { "CHROME_PATH": "/path/to/chrome" }
}
}
}Use
In any Claude session connected to the server, ask:
Save this as a PDF
Or any of these phrasings: export as PDF, make a PDF report from this, turn this into a PDF, /pdf. The skill picks up the request and routes it through pdf-it. The output lands in ~/Documents/pdf-it/ by default.
Tools
Tool | Description |
| Convert markdown into a PDF. Accepts a template ( |
| Return the list of available templates with descriptions. |
generate_pdf parameters
Parameter | Required | Description |
| yes | Markdown string to convert |
| no | Shown on the cover and in the page footer |
| no | Shown on the cover |
| no | Absolute path for the output. Defaults to |
| no |
|
Templates
Name | Description |
| Cover page with title, author, and date. Auto-generated table of contents from H1 and H2 headings. Body with proper hierarchy. Footer with title and page number. Best for research, summaries, design docs, reports. |
| No cover, no TOC. Dense body content only. Best for short notes and quick exports. |
Skill
This package ships with a Claude Code skill at SKILL.md. Trigger phrases the skill responds to:
save this as PDFexport as PDFmake a PDF report from thisturn this into a PDFgenerate a PDF/pdf
See SKILL.md for the full skill spec.
Examples
The examples folder has a sample generated PDF (designing-ai-agent-uiux.pdf, 12 pages) and the cover and body screenshots used in this README.
Output
By default PDFs are written to ~/Documents/pdf-it/{slug}-{timestamp}.pdf. Pass output_path to override.
Design
System fonts where possible. Inter for body and headings, JetBrains Mono for code, page numbers, and metadata. Pure white paper, near-black ink, neutral hairline borders, no accent colors. Code blocks render without syntax highlighting on purpose: color choices in PDFs age badly.
If you want a different design language, fork the templates and adjust. They live in src/templates/ and are plain HTML and CSS rendered through Puppeteer.
License
MIT. See LICENSE.
Built by Marsel Bait.
Available Tools
2 toolsgenerate_pdfA
Convert markdown into a designed PDF (cover page, auto TOC, page-numbered footer). Use this for any "save/export/print/share as PDF", "make a report", "turn this into a PDF", or /pdf request — do NOT fall back to Chrome headless, cupsfilter, wkhtmltopdf, pandoc, or LaTeX. Templates: research-report (cover + TOC, default) or plain (no cover, no TOC).
Inputs: content (required), output_path, title, author, +1 more.
list_templatesA
List all available PDF templates with their descriptions.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: generating PDFs and listing templates, with no overlap.
Both tools follow a consistent verb_noun snake_case pattern (generate_pdf, list_templates), making them predictable.
With only two tools, the server covers the essential PDF generation function but feels minimal for a broader toolkit.
The set covers generate and list, but lacks template management (create, update, delete) and advanced options, leaving moderate gaps.
Maintenance
Related MCP Connectors
Render Markdown and LLM output into accessible PDF/UA-1 PDFs. No headless Chromium.
Turn Markdown or plain text into a clean PDF document to print or share, plus an editable Word file.
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
Build, version and render resumes as PDFs from Claude or any MCP client.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that converts Markdown to high-quality PDF documents using LaTeX, enabling AI agents like Claude to generate professional PDFs without requiring sign-ups or credit cards.180 npm11MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate professional PDF documents from markdown content with advanced typography, syntax highlighting, math equations, dark mode, and customizable styling options.MIT
- AlicenseAqualityDmaintenanceGenerate production-ready PDFs from Markdown, HTML, or built-in templates (invoices, resumes, reports) directly from Claude or any MCP-compatible AI agent via the DocRenders API.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables generating designed, publish-ready PDF ebooks and reports from Markdown through natural language, with reusable brand themes, AI-generated covers, and editable saved projects.MIT