The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Scan MCP listing page.
Minimal MCP server for scanner capture (ADF/duplex/page-size), batching, and multipage assembly.
Note: This package targets Node 22 and Linux SANE backends (scanimage).
Add a server entry to your MCP client configuration:
start_scan_job without a device_id to auto-select a scanner and begin scanning.INBOX_DIR per job: job-*/page_*.tiff, doc_*.tiff, manifest.json, events.jsonl. When crop_carrier_sheets is set and a carrier sheet is detected, a page_*.cropped.tiff derivative is also written per affected page.Prefer to attach the scanner to another machine on your network? scan-mcp also supports the
streamable HTTP transport:
3001; set MCP_HTTP_PORT to override (for example MCP_HTTP_PORT=3333 scan-mcp --http).::) by default; set MCP_HTTP_HOST to restrict (for example MCP_HTTP_HOST=127.0.0.1 when a reverse proxy fronts the server).npx scan-mcp (recommended)
npx scan-mcp --http to launch the streamable HTTP transport when running on another machine.scan-mcp --helpnpm installnpm run buildscanimage (and optionally scanadf)tiffcp (preferred) or ImageMagick convertSCAN_MOCK (default: false): mock SANE calls and generate fake TIFFs for testing.INBOX_DIR (default: scanned_documents/inbox): base directory for job runs and artifacts.SCANIMAGE_BIN / SCANADF_BIN (defaults: scanimage / scanadf): override binary paths.TIFFCP_BIN / IM_CONVERT_BIN (defaults: tiffcp / convert): multipage assembly tools.SCAN_EXCLUDE_BACKENDS (CSV): backends to exclude (e.g., v4l).SCAN_PREFER_BACKENDS (CSV): preferred backends (e.g., epjitsu,epson2).PERSIST_LAST_USED_DEVICE (default: true): persist and lightly prefer last used device.MCP_HTTP_PORT (default: 3001): TCP port for the HTTP transport.list_devices
get_device_options
device_id (string): Target device identifier.start_scan_job
device_id triggers auto-selection and default options.device_id (string)resolution_dpi (integer, 50–1200)color_mode (Color | Gray | Lineart): color_mode defaults to Lineart (document-first);
at >= 600dpi it defaults to Color, since high-dpi capture usually means artwork/photos where
1-bit destroys information. Pass color_mode explicitly to override either default; high dpi
is the only signal used.source (Flatbed | ADF | ADF Duplex)duplex (boolean)page_size (Letter | A4 | Legal | Custom)custom_size_mm { width, height }doc_break_policy { type, blank_threshold, page_count, timer_ms, barcode_values }output_format (string, default tiff)tmp_dir (string)crop_carrier_sheets (boolean, default false): detect carrier-sheet leading-edge band and write cropped page derivatives; raw pages are keptget_job_status
job_id (string)cancel_job
job_id (string)list_jobs
limit (integer, max 100)state (running | completed | cancelled | error | unknown)get_manifest
manifest.json.job_id (string)get_events
events.jsonl log.job_id (string)See JSON Schemas in schemas/ for input shapes. Tests assert against these contracts.
Defaults aim for 300dpi, reasonable color mode, and ADF/duplex when available. Full details on scoring and fallbacks live in docs:
docs/SELECTION.mdsrc/mcp.ts — MCP server entry and tool registrationsrc/services/* — hardware interface and job orchestrationschemas/ — JSON Schemas used for validation and testsdocs/ — architecture, conventions, and deep divesnpm run dev (stdio MCP server), npm run dev:http (HTTP transport)make verify runs lint, typecheck, and testsdocs/CONVENTIONS.md and architecture in docs/BLUEPRINT.mdTracking ideas and future improvements are documented in docs/ROADMAP.md.