# PDF-API.io — how to use (mcp.ai)

Connect your PDF-API.io account and use 1 tools for documents straight from your AI agent. Connect with your own API key. PDF-API.io offers a dynamic PDF generation API with a drag-and-drop template designer, allowing developers to create customizable PDFs using HTML and CSS.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_pdf_api_io?ms=1787295780000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `pdf_api_io_list_templates`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/pdf_api_io`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/pdf_api_io/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/pdf_api_io/list/templates` — Tool to list all available templates. Use after authentication to retrieve user's templates. Returns template metadata only; populating or rendering a template requires additional tool calls. Verify r

## Example prompts
- "What can I do in PDF-API.io?"
- "Show me a summary of my PDF-API.io account"

## More
- Page: https://mcp.ai/pdf_api_io
- Agent spec (llms.txt): https://mcp.ai/pdf_api_io/llms.txt
- Postman collection: https://mcp.ai/pdf_api_io/postman.json
