PDF4.dev

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:

Prerequisite: create an API key

AI agents authenticate with a regular PDF4.dev API key passed as a parameter to each tool call.

  1. Create a free account
  2. Go to Settings and click Create API key
  3. 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:

PromptWhat 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

Next steps