DocRaptor MCP by usefulapi
v1.41.4Turn HTML or a live URL into polished PDF and Excel files — hosted downloads, async jobs, history.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
docraptor_create_document Create a document (PDF/XLS/XLSX)
Generate a PDF or Excel document from HTML (document_content) or a URL (document_url). Exactly one of document_content / document_url is required. By default the document is HOSTED and the tool returns a { download_url } you can fetch — ideal for agents (no large binary in the response). Hosted documents require a paid DocRaptor add-on. Without that add-on, set hosted:false to get the raw document back as base64, or async:true to enqueue a job and poll docraptor_get_document_status. Test mode is enabled by default: PDFs are watermarked and Excel files are limited to 20 rows. Set test:false e…
| Parameter | Type | Description |
|---|---|---|
async | boolean | If true, enqueue the job and return a status_id (poll with docraptor_get_document_status). Best for large/slow documents. Default false. |
callback_url | string | URL DocRaptor POSTs after a successful async job (requires async:true). Failed jobs do not trigger callbacks. |
document_content | string | The HTML/XML source to render. Use this OR document_url. |
document_url | string | A URL DocRaptor will fetch and render. Use this OR document_content. |
help | boolean | Enable DocRaptor help mode: emails you and DocRaptor support and retains document contents for review until resolved. Maximum five active help requests. |
hosted | boolean | Default true for synchronous requests, false for async. Requires the paid hosted-documents add-on; each download may be billed. Set false for raw base64 output without the add-on. |
hosted_download_limit | integer | For hosted docs: max number of downloads before the link expires. |
hosted_expires_at | string | For hosted docs: ISO 8601 datetime when the hosted link expires. |
ignore_console_messages | boolean | Ignore JavaScript console messages instead of failing generation. Defaults to false on Pipelines 1–6, true on Pipeline 7+. |
ignore_resource_errors | boolean | Ignore errors downloading CSS/images (DocRaptor default true). Set false to fail generation on resource errors. |
javascript | boolean | Enable DocRaptor's JavaScript engine (default false), recommended for Typekit and Highcharts. Separate from prince_options.javascript; usually enable only one engine. |
name | string | A name for the document (<=200 chars), shown in the DocRaptor dashboard/listing. |
pipeline | string | Rendering pipeline/engine version, e.g. '10'. Omit to use DocRaptor's default. |
prince_options | object | PDF engine (Prince) options. PDF only. |
referrer | string | Explicit referrer for JavaScript requests, e.g. Typekit with document_content. Defaults to document_url. |
strict | string | PDF HTML validation: html fails on invalid HTML; none disables strict HTML validation. |
tag | string | An arbitrary tag string for your own reporting/grouping. |
test | boolean | Default true: generate a FREE test document (watermarked PDF or Excel limited to 20 rows). Set false explicitly for a real, BILLED document. |
type | string | Output format: pdf (default), xls, or xlsx. |
docraptor_get_document_status Get async document status
Check the status of an asynchronous document created with docraptor_create_document({async:true}). Returns status (queued | working | completed | failed), and when completed a download_url / download_id / number_of_pages. DocRaptor API: GET /status/{status_id}.
| Parameter | Type | Description |
|---|---|---|
status_id * | string | The status_id returned by docraptor_create_document when async:true. |
docraptor_list_documents List documents
List metadata for documents created on this account, most recent first (paginated). Note: DocRaptor does not retain the rendered files themselves — this returns metadata such as name, type, test flag, and creation time. DocRaptor API: GET /docs.json.
| Parameter | Type | Description |
|---|---|---|
page | integer | Pagination page number. Default 1. |
per_page | integer | Documents per page (max 100). Default 100. |
docraptor_list_ip_addresses List DocRaptor IP addresses
List the IP addresses DocRaptor uses to fetch remote assets / document_url. Useful for allowlisting DocRaptor on a firewall or asset host. (DocRaptor notes these change over time — prefer HTTP Basic auth over IP allowlisting for securing assets.) DocRaptor API: GET /ips.json.