Integrations
Every way to connect CastPDF today, from the SDKs, the MCP server and the n8n node to plain HTTPS requests and webhooks, with each app's honest status.
On this page
CastPDF is an HTTPS API, so anything that can send a web request can make a PDF with it. On top of that there are official SDKs for Node.js and Python, an MCP server for AI agents, a ready-made node for one automation platform, and webhooks to start your own workflows when a PDF is ready. This page lists every way to connect CastPDF today, with the status of each one, so you can pick the shortest path for your stack.
Ready to use
| Way to connect | Status | Where to start |
|---|---|---|
| n8n community node Available | Published on npm | n8n node docs |
Node.js and Python SDKs (@castpdf/sdk, castpdf) | Published on npm and PyPI | SDKs |
MCP server for AI agents (@castpdf/mcp) | Published on npm | MCP server docs |
| HTTPS requests from any tool or language | Always available | API reference |
| Webhooks to your own server or workflow | Starter, Growth, Pro and Scale plans | Webhooks |
The n8n node
The n8n community node Available adds a CastPDF node and a CastPDF Trigger to n8n. The node creates PDFs from your templates or from HTML and reads your templates; the trigger starts a workflow when a PDF is ready or has failed. Install the package @castpdf/n8n-nodes-castpdf from the npm listing, add your API key as a credential, and pick a template from the list. Setup, every operation and the limits are on the n8n node page.
Apps waiting for marketplace approval
The Zapier app In review and the Make app In review are built and submitted to their marketplaces, and are waiting for approval there. Until each one is approved, it cannot be installed. The badge next to each name shows where it stands today.
Any tool that can send an HTTPS request
You do not need a dedicated app. Every automation platform, form tool and internal tool builder that has a generic web request step can call CastPDF directly: send a POST to https://api.castpdf.com/v1/pdf with your API key in the Authorization header and a JSON body with your template id and data. In a tool that accepts a request as curl, it looks like this:
curl https://api.castpdf.com/v1/pdf \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template_id": "8d1f2c3b-4a5e-4f60-9b7a-1c2d3e4f5a6b", "data": {"number": "INV-042"}, "response": "url"}'Ask for "response": "url" to get back a signed download link instead of the file, which is easier to pass to the next step. Platforms with short time limits can add "async": true and get the result through a webhook instead of waiting.
The guides hub has step-by-step tutorials for common tools and use cases.
For example, the guide to making a PDF with an n8n HTTP Request node shows the same call without the community node, using only the built-in web request step.
From AI agents
The CastPDF MCP server lets you use CastPDF from AI agents (Claude, Cursor, ChatGPT and others that support MCP). The agent lists your templates, reads their fields, creates PDFs and e-invoices and looks up documents with your API key, and every document is a test document unless you ask for a live one. It starts with npx -y @castpdf/mcp, and the overview shows how the pieces fit.
Webhooks: the other direction
The paths above send data to CastPDF. Webhooks go the other way: CastPDF sends a signed POST to a URL of yours when a PDF is created (pdf.created), when one fails (pdf.failed) and when a batch finishes (batch.completed). Point a webhook at your own server, or at the webhook trigger of any automation tool, to store each PDF, email it, or update the record it belongs to. Every request is signed, so you can check that it came from CastPDF. Webhooks are included in the Starter, Growth, Pro and Scale plans; see webhooks and signatures and the endpoint API.
From your own code
From your own application, install the official SDK for Node.js or Python, or call the API with the HTTP client you already use. The developers page has examples for Node.js, Python and other languages, and the API reference shows every request in curl, Node.js and Python. The OpenAPI description and Postman collection let you generate a client or try requests without writing code. For many PDFs at once, send a batch or upload a spreadsheet (a CSV or XLSX file) and get every PDF in one ZIP file.
Next steps
- Quickstart: your first PDF in a few minutes.
- SDKs: the Node.js and Python clients.
- MCP server: CastPDF in Claude, Cursor, VS Code and other MCP clients.
- n8n node: install the node and build a workflow.
- Test and live mode: build with free test PDFs, then go live.
- Webhooks: react when a PDF is ready.