PDFShift
v1.0.0A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert
Convert an HTML document or a URL to a PDF, PNG, JPEG or WEBP file. Returns a temporary download URL (valid ~2 days).
| Parameter | Type | Description |
|---|---|---|
source * | string | A URL (http/https) or a raw HTML string to convert. |
css | string | Extra CSS to inject, as a URL or raw string. |
delay | integer | Milliseconds to wait before capture (max 10000). |
format | string | Output format: pdf (default), png, jpeg or webp. |
landscape | boolean | Landscape orientation instead of portrait (PDF only). |
sandbox | boolean | Generate a free, watermarked document that does not consume credits. Useful for testing. |
use_print | boolean | Use the print CSS media type instead of screen. |
wait_for | string | A JS variable/function or CSS selector to wait for before capturing. |
list_templates
List all saved HTML templates for the account.
get_template
Get the raw HTML content of a template by its slug.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The template slug. |
create_template
Create a new reusable HTML template.
| Parameter | Type | Description |
|---|---|---|
content * | string | HTML content of the template. |
name * | string | Human-readable name. |
slug * | string | Unique identifier for the template. |
update_template
Update the name and/or HTML content of an existing template.
| Parameter | Type | Description |
|---|---|---|
content * | string | New HTML content. |
slug * | string | The template slug to update. |
name | string | New name. |
delete_template
Delete a template by its slug.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The template slug to delete. |
generate_from_template
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.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The template slug to render. |
format | string | Output: html, pdf (default), png, jpeg or webp. |
credits_usage
Get the current credit usage for the account (remaining, total, used).
pricing
List the available PDFShift plans and their pricing (credits, price, overage, monthly/yearly). Custom plans specific to the account are included when authenticated.
list_logs
List recent conversion logs for the account.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor from a previous response. |
key | string | Filter to a specific API key (public id). Default: all keys. |
limit | integer | Number of items to return (5-100, default 20). |
status | string | Filter by status. |
get_log
Get a single conversion log by its request id.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | The request id of the conversion. |