Home › Solutions › AI document generation
Solution
Generate documents with AI agents
Point any MCP client (Claude, ChatGPT, Gemini or Copilot) at mcp.shippdf.com. The agent designs the template, publishes it, and generates the finished PDF from your data. Scoped keys decide exactly what it can touch.
# Your agent calls ShipPDF's MCP tools at mcp.shippdf.com
create_template({ name: "Invoice", document: { /* pages + data fields */ } })
→ { template_id: "tmpl_example", lock_version: 1 }
publish_template({ template_id: "tmpl_example" })
→ { published_revision: 1 }
generate_document({
template_id: "tmpl_example",
data: { number: "INV-1042", customer: "Acme Co." }
})
→ { document_ref: "doc_a3...", status: "queued" }
get_document({ document_ref: "doc_a3..." })
→ { status: "completed", pdf_url: "…/inv-1042.pdf" }Want to see it end to end? Walk through the setup in Connect ShipPDF to your AI assistant.
How an agent builds and ships a document
- Creates the template. The agent calls
create_templatewith a structured document of data fields and laid-out pages, with no brittle HTML to hand-write. - Publishes a revision.
publish_templateturns the draft into an immutable, versioned revision that can be rendered against. - Generates the PDF.
generate_documentwith your data returns adocument_ref; the agent pollsget_documentfor the hostedpdf_url.
Why route it through MCP
- Works with any model. Any MCP client connects, so you are not locked to one AI provider.
- Structured, versioned templates. Templates are JSON documents, not fragile markup; drafts publish to immutable revisions.
- Scoped keys. Grant only
templates:writeordocuments:create, and the agent can do exactly that and no more. - One set of templates. What an agent builds is the same template your API and no-code flows use.
Questions
Can an AI agent create a document template?
Yes. Through ShipPDF’s MCP server, an agent can create, update and publish a template as a structured document (data fields plus laid-out pages), then generate PDFs from it. Templates are versioned: drafts publish to immutable revisions an agent can render against.
Which AI models work with ShipPDF?
Any MCP-compatible client: Claude, ChatGPT, Gemini or Copilot. ShipPDF does not embed a model; it exposes tools your agent calls, so you are never locked to one provider.