PDFMonkey MCP by usefulapi

v1.1.0
io.usefulapi/pdfmonkey Checked 8 hours ago Published 2 days ago

Read templates and documents; generate PDFs and images from templates in PDFMonkey.

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

pdfmonkey_get_account Get account and quota

Get the PDFMonkey account: current plan, documents still available this period, paying status and trial end. Omits the auth token and e-mail. PDFMonkey API: GET /api/v1/current_user.

pdfmonkey_list_templates List templates

List the document templates of one workspace (lightweight cards, no HTML body). The API has no workspace list: use the workspace_id (app_id) shown on a document card or in the dashboard. PDFMonkey API: GET /api/v1/document_template_cards?q[workspace_id]=.

ParameterTypeDescription
workspace_id *stringThe workspace (app_id) to list templates from.
foldersstringComma-separated folder ids, 'none' for unfiled templates, or 'all' (default).
pageintegerPage number for pagination (default 1).

pdfmonkey_get_template Get a template

Get one template with its published HTML body, styles, settings and sample data. Use it to see which payload keys a template expects. PDFMonkey API: GET /api/v1/document_templates/{id}.

ParameterTypeDescription
template_id *stringThe template id (from pdfmonkey_list_templates).

pdfmonkey_list_documents List documents

List generated documents as lightweight cards (24 per page), newest first. Filter by template, status, workspace or update time. Cards include status, filename and download_url when ready. PDFMonkey API: GET /api/v1/document_cards.

ParameterTypeDescription
pageintegerPage number for pagination (default 1).
searchstringA document id (exact match) or a partial filename.
statusstringOnly documents with this status.
template_idstringOnly documents of this template id (one UUID or a comma-separated list).
updated_sincestringOnly documents updated after this ISO 8601 time or Unix timestamp.
workspace_idstringOnly documents of this workspace (app_id).

pdfmonkey_get_document Get a document's status

Get one document card: status (draft, pending, generating, success or failure), failure_cause, filename and download_url. A download_url is a signed link valid for one hour: call this again for a fresh link. PDFMonkey API: GET /api/v1/document_cards/{id}.

ParameterTypeDescription
document_id *stringThe document id (from pdfmonkey_generate_document or pdfmonkey_list_documents).

pdfmonkey_get_document_details Get document details

Get one full document: the payload it was built from, generation_logs (useful when status is failure), checksum and metadata. Heavier than pdfmonkey_get_document. PDFMonkey API: GET /api/v1/documents/{id}.

ParameterTypeDescription
document_id *stringThe document id.

pdfmonkey_generate_document Generate a document

Queue one PDF or image from a template and the payload data. Uses one document from the account quota. When the quota is used up, the API rejects the request unless pay-as-you-go is on, which bills each extra document. Returns at once with status pending: call pdfmonkey_get_document for the download_url. The request is not retried. PDFMonkey API: POST /api/v1/documents with status pending.

ParameterTypeDescription
template_id *stringThe template to render (from pdfmonkey_list_templates).
metaobjectMetadata stored with the document. Use the _filename key to name the file, for example { "_filename": "invoice-42.pdf" }.
payloadobjectThe dynamic data object the template reads, for example { "customer": "ACME", "total": 90 }.