READMESource: master@4369b0bf
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
No comments yet. Be the first to write one.