dsh-pdfslim
开发工具 活跃维护

dsh-pdfslim

zhaoyaqi18/dsh-pdfslim

MCP协议的PDF处理工具,可调用api.pdfslim.app完成压缩、优化、内容检测操作,每日提供20次免费调用额度,也可搭配专业密钥解锁更多使用权益。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
Other
主要语言
None
开源协议
2 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:zhaoyaqi18/dsh-pdfslim
git clone https://github.com/zhaoyaqi18/dsh-pdfslim.git
git clone git@github.com:zhaoyaqi18/dsh-pdfslim.git
README.md master

dsh-pdfslim — PDF Compression for DeepSeek Harness

中文

Bring production-grade PDF compression to DeepSeek Harness. This bundle wires the
api.pdfslim.app MCP server (Cloudflare Worker + MuPDF engine,
~93% average compression) into your DSH profile as three tools:

Tool (as seen by the model) What it does
mcp__pdfslim__compress_pdf Compress a PDF to a target size / quality (render-rebuild engine)
mcp__pdfslim__optimize_pdf Lossless structural optimization (garbage collection, stream compression)
mcp__pdfslim__inspect_pdf Page count, file size, password protection check

Install

git clone https://github.com/zhaoyaqi18/dsh-pdfslim
dsh plugin --profile <name> add ./dsh-pdfslim
dsh --profile <name>

The upstream MCP server is hosted and always-on — no local engine, no dependencies.

Usage example

"Compress this PDF to under 1MB: ./report.pdf"

The agent calls mcp__pdfslim__compress_pdf and returns the compressed file.

Limits & pricing

  • Anonymous: 20 free calls/day per IP — perfect for trying it out.
  • Pro Key: $9.90/month, 5,000 calls, up to 100MB files — buy on Ko-fi.
  • Files up to 100MB. Gigantic files (100MB+) are handled by the web app: pdfslim.app.

When the free quota runs out, the API itself tells the AI where to go (buy a key or use the free web app) — no dead ends.

Why PDF Slim?

  • Real compression engine (MuPDF render-rebuild), not just re-packaging — measured 93% on a 11MB test PDF.
  • Privacy-first: files are processed in memory, not stored.
  • Works from anywhere: Claude, Hermes, DSH, or any MCP client.

License

MIT