PDFShift
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"pdfshift": {
"url": "https://api.pdfshift.io/mcp"
}
}
}Remote-Endpunkte
https://api.pdfshift.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (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).
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢get_template(slug)
Get the raw HTML content of a template by its slug.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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).
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢list_logs(limit, status, key, cursor)
List recent conversion logs for the account.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"description": "The request id of the conversion."
}
},
"required": [
"request_id"
],
"additionalProperties": false
}Community
Nachweis