Native PDF renderer for AI-generated markdown. Cover page, auto TOC, page-numbered footer. Fonts embedded, zero config.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
claude mcp add pdf-it -- npx -y pdf-it-mcp{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"]
}
}
}Resumen de MCP Servers
# pdf-it
[](https://glama.ai/mcp/servers/mrslbt/pdf-it)
[](https://lobehub.com/mcp/mrslbt-pdf-it)
[](https://www.npmjs.com/package/pdf-it-mcp)
[](https://www.npmjs.com/package/pdf-it-mcp)
[](LICENSE)
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.
Fonts ship inside the package, so every PDF looks the same on every machine. Nothing to install, nothing to configure.

## 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 actually want to read.
Chrome print: takes 30 seconds, output looks like a Word doc. Manual HTML conversion: 10 minutes per document. Pandoc: works but defaults look like a 2008 academic paper. None of it produces an artifact you would send to a client.
`pdf-it` is one command. The output is designed by default.

## Install
```bash
npm install -g pdf-it-mcp
```
Or run on demand with `npx pdf-it-mcp`.
### Requirements
- Node.js 20 or newer
- Nothing else to install. The renderer and fonts ship inside the package.
## Configure
### Claude Desktop
Edit `claude_desktop_config.json`:
```json
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"]
}
}
}
```
### Claude Code
```bash
claude mcp add pdf-it -- npx -y pdf-it-mcp
```
### Cursor
Add to `~/.cursor/mcp.json` with the same shape as Claude Desktop.
### Cline / Continue / Zed / Goose
Standard MCP config. Same `npx -y pdf-it-mcp` command.
## 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 |
|---|---|
| `generate_pdf` | Convert markdown into a PDF. Accepts a template (`research-report` or `plain`), optional title and author for the cover, and an optional output path. |
| `list_templates` | Return the list of available templates with descriptions. |
### `generate_pdf` parameters
| Parameter | Required | Description |
|---|---|---|
| `content` | yes | Markdown string to convert |
| `title` | no | Shown on the cover and in the page footer |
| `author` | no | Shown on the cover above the date |
| `output_path` | no | Absolute path for the output. Defaults to `~/Documents/pdf-it/{slug}-{timestamp}.pdf` |
| `template` | no | `research-report` (default) or `plain` |
## Templates
| Name | Description |
|---|---|
| `research-report` | 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. |
| `plain` | 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 PDF`
- `export as PDF`
- `make a PDF report from this`
- `turn this into a PDF`
- `generate a PDF`
- `/pdf`
See [SKILL.md](./SKILL.md) for the full skill spec.
## Output
By default PDFs are written to `~/Documents/pdf-it/{slug}-{timestamp}.pdf`. Pass `output_path` to override.
## Design
Three families ship inside the package:
- **Newsreader** for the cover title (display 60, light) and body H1 (display 32). High-contrast serif that holds editorial weight at large sizes.
- **DM Sans** for H2, H3, table type, and the TOC heading. Quieter sub-hierarchy.
- **JetBrains Mono** for page numbers, metadata, code, and figure captions.
Pure white paper, near-black ink (#111113), secondary ink for date and table cells (#2B2B2E), muted gray for page numbers and date (#7A7A7E), hairline borders (#E6E6E6). No accent colors. Code blocks render without syntax highlighting on purpose: color choices in PDFs age badly.
Every value lives in `src/templates/design-tokens.ts` as the single source of truth. If you want a different design language, fork the components. They live in `src/templates/components/` and are plain React-PDF components with a small surface area.
## How it works
1. **Parse:** remark converts your markdown into an AST.
2. **Compose:** the AST becomes typed React components (Cover, TOC, and body primitives like H1/H2/H3, Paragraph, CodeBlock, Blockquote, Table, lists, and charts).
3. **Render:** `@react-pdf/renderer` rasterizes the React tree into a deterministic PDF with embedded fonts and TOC anchors.
4. **Output:** the PDF lands in `~/Documents/pdf-it/{slug}-{timestamp}.pdf` with title/author metadata embedded.
Total time: typically sub-second for a 5-page document, 1-2 seconds for a 30-page document.
## Recognition
Listed on [npm](https://www.npmjs.com/package/pdf-it-mcp), [Glama](https://glama.ai/mcp/servers/mrslbt/pdf-it), and [LobeHub](https://lobehub.com/mcp/mrslbt-pdf-it).
## Disclaimer
This is an unofficial, community-built tool. It is not affiliated with, endorsed by, or sponsored by Anthropic PBC. Claude and Claude Code are trademarks of Anthropic PBC.
`pdf-it` runs locally and ships its own renderer (`@react-pdf/renderer`) and fonts. Use at your own risk. The author accepts no liability for issues arising from misuse, prompt injection, bugs, or rendering failures.
## License
MIT. See [LICENSE](./LICENSE).
Lo que la gente pregunta sobre pdf-it
¿Qué es mrslbt/pdf-it?
+
mrslbt/pdf-it es mcp servers para el ecosistema de Claude AI. Native PDF renderer for AI-generated markdown. Cover page, auto TOC, page-numbered footer. Fonts embedded, zero config. Tiene 1 estrellas en GitHub y se actualizó por última vez 24d ago.
¿Cómo se instala pdf-it?
+
Puedes instalar pdf-it clonando el repositorio (https://github.com/mrslbt/pdf-it) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar mrslbt/pdf-it?
+
Nuestro agente de seguridad ha analizado mrslbt/pdf-it y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene mrslbt/pdf-it?
+
mrslbt/pdf-it es mantenido por mrslbt. La última actividad registrada en GitHub es de 24d ago, con 0 issues abiertos.
¿Hay alternativas a pdf-it?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega pdf-it en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/mrslbt-pdf-it)<a href="https://claudewave.com/repo/mrslbt-pdf-it"><img src="https://claudewave.com/api/badge/mrslbt-pdf-it" alt="Featured on ClaudeWave: mrslbt/pdf-it" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!