pdf-it
pdf-it
Ein Model Context Protocol (MCP) Server und eine Claude Code Skill, die Markdown in PDFs umwandelt, die aussehen, als wären sie professionell erstellt worden. Deckblatt, Inhaltsverzeichnis, Code-Blöcke, die über Seitenumbrüche hinweg erhalten bleiben, Fußzeile mit Seitenzahlen. Ein Befehl aus Ihrer Claude-Sitzung genügt, um eine Datei zu erstellen, die Sie an einen Kunden senden können.

Warum gibt es das?
Jede Claude Code-Recherchesitzung endet gleich: eine Wand aus nützlichem Markdown und keine saubere Möglichkeit, es in ein PDF zu verwandeln, das man gerne lesen würde. Der Chrome-Druck ist hässlich. Manuelle HTML-Konvertierung ist mühsam.
pdf-it erledigt die Arbeit. Markdown rein, gestaltetes PDF raus. Ein Befehl.

Ein 12-seitiges Beispiel finden Sie unter examples/designing-ai-agent-uiux.pdf.
Related MCP server: Gen-PDF MCP Server
Funktioniert mit
pdf-it ist ein Standard Model Context Protocol Server. Jeder Client, der MCP lokal unterstützt, kann ihn verwenden.
Client | Unterstützt | Hinzufügen |
Claude Desktop (Mac, Windows) | ja |
|
Claude Code (CLI) | ja, plus Skill-Trigger wie "save this as PDF" |
|
Cursor | ja |
|
Cline (VS Code extension) | ja | Clines MCP-Einstellungen bearbeiten |
Continue.dev | ja | Über die MCP-Konfiguration von Continue hinzufügen |
Zed | ja | Standard MCP-Konfiguration |
Goose (Block's CLI) | ja | Standard MCP-Konfiguration |
Benutzerdefinierte Agents über das Anthropic SDK | ja | MCP selbst einbinden |
claude.ai (browser) | nein | Web führt keine lokalen MCP-Server aus |
Claude iOS / Android | nein | Mobil führt keine lokalen MCP-Server aus |
Grundvoraussetzungen für jeden Client: Node.js 18 oder neuer, Google Chrome installiert, der Client muss MCP unterstützen.
Installation
npm install -g pdf-it-mcpOder führen Sie es bei Bedarf mit npx pdf-it-mcp aus.
Voraussetzungen
Node.js 18 oder neuer
Google Chrome installiert (wird als Renderer verwendet, kein zusätzlicher Download)
Konfiguration
Claude Desktop
Bearbeiten Sie 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
Hinzufügen zu ~/.cursor/mcp.json:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"]
}
}
}Benutzerdefinierter Chrome-Pfad
Falls Chrome an einem nicht standardmäßigen Ort installiert ist:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"],
"env": { "CHROME_PATH": "/path/to/chrome" }
}
}
}Verwendung
Fragen Sie in jeder Claude-Sitzung, die mit dem Server verbunden ist:
Save this as a PDF
Oder eine dieser Formulierungen: export as PDF, make a PDF report from this, turn this into a PDF, /pdf. Die Skill erkennt die Anfrage und leitet sie durch pdf-it. Die Ausgabe landet standardmäßig in ~/Documents/pdf-it/.
Tools
Tool | Beschreibung |
| Konvertiert Markdown in ein PDF. Akzeptiert eine Vorlage ( |
| Gibt die Liste der verfügbaren Vorlagen mit Beschreibungen zurück. |
generate_pdf Parameter
Parameter | Erforderlich | Beschreibung |
| ja | Markdown-String zur Konvertierung |
| nein | Wird auf dem Deckblatt und in der Fußzeile angezeigt |
| nein | Wird auf dem Deckblatt angezeigt |
| nein | Absoluter Pfad für die Ausgabe. Standardmäßig |
| nein |
|
Vorlagen
Name | Beschreibung |
| Deckblatt mit Titel, Autor und Datum. Automatisch generiertes Inhaltsverzeichnis aus H1- und H2-Überschriften. Hauptteil mit korrekter Hierarchie. Fußzeile mit Titel und Seitenzahl. Am besten für Forschung, Zusammenfassungen, Designdokumente, Berichte. |
| Kein Deckblatt, kein Inhaltsverzeichnis. Nur kompakter Inhalt. Am besten für kurze Notizen und schnelle Exporte. |
Skill
Dieses Paket wird mit einer Claude Code Skill unter SKILL.md geliefert. Trigger-Phrasen, auf die die Skill reagiert:
save this as PDFexport as PDFmake a PDF report from thisturn this into a PDFgenerate a PDF/pdf
Siehe SKILL.md für die vollständige Skill-Spezifikation.
Beispiele
Der Ordner examples enthält ein Beispiel-PDF (designing-ai-agent-uiux.pdf, 12 Seiten) sowie die Screenshots des Deckblatts und des Hauptteils, die in dieser README verwendet wurden.
Ausgabe
Standardmäßig werden PDFs unter ~/Documents/pdf-it/{slug}-{timestamp}.pdf gespeichert. Übergeben Sie output_path, um dies zu überschreiben.
Design
Systemschriften, wo möglich. Inter für Haupttext und Überschriften, JetBrains Mono für Code, Seitenzahlen und Metadaten. Reinweißes Papier, fast schwarze Tinte, neutrale, haarfeine Ränder, keine Akzentfarben. Code-Blöcke werden absichtlich ohne Syntax-Highlighting gerendert: Farbwahlen in PDFs altern schlecht.
Wenn Sie eine andere Designsprache wünschen, forken Sie die Vorlagen und passen Sie sie an. Sie befinden sich in src/templates/ und sind einfaches HTML und CSS, das durch Puppeteer gerendert wird.
Lizenz
MIT. Siehe LICENSE.
Erstellt von 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).
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Markdown content to convert to PDF. | |
| output_path | No | Absolute path for the output PDF. Defaults to ~/Documents/pdf-it/{title}-{timestamp}.pdf | |
| title | No | Document title shown on the cover page and footer. | |
| author | No | Author name shown on the cover page. | |
| template | No | Template to use. "research-report" (default) adds a cover page and table of contents. "plain" renders body content only. | research-report |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description must carry behavioral disclosure. It describes output features (cover, TOC, footer) and template effects. Could mention overwrite behavior or directory requirements, but conversion behavior is mostly implied by the task.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences efficiently cover purpose, usage guidelines, and template options. No redundant information, front-loaded with key details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Covers main functionality, output features, and templates. Lacks details on error handling or file overwrite, but for a conversion tool with no output schema, it sufficiently prepares the agent to select and invoke the tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% so baseline is 3. Description adds value by explaining template behavior (research-report vs plain) and reinforcing that title appears on cover and footer. Not all parameters get extra context, but overall it enhances understanding.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the tool converts markdown to a designed PDF with cover page, auto TOC, and page-numbered footer. It distinguishes from the only sibling, list_templates, which is clearly different.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides clear when-to-use scenarios (save/export/print/share as PDF, make a report, /pdf request) and explicitly lists alternatives to avoid (Chrome headless, cupsfilter, wkhtmltopdf, pandoc, LaTeX).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_templatesA
List all available PDF templates with their descriptions.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. It discloses a read operation returning a list with descriptions, but does not mention potential side effects or details like caching.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single, efficient sentence front-loaded with key purpose. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Adequate for a simple list tool with no parameters, but lacks details like ordering, filtering, or scope of templates (e.g., user-specific vs global).
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
No parameters exist, and schema coverage is 100%, so baseline is 4. Description does not need to add parameter info.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists all available PDF templates with descriptions, distinguishing it from the sibling tool 'generate_pdf' which likely generates a PDF from a template.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Implied usage via naming ('list' vs 'generate'), but no explicit guidance on when to use this tool over alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
v1.2.0- First observed
generate_pdf - First observed
list_templates
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
Generate PDFs from templates via AI chat. Works with Claude, ChatGPT, Cursor, and any MCP client.
- blinkpdfOAuthio.blinkpdf
Render Markdown and LLM output into accessible PDF/UA-1 PDFs. No headless Chromium.
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
- AlicenseBqualityCmaintenanceMCP 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.144 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
- FlicenseNot gradedqualityDmaintenanceConverts Markdown files and raw content into professionally styled PDFs with full support for Mermaid diagrams and syntax highlighting. It offers customizable page formats, margins, and modern typography for high-quality document generation.11-
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that gives your AI assistant the power to convert Markdown into 14 professional document formats — PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG, and more. Stop copy-pasting. Let the AI do the exporting.332MIT