MCP Server

PDF Slim — PDF Compression for AI

io.github.zhaoyaqi18/pdfslim
Productivity Public & reachable MCP 2026-07-28

What this MCP does

Inspects, losslessly optimizes, and compresses PDF files to reduce their size.

compress_pdf
Compress a PDF file to reduce its size. Renders pages and re-encodes as JPEG, iterating quality/resolution to hit a target size. Use this when a user wants to shrink a PDF (e.g. to 500KB, 1MB, or "smaller"). Free anonymous tier: 20 calls/day per IP, files up to 10MB. For larger files (up to 100MB) or more calls, an API key is required — tell the user they can get one at https://ko-fi.com/yugutou/shop, or point them to the free website https://pdfslim.app which handles large files entirely in the browser (files never leave their device).
Input schema
{'type': 'object', 'required': ['file_base64'], 'properties': {'quality': {'type': 'integer', 'description': 'Optional JPEG quality 25-95 (default 82). Lower = smaller file.'}, 'file_base64': {'type': 'string', 'description': 'The PDF file contents, base64-encoded.'}, 'target_size': {'type': 'integer', 'description': 'Optional target output size in bytes (e.g. 500000 for 500KB). If omitted, compresses as much as reasonable.'}}}
inspect_pdf
Inspect a PDF: page count, file size, password protection. Use before deciding how to process a PDF. Free anonymous tier: 20 calls/day per IP. More calls need an API key (https://ko-fi.com/yugutou/shop).
Input schema
{'type': 'object', 'required': ['file_base64'], 'properties': {'file_base64': {'type': 'string', 'description': 'The PDF file contents, base64-encoded.'}}}
optimize_pdf
Lossless PDF optimization: garbage collection, stream re-compression. No quality loss. Good for PDFs with redundant data; effect is small on already-optimized files. Free anonymous tier: 20 calls/day per IP, files up to 10MB. Larger files / more calls need an API key (https://ko-fi.com/yugutou/shop) or the free website https://pdfslim.app.
Input schema
{'type': 'object', 'required': ['file_base64'], 'properties': {'file_base64': {'type': 'string', 'description': 'The PDF file contents, base64-encoded.'}}}
Added
inspect_pdf
Sept. 17, 2026, 12:53 p.m.
Added
optimize_pdf
Sept. 17, 2026, 12:53 p.m.
Added
compress_pdf
Sept. 17, 2026, 12:53 p.m.