# Pdfless — how to use (mcp.ai)

Connect your Pdfless account and use 2 tools for documents straight from your AI agent. Connect with your own API key. Pdfless is a document factory that enables developers to create high-quality PDF documents using HTML/CSS templates and data integration.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_pdfless?ms=1787291460000`
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. `pdfless_get_workspace`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/pdfless`
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/pdfless/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/pdfless/get/workspace` — Get workspace details and information. Use this to check if a workspace exists or is available based on the API key. Retrieves metadata about the current workspace including its active status, creatio
- `POST https://api.mcp.ai/api/pdfless/list/document/templates` — List all document templates in your PDFLess workspace with pagination support. Use this action to discover available templates before generating PDFs. Templates must be created in the PDFLess dashboar
  - body: { page?: integer, pageSize?: integer }

## Example prompts
- "What can I do in Pdfless?"
- "Show me a summary of my Pdfless account"

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