Documents
Extract clean text and Markdown locally from PDFs, Office documents, and spreadsheets for seamless LLM consumption.
Documents is a high-performance MCP server written in Rust that converts various document formats into structured Markdown directly on your local machine. Built with clean architecture principles, it handles complex PDFs—automatically identifying text-based, scanned, or mixed pages and performing bounded, parallel OCR when needed using embedded Tesseract models. By processing formats like DOCX, XLSX, PPTX, RTF, and CSV locally with support for granular range queries, it eliminates the need to pass heavy binary or image payloads into LLM context windows while ensuring absolute privacy and zero external runtime dependencies.
Key Features
01Real per-page PDF classification with parallel, embedded OCR for scanned and image-only pages
02Dual-mode functionality operating as both an MCP stdio server and an interactive CLI
03Comprehensive format support covering PDF, Word, Excel, PowerPoint, RTF, and CSV
04Granular range extraction including page, word, sheet, row, and slide selections
05Single self-contained binary architecture requiring zero runtime system dependencies
060 GitHub stars
Use Cases
01Providing AI assistants with clean Markdown text from local documents instead of sending heavy binary files or images
02Extracting specific tables or row ranges from spreadsheets and CSV files into LLM-friendly Markdown tables
03Transcribing and processing scanned PDF archives using offline, privacy-preserving OCR