About CastPDF
CastPDF MCP server connects AI agents to CastPDF for template-based or HTML PDF creation, EU e-invoicing, and document lookup. It defaults to watermarked test documents, while live documents require an explicit request.
Key features
- 01List templates and expected fields
- 02Create PDFs from templates or HTML
- 03Issue ZUGFeRD and Factur-X PDFs
- 04Create XRechnung XML invoices
- 05List and retrieve documents
Use cases
- 01Preview a PDF using a test document
- 02Generate a PDF from HTML or template data
- 03Issue structured EU e-invoices
- 04Check document status and download links
MCP support
The MCP server exposes CastPDF template, PDF creation, e-invoice, and document lookup tools to MCP clients. It supports stdio and Streamable HTTP transports.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @castpdf/mcpCASTPDF_API_KEYSecretYour CastPDF API key (cpdf_test_... for watermarked test documents, cpdf_live_... for live ones).Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
6Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | 1 to 100, default 50. |
| offset | integer | No | Templates to skip, for paging. |
Details
The maintainer has not added details yet. Check the README in the repository.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.