Skip to content
dsh.fish
Bundle

dsh-pdfslim

PDF compression tools for DeepSeek Harness via api.pdfslim.app MCP

Source
zhaoyaqi18
License
MIT
Updated
Updated 3 days ago

Readme

# dsh-pdfslim — PDF Compression for DeepSeek Harness

[中文](README.zh.md)

Bring production-grade **PDF compression** to DeepSeek Harness. This bundle wires the
[api.pdfslim.app](https://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

```sh
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](https://ko-fi.com/s/64ba154ebb).
- Files up to 100MB. Gigantic files (100MB+) are handled by the web app: [pdfslim.app](https://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

Install

dsh plugin --profile web add github:zhaoyaqi18/dsh-pdfslim

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source