Server-side PDF compression for AI agents. Powered by MuPDF (WebAssembly) on Cloudflare Workers.
POST /api/v1/compress Compress PDF (raw body, target via ?target=bytes) POST /api/v1/optimize Lossless optimization POST /api/v1/inspect Page count / size / password check POST /mcp Model Context Protocol (JSON-RPC) GET /api/v1/health Health check
curl -X POST "https://api.pdfslim.app/api/v1/compress?target=500000" \ -H "Authorization: Bearer YOUR_KEY" \ --data-binary @input.pdf \ -o output.pdf
Point your MCP client at https://api.pdfslim.app/mcp and call compress_pdf.
Anonymous: 20 PDFs/day per IP, max 10MB — free for AI agents to try. API keys (up to 100MB files, higher quotas) at Ko-fi. Full docs at pdfslim.app/api.