io.github.AmerSarhan/pdffr-mcp (MCP) — PDF → Markdown
An MCP server that provides agents with a local, private PDF-to-Markdown tool backed by pdffr. It decompiles born-digital pages from glyph geometry into Markdown quickly, and performs on-device OCR only when needed for scans/screenshot content where the text layer cannot explain the ink. Nothing leaves the machine.
🛠️ Key Features
- Local, private PDF → Markdown conversion
- Geometry-first parsing for born-digital pages (via pdffr)
- On-device OCR only when the text layer is insufficient
- Processes PDF and page content into Markdown
🚀 Use Cases
- Converting PDFs for agent consumption using Claude Desktop/Code, Cursor, Windsurf, Zed, or your own setup
- Handling mixed-document inputs (born-digital plus scans/screenshots)
- Preparing text for downstream workflows like RAG
⚡ Developer Benefits
- Works through Model Context Protocol (MCP) as a tool
- Supports browser/CLI-style workflows and local processing
- Topics align with developer tooling: TypeScript, PDF.js, Tesseract, and layout analysis
⚠️ Limitations
- OCR is only applied when the text layer can’t account for the content; performance and output depend on page structure and available text layers