PDF Slim — PDF Compression for AI

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

我该使用它吗

质量与安全性

B
描述质量
100%
模式完整度
100%
命名质量
87%
投毒风险
40%
权限匹配度
100%
协议合规性
100%

发现(4)

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

基于对工具定义和协议合规性的自动分析。

上下文开销

~497token 数(工具定义)
~704 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.39%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

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

远程端点

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

它能做什么

工具清单

工具(3)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢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).

输入模式

{
  "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.

输入模式

{
  "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).

输入模式

{
  "type": "object",
  "properties": {
    "file_base64": {
      "type": "string",
      "description": "The PDF file contents, base64-encoded."
    }
  },
  "required": [
    "file_base64"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本3 个工具
已验证未记录版本3 个工具
已验证未记录版本3 个工具