fast-scan
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
fast-scan
Fast document digitization from photos. Point a phone or webcam at a page and get back a clean, flat, correctly rotated scan — plus its text. Use it as a Python library, a CLI, an HTTP API or an MCP server for AI assistants.
Why
Digitizing paper is usually slow and error-prone: someone takes a photo, crops it by hand, finds out later that it was blurry, and retypes what the OCR got wrong. fast-scan targets three outcomes:
No retakes discovered too late: the quality check says at capture time what is wrong (blur, glare, a hand in the frame).
No manual cropping or rotating: the page comes out flat, upright and clean.
Fits into any workflow: the same engine works as a library, a CLI, an HTTP API or an AI-assistant tool (MCP).
Design principles
Never guess silently. When orientation or quality is uncertain, the result says "needs review" instead of applying a wrong fix.
Private by default. Nothing is stored; the vision-LLM backend is opt-in and can run fully local.
Works on modest hardware. CPU-only engines first; heavy models are optional extras.
Related MCP server: document-intelligence-server
Features
Page detection & perspective correction: finds the sheet in a photo and flattens it.
Shadow removal: turns uneven lighting into evenly white paper.
Auto-rotation: detects 0/90/180/270° from the text layout, Tesseract OSD or OCR readability. When it isn't sure, it says so instead of guessing.
Quality checks: blur, exposure, glare, framing, blank pages and hands covering the page, each with a human-readable reason to retake.
Hands-free capture:
AutoCapturewatches a camera feed and fires once per page when it is sharp, framed and still, and never captures the same page twice.Pluggable OCR: Tesseract, RapidOCR, EasyOCR or any OpenAI-compatible vision LLM (Ollama, vLLM, LM Studio…).
PDF: many photos in, one optimized PDF out.
Private by default: the API processes everything in memory and stores nothing.
How it works
flowchart LR
A[Photo] --> B[Quality check]
B --> C[Detect page<br/>+ fix perspective]
C --> D[Remove shadows]
D --> E[Auto-rotate]
E --> F[Optimized JPEG / PDF]
E --> G[OCR engine]
G --> H[Text + confidence]Install
pip install "fast-scan[rapidocr] @ git+https://github.com/edjan11/fast-scan"Extra | Adds |
| RapidOCR (ONNX, fast on CPU, no system binary needed). Recommended. |
| EasyOCR (deep learning, better on handwriting; heavier) |
| Vision-LLM backend over an OpenAI-compatible API |
| All of the above |
For Tesseract, install the binary (instructions). fast-scan finds it on PATH.
Usage
CLI
fastscan scan photo.jpg # -> photo_scan.jpg
fastscan scan *.jpg --pdf document.pdf # many photos -> one PDF
fastscan scan receipt.jpg --ocr # print the text
fastscan engines # which OCR engines are installedPython
from fastscan import process_image, ScanOptions
result = process_image("photo.jpg", ScanOptions(ocr=True))
open("clean.jpg", "wb").write(result.jpeg)
print(result.quality.status, result.quality.reasons)
print(result.text)HTTP API
fastscan serve --port 8080 # interactive docs at http://127.0.0.1:8080/docsMethod | Path | Description |
|
| One photo → JSON (image as base64), |
|
| Many photos → one PDF (or JSON report) |
|
| Text only |
|
| Installed OCR engines |
|
| Health check |
curl -F file=@photo.jpg -F ocr=true http://127.0.0.1:8080/scanMCP server (Claude Desktop, Claude Code, other MCP clients)
The server exposes the tools scan_document, extract_text, enhance_image, check_quality, images_to_pdf and list_engines.
{
"mcpServers": {
"fast-scan": {
"command": "fastscan",
"args": ["mcp"],
"env": { "FASTSCAN_OCR_LANG": "eng" }
}
}
}With Claude Code: claude mcp add fast-scan -- fastscan mcp
Then just ask: "Scan ~/Desktop/contract.jpg and give me the text".
OCR engines
Engine | Best for | Needs |
| Photos of printed documents, fast on CPU |
|
| Clean printed pages, many languages, orientation detection (OSD) | system binary |
| Noisy photos and some handwriting (slower) | PyTorch |
| Hard cases: handwriting, complex layouts | a vision-LLM server |
auto picks the first installed engine, in this order: rapidocr, tesseract, easyocr, vlm.
Configuration
All settings are environment variables (see .env.example):
Variable | Default | Description |
|
| Tesseract language(s), e.g. |
| (PATH) | Path to the Tesseract binary |
| OpenAI-compatible base URL, e.g. | |
| e.g. | |
| Only if your endpoint needs one | |
|
| API upload limit |
|
| Output JPEG quality |
Roadmap
Planned work is tracked as issues, each written as a user story with acceptance criteria:
Web capture page (phone camera → API) using
AutoCaptureTwo-page spread splitting (open books)
Searchable PDF (text layer)
Docker image
Development
git clone https://github.com/edjan11/fast-scan && cd fast-scan
pip install -e ".[dev,rapidocr]"
pytestThe test suite uses only synthetic images generated at runtime. See CONTRIBUTING.md.
License
MIT © 2026 Edjan
Português
fast-scan digitaliza documentos a partir de fotos. Ele recorta a página, corrige a perspectiva e a rotação, remove sombras, avalia a qualidade da foto e extrai o texto por OCR. Dá para usar como biblioteca Python, pela linha de comando, por uma API HTTP ou como servidor MCP para assistentes de IA. Para português, use FASTSCAN_OCR_LANG=por. Contribuições são bem-vindas!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
OCR and document understanding: extract text from images, then summarize or translate it.
Turn PDFs, scans and photos into a queryable database. Invoices, CVs, receipts, in bulk.
Composable APIs for document extraction, image transformation, and document & sheet generation.
Turn documents into verified, structured data: fields, tables, and automatic checks.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to extract and structure content from documents (PDFs, images, Office files) using Upstage AI's document digitization and information extraction APIs.23MIT
- AlicenseNot gradedqualityDmaintenanceEnables intelligent document processing by extracting text, classifying document types, and generating structured summaries from PDFs and images using vision LLMs.MIT
- AlicenseNot gradedqualityDmaintenanceEnables document text recognition and extraction from images and PDFs using Claude Vision, including support for scanned documents and structured output, without requiring local OCR engines.MIT
- AlicenseAqualityBmaintenanceReads passports, ID cards and driver's licences from a photo or scan and returns the printed fields and MRZ as structured JSON. One credit ($0.01) per recognised document; nothing is charged when no document is found.6MIT