AI overview
PDF4.dev is AI-native. You can generate, preview, and manage PDF templates through any MCP-compatible AI agent without writing a single line of code.
If you're building with AI, here's what PDF4.dev provides:
- MCP server — connect Claude, Cursor, VS Code, Windsurf, or ChatGPT
- MCP tools reference — 14 tools covering the full PDF lifecycle
- AI-readable files —
llms.txt,llms-full.txt, andagents.mdfor agents that browse docs
Prerequisite: create an API key
AI agents authenticate with a regular PDF4.dev API key passed as a parameter to each tool call.
- Create a free account
- Go to Settings and click Create API key
- Copy the full token — it starts with
p4_live_and is only shown once
The MCP server never stores your API key. It is passed as a parameter with each tool call and forwarded directly to the API.
What your agent can do
Once connected, your AI agent can speak naturally to PDF4.dev:
| Prompt | What happens |
|---|---|
| "Generate an invoice for Acme Corp, total $4,500" | Agent calls render_pdf with your template and returns a PDF |
| "Design a modern certificate template" | Agent writes HTML, calls create_template, then preview_template |
| "Update my invoice to add a discount row" | Agent fetches the template HTML, modifies it, calls update_template |
| "Show me my last 10 PDF generations" | Agent calls list_logs and displays results |