Mdshrink — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mdshrink (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Auto-compress PDFs and screenshots to Markdown before they hit Claude Code's context. 5-10x fewer tokens, fully local, one-line install.
mdshrink is an MCP server that automatically converts PDFs and screenshots to compact Markdown before they hit Claude Code's context window. It preserves semantic content while reducing token usage by 5-10x.
When you attach a PDF or screenshot in Claude Code:
Most of those tokens are visual redundancy - fonts, layout, whitespace - that the model doesn't need. mdshrink extracts the semantic content and discards the bloat.
pip install mdshrink-mcp
claude mcp add mdshrink -- mdshrinkRestart Claude Code. That's it.
Once installed, Claude Code will automatically call mdshrink tools before reading PDF or image files:
Each conversion reports:
original_tokens - Estimated tokens for native filecompressed_tokens - Actual tokens in Markdownratio - Compression ratio (e.g., "5.2x")| Type | Compression | Notes |
|---|---|---|
| Text-native PDFs | 5-10x | API specs, RFCs, papers, contracts |
| Screenshots of text | 3-5x | Code, error messages, docs, terminal |
| Scanned docs | Varies | Requires OCR (future) |
/mcpShould show:
✔ Found 1 MCP server
• mdshrink: connected (3 tools)If not, reinstall:
claude mcp remove mdshrink
claude mcp add mdshrink -- mdshrinkRun PowerShell as Administrator, then:
pip install --force-reinstall mdshrink-mcp~/.cache/mdshrink/%LOCALAPPDATA%\mdshrink\Disable caching: MDSHRINK_NO_CACHE=1
Clear cache:
from mdshrink_mcp import cache
cache.clear_cache()claude mcp remove mdshrink
pip uninstall mdshrink-mcpMIT - See LICENSE for details.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.