Skip to main content
Glama
idin9

idin9-doc-ocr-mcp

by idin9

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_PATHNoSQLite database path
OCR_DPINoOCR DPI setting
SMB_HOSTNoSMB scanner share host (leave blank to disable)
SMB_USERNoSMB username (leave blank to disable)
SMB_SHARENoSMB scanner share name (leave blank to disable)
SMB_DOMAINNoSMB domain (optional)
WEBUI_PORTNoPort for the optional web review UI8080
SMB_PASSWORDNoSMB password (leave blank to disable)
OCR_LANGUAGESNoOCR language packstha+eng
SCAN_DROP_DIRNoLocal/mounted scanner drop folder
TESSERACT_CMDNoOCR engine commandtesseract
MIN_EMBEDDED_TEXT_CHARSNoThreshold to decide digital vs scanned extraction

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ocr_extract_invoiceA

Extract a single PDF/image invoice and return structured JSON.

ocr_batch_processC

Process all pending files in the drop/staging directory.

ocr_poll_scanner_shareB

Connect to the configured SMB scanner share, pull and process new files.

ocr_get_recordC

Retrieve a processed invoice record from the database.

ocr_list_recordsC

List invoice records with optional status filter.

ocr_review_queueA

List low-confidence (need_train) records awaiting human confirmation.

ocr_review_recordB

Confirm (as success) or reject (as failed) a low-confidence record.

corrected is an optional JSON string of overridden fields (invoiceNumber, invoiceDate, currency, supplier_name, supplier_taxId, buyer_name, buyer_taxId, capture_rate).

ocr_manage_contactC

Perform CRUD operations on the contacts database.

ocr_system_healthA

Report database status, SMB status, and queue depth.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have clearly distinct purposes: extraction, batch processing, scanner polling, record retrieval, review, contact management, and health checks. The only slight overlap is between ocr_batch_process and ocr_poll_scanner_share, since both process files from directory-like sources.

Naming Consistency4/5

All tools share the ocr_ prefix and use snake_case, which creates a strong predictable pattern. However, ocr_batch_process and ocr_system_health deviate from the strict verb_noun structure used by most other tools.

Tool Count5/5

Nine tools is well-scoped for an OCR invoice processing server covering ingestion, extraction, retrieval, review, contacts, and system health. Each tool serves a meaningful part of the workflow without redundancy or bloat.

Completeness4/5

The toolset covers the main OCR invoice lifecycle: extract, batch process, poll scanner, retrieve/list records, review low-confidence results, manage contacts, and check health. Minor gaps exist, such as no direct update/delete for processed invoice records outside the review flow or explicit reprocessing of failed items.

Maintenance

ActivityMaintained
ResponsivenessNo issues