DocRaptor MCP by usefulapi

v1.41.4
io.usefulapi/docraptor Checked 8 hours ago Published 14 days ago

Turn 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…

ParameterTypeDescription
asyncbooleanIf true, enqueue the job and return a status_id (poll with docraptor_get_document_status). Best for large/slow documents. Default false.
callback_urlstringURL DocRaptor POSTs after a successful async job (requires async:true). Failed jobs do not trigger callbacks.
document_contentstringThe HTML/XML source to render. Use this OR document_url.
document_urlstringA URL DocRaptor will fetch and render. Use this OR document_content.
helpbooleanEnable DocRaptor help mode: emails you and DocRaptor support and retains document contents for review until resolved. Maximum five active help requests.
hostedbooleanDefault 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_limitintegerFor hosted docs: max number of downloads before the link expires.
hosted_expires_atstringFor hosted docs: ISO 8601 datetime when the hosted link expires.
ignore_console_messagesbooleanIgnore JavaScript console messages instead of failing generation. Defaults to false on Pipelines 1–6, true on Pipeline 7+.
ignore_resource_errorsbooleanIgnore errors downloading CSS/images (DocRaptor default true). Set false to fail generation on resource errors.
javascriptbooleanEnable DocRaptor's JavaScript engine (default false), recommended for Typekit and Highcharts. Separate from prince_options.javascript; usually enable only one engine.
namestringA name for the document (<=200 chars), shown in the DocRaptor dashboard/listing.
pipelinestringRendering pipeline/engine version, e.g. '10'. Omit to use DocRaptor's default.
prince_optionsobjectPDF engine (Prince) options. PDF only.
referrerstringExplicit referrer for JavaScript requests, e.g. Typekit with document_content. Defaults to document_url.
strictstringPDF HTML validation: html fails on invalid HTML; none disables strict HTML validation.
tagstringAn arbitrary tag string for your own reporting/grouping.
testbooleanDefault true: generate a FREE test document (watermarked PDF or Excel limited to 20 rows). Set false explicitly for a real, BILLED document.
typestringOutput 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}.

ParameterTypeDescription
status_id *stringThe 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.

ParameterTypeDescription
pageintegerPagination page number. Default 1.
per_pageintegerDocuments 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.