PDFShift
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"pdfshift": {
"url": "https://api.pdfshift.io/mcp"
}
}
}リモートエンドポイント
https://api.pdfshift.io/mcpstreamable-httpできること
ツール一覧
ツール(11)
🟢convert(source, sandbox, landscape, format, css, ...)
Convert an HTML document or a URL to a PDF, PNG, JPEG or WEBP file. Returns a temporary download URL (valid ~2 days).
入力スキーマ
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "A URL (http/https) or a raw HTML string to convert."
},
"sandbox": {
"type": "boolean",
"description": "Generate a free, watermarked document that does not consume credits. Useful for testing."
},
"landscape": {
"type": "boolean",
"description": "Landscape orientation instead of portrait (PDF only)."
},
"format": {
"type": "string",
"description": "Output format: pdf (default), png, jpeg or webp.",
"enum": [
"pdf",
"png",
"jpeg",
"webp"
]
},
"css": {
"type": "string",
"description": "Extra CSS to inject, as a URL or raw string."
},
"wait_for": {
"type": "string",
"description": "A JS variable/function or CSS selector to wait for before capturing."
},
"delay": {
"type": "integer",
"description": "Milliseconds to wait before capture (max 10000)."
},
"use_print": {
"type": "boolean",
"description": "Use the print CSS media type instead of screen."
}
},
"required": [
"source"
],
"additionalProperties": true
}🟢list_templates
List all saved HTML templates for the account.
入力スキーマ
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢get_template(slug)
Get the raw HTML content of a template by its slug.
入力スキーマ
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "The template slug."
}
},
"required": [
"slug"
],
"additionalProperties": false
}🟡create_template(slug, name, content)
Create a new reusable HTML template.
入力スキーマ
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Unique identifier for the template."
},
"name": {
"type": "string",
"description": "Human-readable name."
},
"content": {
"type": "string",
"description": "HTML content of the template."
}
},
"required": [
"slug",
"name",
"content"
],
"additionalProperties": false
}🟡update_template(slug, name, content)
Update the name and/or HTML content of an existing template.
入力スキーマ
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "The template slug to update."
},
"name": {
"type": "string",
"description": "New name."
},
"content": {
"type": "string",
"description": "New HTML content."
}
},
"required": [
"slug",
"content"
],
"additionalProperties": false
}🔴delete_template(slug)
Delete a template by its slug.
入力スキーマ
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "The template slug to delete."
}
},
"required": [
"slug"
],
"additionalProperties": false
}🟢generate_from_template(slug, format)
Render a saved template to HTML, PDF, PNG, JPEG or WEBP. Document formats return a temporary download URL; html returns the rendered markup. Pass template variables and any conversion option as extra properties.
入力スキーマ
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "The template slug to render."
},
"format": {
"type": "string",
"description": "Output: html, pdf (default), png, jpeg or webp.",
"enum": [
"html",
"pdf",
"png",
"jpeg",
"webp"
]
}
},
"required": [
"slug"
],
"additionalProperties": true
}🟢credits_usage
Get the current credit usage for the account (remaining, total, used).
入力スキーマ
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢pricing
List the available PDFShift plans and their pricing (credits, price, overage, monthly/yearly). Custom plans specific to the account are included when authenticated.
入力スキーマ
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢list_logs(limit, status, key, cursor)
List recent conversion logs for the account.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "Number of items to return (5-100, default 20).",
"minimum": 5,
"maximum": 100
},
"status": {
"type": "string",
"description": "Filter by status.",
"enum": [
"error",
"success",
"all"
]
},
"key": {
"type": "string",
"description": "Filter to a specific API key (public id). Default: all keys."
},
"cursor": {
"type": "string",
"description": "Pagination cursor from a previous response."
}
},
"additionalProperties": false
}🟢get_log(request_id)
Get a single conversion log by its request id.
入力スキーマ
{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"description": "The request id of the conversion."
}
},
"required": [
"request_id"
],
"additionalProperties": false
}コミュニティ
エビデンス