pdf-it
pdf-it
Markdownを、まるで最初からその目的で作られたかのようなPDFに変換するModel Context Protocol (MCP) サーバーおよびClaude Codeスキルです。表紙、目次、ページをまたぐコードブロック、ページ番号付きフッターを備えています。Claudeのセッションからコマンド一つで、クライアントに送付可能なファイルを作成できます。

なぜこれが必要なのか
Claude Codeでのリサーチセッションはいつも同じ結末を迎えます。有用なMarkdownの山ができあがるものの、それを人に読ませるためのきれいなPDFにする方法がないのです。Chromeの印刷機能は見栄えが悪く、手動でのHTML変換は手間がかかります。
pdf-itがその作業を代行します。Markdownを入力し、デザインされたPDFを出力します。コマンドは一つだけです。

12ページのサンプルが examples/designing-ai-agent-uiux.pdf にあります。
Related MCP server: Gen-PDF MCP Server
対応クライアント
pdf-itは標準的なModel Context Protocolサーバーです。ローカルでMCPをサポートするあらゆるクライアントで使用できます。
クライアント | 対応状況 | 追加方法 |
Claude Desktop (Mac, Windows) | はい |
|
Claude Code (CLI) | はい (「これをPDFとして保存」等のスキルトリガーも含む) |
|
Cursor | はい |
|
Cline (VS Code extension) | はい | ClineのMCP設定を編集 |
Continue.dev | はい | ContinueのMCP設定から追加 |
Zed | はい | 標準のMCP設定 |
Goose (Block's CLI) | はい | 標準のMCP設定 |
Anthropic SDK経由のカスタムエージェント | はい | MCPを自分で設定 |
claude.ai (ブラウザ) | いいえ | Web版はローカルMCPサーバーを実行できません |
Claude iOS / Android | いいえ | モバイル版はローカルMCPサーバーを実行できません |
クライアント側の必須要件: Node.js 18以上、Google Chromeがインストールされていること、クライアントがMCPをサポートしていること。
インストール
npm install -g pdf-it-mcpまたは、npx pdf-it-mcpでオンデマンド実行してください。
要件
Node.js 18以上
Google Chromeがインストールされていること (レンダラーとして使用。追加のダウンロードは不要)
設定
Claude Desktop
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
~/.cursor/mcp.jsonに追加します:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"]
}
}
}カスタムChromeパス
Chromeが標準以外の場所にある場合:
{
"mcpServers": {
"pdf-it": {
"command": "npx",
"args": ["-y", "pdf-it-mcp"],
"env": { "CHROME_PATH": "/path/to/chrome" }
}
}
}使用方法
サーバーに接続されたClaudeセッションで、以下のように依頼してください:
Save this as a PDF
または、以下のフレーズでも可能です: export as PDF, make a PDF report from this, turn this into a PDF, /pdf。スキルがリクエストを検知し、pdf-it経由で処理します。出力はデフォルトで ~/Documents/pdf-it/ に保存されます。
ツール
ツール | 説明 |
| MarkdownをPDFに変換します。テンプレート ( |
| 利用可能なテンプレートのリストと説明を返します。 |
generate_pdf パラメータ
パラメータ | 必須 | 説明 |
| はい | 変換するMarkdown文字列 |
| いいえ | 表紙およびページフッターに表示 |
| いいえ | 表紙に表示 |
| いいえ | 出力先の絶対パス。デフォルトは |
| いいえ |
|
テンプレート
名前 | 説明 |
| タイトル、著者、日付付きの表紙。H1およびH2見出しから自動生成される目次。適切な階層構造を持つ本文。タイトルとページ番号付きのフッター。リサーチ、要約、設計ドキュメント、レポートに最適。 |
| 表紙なし、目次なし。本文のみの構成。短いメモや素早いエクスポートに最適。 |
スキル
このパッケージには SKILL.md にClaude Codeスキルが含まれています。スキルが反応するトリガーフレーズ:
save this as PDFexport as PDFmake a PDF report from thisturn this into a PDFgenerate a PDF/pdf
スキルの完全な仕様については SKILL.md を参照してください。
例
examples フォルダには、生成されたPDFのサンプル (designing-ai-agent-uiux.pdf, 12ページ) と、このREADMEで使用されている表紙および本文のスクリーンショットが含まれています。
出力
デフォルトでは、PDFは ~/Documents/pdf-it/{slug}-{timestamp}.pdf に書き込まれます。output_path を渡すことで上書き可能です。
デザイン
可能な限りシステムフォントを使用しています。本文と見出しにはInter、コード、ページ番号、メタデータにはJetBrains Monoを使用。純白の紙、ほぼ黒のインク、ニュートラルな細い境界線、アクセントカラーはなし。コードブロックは意図的にシンタックスハイライトなしでレンダリングされます。PDFにおける色の選択は劣化しやすいためです。
別のデザイン言語が必要な場合は、テンプレートをフォークして調整してください。テンプレートは src/templates/ にあり、Puppeteerを通じてレンダリングされるプレーンなHTMLとCSSです。
ライセンス
MIT。 LICENSE を参照してください。
作成者: 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