scanner-mcp
scanner-mcp is an MCP server that lets Claude (or any MCP client) discover and control physical document scanners to digitize and read paper documents.
Discover scanners (
list_scanners): Find all reachable scanners, including network (eSCL/AirScan/mDNS) and USB devices (WIA on Windows, SANE on Linux/macOS, optional TWAIN). Returns scanner IDs, names, backends, connection types, and supported sources.Scan documents (
scan_document): Trigger a scan with fine-grained control:Source: flatbed glass (
platen), document feeder (adf), or duplex feeder (adf-duplex)Resolution: 150 DPI (fast), 300 DPI (documents), or 600 DPI (fine detail)
Color mode: full color, grayscale, or 1-bit black & white (lineart)
Output format: PNG, JPEG, or PDF (ideal for multi-page archives)
Save scans: Output files saved to a configurable directory (default
~/Scans).Return inline images: Scanned pages returned directly so Claude can view and analyze them immediately.
OCR text extraction: Extract text from scanned pages using Tesseract (requires Tesseract + pytesseract).
Cross-platform: Works on Windows (WIA/TWAIN), Linux (SANE), and macOS (SANE/eSCL), with backends auto-detected.
Local-only processing: All scanning is performed locally — no data is sent to the cloud.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scanner-mcp List my scanners"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
scanner-mcp
Let Claude scan and read paper documents from any USB or network scanner.
A generic MCP server that exposes a scanning tool to Claude (and any other MCP client). It works with network scanners through the standard eSCL / AirScan / Mopria protocol and with USB scanners through the platform driver stack — WIA on Windows and SANE on Linux/macOS. No vendor-specific driver code.
When Claude needs to read a paper document, it can call scan_document, and the page
image is returned inline so Claude can read it directly (optionally OCR'd to text, or
saved as PDF).
What it exposes
Tool | Purpose |
| Discover every scanner reachable from this machine (network + USB). |
| Scan a page/stack and return it as inline images, a saved file, and/or OCR text. |
Backends are auto-detected and degrade gracefully — the same server runs on any OS and lights up whatever scanners it can reach:
eSCL (
_uscan._tcpmDNS) — driverless network MFPs/scanners. Cross-platform.WIA — USB (and some network) scanners on Windows, driven via PowerShell COM.
TWAIN — Windows scanners that expose only a TWAIN data source (older/pro units with no usable WIA driver). Optional; needs
pytwain+ a TWAIN DSM (see below).SANE (
scanimage) — USB/network scanners on Linux and macOS.
Related MCP server: docuprox-mcp
Install
pip install scanner-mcp
# optional OCR support (also needs the Tesseract binary installed):
pip install "scanner-mcp[ocr]"
# optional TWAIN backend, Windows only (also needs a TWAIN DSM, see below):
pip install "scanner-mcp[twain]"git clone https://github.com/AminHA1248/scanner-mcp
cd scanner-mcp
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
pip install -e ".[twain]" # editable install; add [ocr] too if you want OCRPlatform prerequisites:
Windows: nothing extra for WIA — it and PowerShell ship with Windows. Install the scanner's normal Windows driver so it appears in Devices.
TWAIN (optional): install
pytwain(pip install -e ".[twain]") and make sure a TWAIN DSM is present. 64-bit Python needsTWAINDSM.dll(shipped by most TWAIN 2.x drivers or the TWAIN DSM redistributable); 32-bit Python can use the classictwain_32.dll. If neither is installed, the TWAIN backend just stays disabled.
Linux:
sudo apt install sane-utils(providesscanimage).macOS:
brew install sane-backendsfor USB; network scanners work via eSCL with no extras.Network scanners: just be on the same LAN/subnet; mDNS handles discovery.
Connect it to Claude
Claude Desktop — one-click extension (easiest)
Download scanner-mcp-<version>.mcpb from the
latest release and open it
via Settings → Extensions → Install extension…. Requires Python 3.10+ with
pip install scanner-mcp (the extension tells you if it's missing). Details:
docs/EXTENSION.md.
Claude Desktop — manual config
Edit claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"scanner": {
"command": "scanner-mcp"
}
}
}If scanner-mcp isn't found (its Scripts/bin dir isn't on Claude's PATH), use the full
path to the launcher — e.g. C:\Users\you\...\Scripts\scanner-mcp.exe on Windows or
/path/to/venv/bin/scanner-mcp on macOS/Linux — or python -m scanner_mcp.server.
Claude Code (CLI)
claude mcp add scanner -- scanner-mcpRestart the client, then ask Claude: "List my scanners" or "Scan the document on the glass and read it."
How you actually run it
You normally don't launch anything yourself — Claude Desktop/Code starts the
scanner-mcp server in the background (per the config above) and calls its tools when
you ask. Running scanner-mcp by hand just starts the MCP server, which waits silently
for JSON-RPC on stdin; it is not an interactive shell.
To test the hardware without Claude, use the bundled CLI, test_scan.py:
# from the project folder, using the venv's Python
python test_scan.py --list # discover scanners
python test_scan.py --dpi 300 # scan (auto-selects if only one)
python test_scan.py --scanner "<id>" --source adf --format pdfConfiguration (env vars)
Variable | Default | Meaning |
|
| Where scans are written. |
|
| Log level. |
scan_document options
scanner_id (from list_scanners; auto if only one), source
(auto/platen/adf/adf-duplex), resolution (DPI), color_mode
(color/gray/lineart), output_format (png/jpeg/pdf), save_dir,
return_image (inline images for Claude to read), ocr (extract text).
Notes & limitations
eSCL covers most scanners sold in the last ~decade (anything "AirPrint/AirScan" or "Mopria" capable). Older USB-only units go through WIA/SANE instead.
PDF output for multi-page WIA scans is assembled with Pillow.
HTTPS eSCL devices use self-signed certs, so TLS verification is disabled for them (typical for LAN scanners); prefer a trusted network.
This server performs local hardware I/O only — it does not send anything to the cloud.
Privacy Policy
scanner-mcp runs entirely on your machine and collects no data — no telemetry, no
analytics, no network transmission of your scans. Scanned files are saved only to your
local disk (default ~/Scans) and returned to the MCP client you asked to scan. Full
policy: PRIVACY.md.
License
MIT
Available Tools
2 toolslist_scannersARead-only
List all scanners reachable from this machine.
Discovers network scanners over mDNS (eSCL/AirScan) and local USB scanners via the
platform driver stack (WIA on Windows, SANE on Linux/macOS). Returns a JSON array of
scanners with their id (pass this to scan_document), name, backend,
connection type and supported sources.
Inputs: no named parameters. Returns: result
scan_documentA
Scan a document and return it so Claude can read it.
Args:
scanner_id: Which scanner to use (from list_scanners). If omitted and exactly
one scanner is found, that one is used; if several are found, an error lists them.
source: auto | platen (flatbed glass) | adf (document feeder) |
adf-duplex (feeder, both sides).
resolution: DPI (150 fast, 300 documents, 600 fine). Default 300.
color_mode: color | gray | lineart (1-bit black & white).
output_format: png | jpeg | pdf. PDF is best for multi-page archives;
images let Claude view the page inline.
save_dir: Folder to save the scan in. Defaults to ~/Scans (or $SCANNER_MCP_SAVE_DIR).
return_image: If true and the output is an image, the page images are returned
inline so Claude can read the document directly. Ignored for PDF.
ocr: If true, also OCR each page to text (requires Tesseract + pytesseract).
Returns a summary plus, when applicable, inline page images and/or OCR text.
Inputs: ocr, source, save_dir, color_mode, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: one discovers available scanners, the other performs a scan. No overlap or ambiguity exists.
Both tool names follow a consistent verb_noun pattern with underscores (list_scanners, scan_document), making them predictable and clear.
With only 2 tools, the set is minimal but adequate for the focused domain of document scanning. Slightly under the typical 3-15 range, but still reasonable.
The tools cover the core workflow of discovering and scanning documents with many configuration options. Minor gaps like canceling a scan or checking scanner status are present but not critical.
Maintenance
Related MCP Connectors
ScanSing reads printed sheet music. Give Claude a PDF or a photo of a score and it gets back MusicXML, the format MuseScore, Sibelius, Finale and Dorico open. It is the recogniser inside the ScanSing app for choir singers, offered as a connector. Once a score is recognised, Claude can answer questions about it without recognising it again: - what the key, time signature, tempo and length are, and each part's range, clefs and lyrics; - one voice on its own, for example just the alto line of a choir piece; - the score or a part moved to another key, with notes respelled for the new key signature; - a MIDI file, one track per part, to listen to or rehearse with; - a short-lived download link to open the result in a browser or notation app. It handles PDFs up to 40 pages and PNG, JPEG, HEIC, TIFF and WebP images, can recognise selected pages of a long PDF, and can split a songbook into one MusicXML per piece. A file can be given as a web link or a small image; in Claude Code, a file on your computer is sent through a one-time upload link. Recognition spends pages from your ScanSing plan, so it is the only tool that is not read-only. Everything else works on the stored result and is free. The first connection with a new email comes with 20 free pages; paid plans start at $9 a month for 300 pages. Scores and results are deleted about an hour after recognition and are never used for training.
PDF and image tools for AI agents: compress, merge, split, OCR, sign. Runs locally, never uploads.
Documents to Markdown and PDF, OCR, transcription, TTS, screenshots, domain checks, video frames.
Document OCR, vehicle analysis, and workspace usage tools for Scanverion.
Related MCP Servers
AlicenseAqualityDmaintenanceEnables document parsing into structured, confidence-scored fields via the scan tool, working with any MCP host like Claude Desktop or Cursor.144 npmMIT
docuprox-mcpofficial
AlicenseAqualityDmaintenanceEnables AI clients like Claude to process documents (invoices, passports, etc.) via the DocuProx API, with tools for submitting jobs, checking status, and retrieving results.519 npmMIT- FlicenseNot gradedqualityDmaintenanceEnables interaction with reMarkable tablets, allowing users to send PDFs and EPUBs, print from any application, list and read documents, and render handwritten pages as images. It provides MCP tools and skills for Claude to read and write to the tablet.-
- AlicenseBqualityCmaintenanceEnables scanner capture via SANE on Linux, providing tools for device discovery, scan jobs with ADF/duplex support, document batching, and multipage assembly through a local MCP server.855 npm6MIT