docjet-mcp

v1.0.1
io.github.docjet-dev/docjet-mcp Checked 1 day ago Published 5 months ago

Render branded PDFs and PNG images from templates or raw HTML via the DocJet API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

render_pdf Render PDF

Render a branded PDF document with the DocJet API. Provide a template_id (discover them with list_templates) or raw html, plus a data object for template variables. Returns a signed download URL for the PDF.

ParameterTypeDescription
dataobjectTemplate variables (Handlebars data object)
htmlstringRaw HTML to render (max 512 KB) — alternative to template_id
template_idstringTemplate ID from list_templates (provide template_id OR html)

render_image Render Image

Render a PNG image (e.g. an OG/social card) with the DocJet API. Provide a template_id (discover them with list_templates) or raw html, plus a data object for template variables. Returns a signed download URL for the PNG.

ParameterTypeDescription
dataobjectTemplate variables (Handlebars data object)
htmlstringRaw HTML to render (max 512 KB) — alternative to template_id
template_idstringTemplate ID from list_templates (provide template_id OR html)

list_templates List Templates

List the available DocJet templates: id, name, description and outputType (pdf or png). Use a returned id as template_id in render_pdf / render_image.