Back to home@zhaoyaqi18

dsh-pdfslim

PDF compression MCP tools for DeepSeek Harness (dsh). Compress/optimize/inspect PDFs via api.pdfslim.app — free 20 calls/day, pro key on Ko-fi.

Stars
0
Language
Created
Aug 17, 2026
Updated
Aug 17, 2026

Introduction

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_pdfCompress a PDF to a target size / quality (render-rebuild engine)
mcp__pdfslim__optimize_pdfLossless structural optimization (garbage collection, stream compression)
mcp__pdfslim__inspect_pdfPage 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