PDFCabin — Self-Hosted PDF & OCR Toolkit
by LegitAntiAA
Privacy-first local PDF skill for MCP agents. Merge, split, compress, OCR (English & Russian), and full-text search documents in Docker without sending files to the cloud.
$5
PDFCabin — Self-Hosted PDF & OCR Toolkit
Example session with this skill installed
Scan my local ./scans/contract_scan.pdf, run OCR if it has no text layer, compress it, and find all pages mentioning "payment".
- Read your context and instructions
- Compiled the pdfcabin
Summary
Imported contract_scan.pdf, detected no text layer, ran English+Russian OCR, compressed the file by 62%, and located 3 matching pages.
| Step | Action | Result |
|---|---|---|
| 1. Import | upload_document | Added contract_scan.pdf (14 pages) |
| 2. Inspect | pdf_info | has_text_layer: false (scan detected) |
| 3. OCR | pdf_ocr (rus+eng) | Searchable text layer added & indexed |
| 4. Compress | pdf_compress (strong) | 18.4 MB → 7.0 MB (-62%) |
| 5. Search | search_documents("payment") | Found 3 matches (pages 2, 7, 11) |
{
"file": "contract_scan_compressed.pdf",
"matches": [
{ "page": 2, "snippet": "...initial payment is due within 10 business days..." },
{ "page": 7, "snippet": "...late payment fee of 0.5% per day..." },
{ "page": 11, "snippet": "...payment schedule and bank details..." }
]
}
Next steps
- Export the compressed, searchable PDF to your desktop using
save_document, or extract full text from pages 2, 7, and 11 withextract_text.
Connects securely to your tools. The creator never sees your data.
About this skill
PDFCabin turns your AI agent into a private, local document workshop.
Instead of uploading sensitive contracts, scans, or invoices to third-party cloud APIs, this skill teaches your agent (Claude Code, Cursor, Copilot, Antigravity) how to operate a self-hosted PDFCabin Docker container (http://localhost:8420/mcp) with 15 dedicated MCP tools.
What your agent can do:
- Smart OCR (English + Russian): Automatically checks if a PDF already has a text layer (
pdf_info) before running Tesseract/OCRmyPDF (pdf_ocr), saving time. - Full-Text Search: Searches across all indexed documents via SQLite FTS5 (
search_documents) and returns exact page numbers and snippets. - Edit & Optimize: Merge (
pdf_merge), split (pdf_split), rotate (pdf_rotate), delete pages (pdf_delete_pages), and compress (pdf_compress— lossless or strong Ghostscript downsampling). - Safe File Handling: Imports and exports files cleanly without overwriting existing documents unless explicitly requested.
Requires PDFCabin running in Docker at http://localhost:8420/mcp. Search matches exact word forms only (no stemming). OCR is limited to English and Russian.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 17 days ago
- Software
DockerPDFCabin MCP server (http://localhost:8420/mcp)
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.