PDF Slim — PDF Compression for AI

Compress PDFs to exact target sizes (82-93% smaller). Tools: compress_pdf, optimize_pdf, inspect_pdf

Should I use this

Quality & Safety

B
Description quality
100%
Schema completeness
100%
Naming quality
87%
Poisoning risk
40%
Permission match
100%
Protocol compliance
100%

Findings (4)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domainin compress_pdf
  • MEDIUMTool description contains URL to non-standard domainin optimize_pdf
  • MEDIUMTool description contains URL to non-standard domainin inspect_pdf

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~497Tokens (tool definitions)
~704 BTypical response size
Minimal attention impact (0.39% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "pdfslim": {
      "url": "https://api.pdfslim.app/mcp"
    }
  }
}

Remote endpoints

https://api.pdfslim.app/mcpstreamable-http

What it can do

Tool inventory

Tools (3)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢compress_pdf(file_base64, target_size, quality)

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",
  "properties": {
    "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."
    },
    "quality": {
      "type": "integer",
      "description": "Optional JPEG quality 25-95 (default 82). Lower = smaller file."
    }
  },
  "required": [
    "file_base64"
  ]
}
⚪optimize_pdf(file_base64)

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",
  "properties": {
    "file_base64": {
      "type": "string",
      "description": "The PDF file contents, base64-encoded."
    }
  },
  "required": [
    "file_base64"
  ]
}
🟢inspect_pdf(file_base64)

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",
  "properties": {
    "file_base64": {
      "type": "string",
      "description": "The PDF file contents, base64-encoded."
    }
  },
  "required": [
    "file_base64"
  ]
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded3 tools
verifiedversion not recorded3 tools
verifiedversion not recorded3 tools