ocr-software-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OCR_KEY | Yes | API key (starts with ocr_). Required except for list_pipelines. Never print it, never paste it into the chat. Get one at ocr-software.com/order. | |
| OCR_OUT_DIR | No | Where get_result writes. An existing file is never overwritten (j1-1.json instead). | ./ocr-results |
| OCR_BASE_URL | No | Base URL of the OCR API. For a self-hosted service, for example http://127.0.0.1:8080. | https://api.ocr-software.com |
| OCR_ALLOWED_DIR | No | Optional. quote and submit_job then read only files below this folder; symlinks and .. do not escape. | |
| OCR_SOFTWARE_API_KEY | No | Alternative name for OCR_KEY, read by the ocr-software package and its CLI; the OCR_ names above win if both are set. | |
| OCR_SOFTWARE_BASE_URL | No | Alternative name for OCR_BASE_URL, read by the ocr-software package and its CLI; the OCR_ names above win if both are set. | |
| OCR_SOFTWARE_ALLOWED_DIR | No | Alternative name for OCR_ALLOWED_DIR, read by the ocr-software package and its CLI; the OCR_ names above win if both are set. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read PDFs and images with ocr-software.com. Order: list_pipelines (show it with the default; you are asked to let the human pick the pipeline; without a choice quote uses the default and says so), quote (nothing runs; show say_to_human to the human), after a real yes of the human submit_job(quote_id, human_confirmed=true, wait_seconds=45, format=...) (job_status if it is not done yet). Results go to files; get_result reads pages or searches without opening the file; uncertain_words lists words to check against the page image; cancel_job stops a job after a yes of the human.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_pipelinesA | List what the service offers (no key needed): per pipeline one line (summary: what it delivers, price per page in euros, when to choose another one), formats and features, and default_pipeline: the fastest and cheapest available one, used when no pipeline is named. Show the available ones to the human with the default; you are asked to let the human pick and not to choose a pipeline yourself. detail=true adds descriptions, capabilities, measurements and hardware (long, rarely needed). |
| quoteA | Dry run: nothing runs, nothing is billed. Returns quote_id, the page count and say_to_human, one sentence with the price: you are asked to show it to the human word for word and get a yes before submit_job. pipeline is name@version from list_pipelines; if the human named none, leave it out: the default (fastest and cheapest available) is used and the sentence names it. The quote_id is for one document, one pipeline and one job. |
| submit_jobA | Start the job of a quote (document, pipeline and price are bound to the quote_id; the budget is the quoted price). You are asked to set human_confirmed=true only after the human saw say_to_human and really agreed (the server cannot check it); if the client can ask the human itself it asks when you leave it false. With wait_seconds and format the result is saved like get_result. Without wait_seconds it returns at once: use job_status, keep the job_id. |
| job_statusA | State and counts of a job. Holds until the job is done or wait_seconds (0 to 300) are over, and reports progress meanwhile: one call is enough, do not poll in a loop; if state is still running call again. When state is done, check problem (pages failed or not run) and tell the human. format (json, text, md, hocr, pdf) saves the result when done. |
| get_resultA | Result of a finished job. Default: write it to a file and return path, size and check: words, mean confidence and uncertain words per page, notes such as probably several columns. The content stays out of the chat. pages ('3', '1-5') returns those pages' text here, search the matching lines with page numbers; neither writes a file. The file goes to ocr-results next to the document by default; pdf is searchable. Results expire after about 24 hours. In the json: confidence is 0 to 1, box is [x0,y0,x1,y1] in pixels of the page image (page width, height). verified (per word) is true only where a second reader confirmed it (scan-vlm-ctc@2); safe_ok (per page) is always false today. Judge by confidence. |
| cancel_jobA | Stop a running job, or delete the result of a finished one (DELETE /v1/jobs/{id}). You are asked to set human_confirmed=true only after the human agreed (the server cannot check it). Pages already read stay charged; check job_status afterwards. |
| uncertain_wordsA | Words the OCR read with low confidence (below max_confidence, default 0.9: the words of the gold set that were really wrong sat at about 0.83) or flagged as differing readings (scan-vlm-ctc), least sure first: page, word, confidence, other_reading if there is a second one, and box [x0,y0,x1,y1] in pixels of the page image (page_size: width and height per page). Check these against the image of the page, do not trust them blindly, and tell the human what you corrected. limit 1 to 100, max_confidence 0 to 1. Needs a finished job. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct step or artifact in the OCR job lifecycle: listing pipelines, quoting, submitting, checking status, retrieving results, cancelling, and inspecting uncertain words. Although get_result and uncertain_words both concern result content, their descriptions clearly separate summary/result saving from detailed low-confidence word inspection.
Most names are readable snake_case, but the set mixes verb_noun patterns (list_pipelines, submit_job, get_result) with noun phrases or bare verbs (quote, job_status, uncertain_words). The inconsistency is mild and names remain interpretable, but there is no single predictable convention.
Seven tools is well scoped for an OCR workflow service: each tool covers a distinct stage from pipeline discovery through result inspection and cancellation. There are no redundant tools and no core lifecycle step is missing from the count.
The core single-job lifecycle is covered: list pipelines, quote, submit, monitor, fetch results, cancel/delete, and inspect uncertain words. Minor gaps remain around job history/listing and explicit document upload or management, but the described workflow has no major dead ends.