Skip to main content
Glama

DocRaptor MCP by usefulapi

Create a document (PDF/XLS/XLSX)

docraptor_create_document
Destructive

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). Set hosted:false to get the raw document back as base64, or async:true to enqueue a job and poll docraptor_get_document_status. IMPORTANT: real documents consume account credits (billed). Set test:true to generate a FREE, watermarked document while developing. DocRaptor API: POST /docs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoAn arbitrary tag string for your own reporting/grouping.
nameNoA name for the document (<=200 chars), shown in the DocRaptor dashboard/listing.
testNoIf true, generate a FREE watermarked test document (does not consume credits). Default false = a real, BILLED document.
typeNoOutput format: pdf (default), xls, or xlsx.
asyncNoIf true, enqueue the job and return a status_id (poll with docraptor_get_document_status). Best for large/slow documents. Default false.
hostedNoIf true (default), DocRaptor hosts the file and returns a download_url. If false, the raw document is returned as base64.
pipelineNoRendering pipeline/engine version, e.g. '10'. Omit to use DocRaptor's default.
document_urlNoA URL DocRaptor will fetch and render. Use this OR document_content.
prince_optionsNoPDF engine (Prince) options. PDF only.
document_contentNoThe HTML/XML source to render. Use this OR document_url.
hosted_expires_atNoFor hosted docs: ISO 8601 datetime when the hosted link expires.
hosted_download_limitNoFor hosted docs: max number of downloads before the link expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.