Skip to main content
Glama

OCR MCP server for ocr-software.com: let Claude, Cursor and other agents read PDFs and scans

Give your AI agent a way to read documents: this MCP server sends PDF, PNG, JPEG and TIFF files to the ocr-software.com OCR API and writes the result (JSON with word boxes, text, Markdown or hOCR) to a file. The API is hosted in Helsinki, EU (Hetzner). It also works against the package on your own server, which takes the same calls: set OCR_BASE_URL to its address (install guide).

The server is small by design. It enforces the price side: no job without a quote, and the quoted price is the cap. The rest is a request to the agent: it is asked to let a person pick the pipeline, show the page count and price, and wait for a real yes. More on the idea and on what to expect: OCR for AI agents (MCP).

Tools

Six tools. The API itself is described in the API guide, the rules for agents in the agent guide. The normal path is three calls: list_pipelines, quote, submit_job with wait_seconds and format.

Tool

What it does

list_pipelines

Short list: per pipeline one summary line (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 by quote when no pipeline is named), from GET /v1/catalog (no key needed); detail=true gives the full catalog. The agent is asked to show the list to the human and never to pick a pipeline itself.

quote

Dry run of POST /v1/jobs. pipeline is optional: without it the default is used and say_to_human says so. Returns a quote_id and say_to_human, a plain sentence with the page count and the amounts in euros. While billing is off it says that you pay EUR 0.00 today, shows the list price for information only and names the fair-use page and the contact. Nothing runs, nothing is billed. The quote is bound to the file (hash), the pipeline, the dpi and the price, lives one hour in the memory of the server and is used up by one job.

submit_job

Starts the job from the quote_id; the budget comes from the quote, so the agent never handles it. The agent is asked to set human_confirmed=true only after the human saw say_to_human and answered yes; the server cannot tell a real answer from a set flag. If the client supports elicitation and the flag is left out, the client asks the human itself. wait_seconds (up to 300) waits for the end with progress messages, format then writes the result in the same call. Sends an Idempotency-Key, so a retry never creates a second job or a second charge.

job_status

Waits up to wait_seconds (default 45) until the job is done, with progress messages, in one call. done does not mean every page worked: it says problem if pages failed or did not run. The queue block shows only while the job waits.

get_result

Fetches json, text, md, hocr or pdf (searchable PDF, needs the original document), writes it to a file and returns the path, the size and a quick check: words, mean confidence, uncertain words and a note for pages that look multi-column (from 12 words on; no pipeline of ours reads columns in order yet) or failed. With pages ("2-4") or search it returns text or matching lines instead of a file; then format, out_dir and source_path are refused, an empty pages or search is an error, and a page the job does not have is an error naming its page count. pdf needs the original: after a restart of the server pass source_path. Results expire after about 24 hours.

uncertain_words

The words the OCR is least sure about: page, word, confidence, the other reading where the pipeline has two (differs), the box in pixels and the page size. The agent should check these against the image. limit is 1 to 100, max_confidence 0 to 1; page_size lists width and height per page.

cancel_job

Stops a running job or deletes the result of a finished one (DELETE /v1/jobs/{id}). The agent is asked to set human_confirmed=true only after the human agreed; if the client can ask the human itself it asks when the flag is left out. Pages already read stay charged.

verified (per word) and safe_ok (per page) in the JSON result are flags of the OCR service, not of this server. verified is true when a second reader confirmed the word: scan-vlm-ctc@2 sets it where the character reader read the same text (flag ok); the other pipelines have one reader and leave it false. safe_ok is always false today (not calibrated), which says nothing against the page. Judge a word by confidence (0 to 1) and flag. box is [x0, y0, x1, y1] in pixels of the page image, origin top left; the page's width, height and dpi say which image, and PDF points are pixels * 72 / dpi. uncertain_words lists words with confidence below 0.9 (the really wrong words of the gold set sat at about 0.83) or a differing second reading.

Price: the API counts in millicents (100,000 millicents = 1 EUR); this server speaks euros. Today nothing is charged: quote says "you pay EUR 0.00 today", shows the list price for information and names the fair-use rules (https://ocr-software.com/legal/fair-usage/) and info@ocr-software.com for more volume.

The job budget is internal: quote gives the price in the plain sentence, the server sends the quoted price as the cap, and the job stops before a page that would exceed it. If the operator set no prices, no cap is sent.

Retries follow the agent guide: 429, 500, 502, 503, 504 and network errors up to 5 times with growing waits. A Retry-After over 60 seconds goes back to the human at once. Other 4xx errors are never retried.

Related MCP server: PennyOCR

Settings

Environment variables only.

Variable

Meaning

OCR_KEY (or OCR_SOFTWARE_API_KEY)

API key (starts with ocr_). Required except for list_pipelines. It belongs only in the env field of this server in the config of your client, not in the shell of the agent. Never print it, never paste it into the chat. Get one at ocr-software.com/order.

OCR_BASE_URL

Default https://api.ocr-software.com. For a self-hosted service, for example http://127.0.0.1:8080.

OCR_OUT_DIR

Where get_result writes; if set, the agent cannot choose another folder. Default: the folder ocr-results next to the document, for a job this server did not start (a new session or a restart: the server keeps jobs, quotes and document paths in memory only) ~/Documents/ocr-results, or ~/ocr-results if there is no Documents folder (for example with an OneDrive redirect); the answer always gives the full path and, in that case, a note saying why. Never the folder of the app. A relative value is relative to that place. Without it the agent may pass out_dir (inside OCR_ALLOWED_DIR if set). An existing file is never overwritten (j1-1.json instead).

OCR_ALLOWED_DIR

Optional. quote and submit_job then read only files below this folder; symlinks and .. do not escape. Outside it the answer is always "outside the allowed folder", whether the path exists or not. Give absolute paths.

What the server enforces, and what the agent is asked to do

The server enforces:

  • No job without a quote_id; a file that changed since the quote is refused.

  • The quoted price is sent as the job budget (job_budget): the job stops before a page that would exceed it. (A quote without a price, for example while billing is off, sends no budget.)

  • Every document is checked locally before it is sent: PDF, PNG, JPEG or TIFF by its first bytes, a regular file, at most 100 MiB.

  • Results go to files, not into the conversation, so large documents do not fill the context.

  • The key is read from the environment and never appears in a tool result.

The agent is asked to (the server cannot check it):

  • ask the human before a job and show say_to_human word for word,

  • not choose a pipeline itself; without a choice quote takes the default pipeline and says so in say_to_human,

  • set human_confirmed=true only after a real answer of the human. Asking every time through the client (elicitation) is planned, not built.

Install

Python 3.10 or newer. The package ocr-software-mcp runs the server (it needs the ocr-software package, installed with it).

uvx ocr-software-mcp            # run without installing (uv)
pipx install ocr-software-mcp   # or install once; the command is then ocr-software-mcp
pip install ocr-software-mcp    # inside a venv

Claude Desktop

Add this to claude_desktop_config.json, then restart. The file is in ~/Library/Application Support/Claude/ on macOS and in %APPDATA%\Claude\ on Windows:

{"mcpServers": {"ocr-software": {"command": "uvx", "args": ["ocr-software-mcp"],
                                 "env": {"OCR_KEY": "ocr_..."}}}}

With pipx use "command": "ocr-software-mcp" and no args.

On Windows, uv must be on the PATH that Claude Desktop sees (install it with winget install astral-sh.uv, then restart Claude Desktop); otherwise use pipx and "command": "ocr-software-mcp".

Claude Code

claude mcp add ocr-software --env OCR_KEY=ocr_... -- uvx ocr-software-mcp

Cursor

Use the same JSON as for Claude Desktop in .cursor/mcp.json (project) or ~/.cursor/mcp.json (all projects).

Your own server

"env": {"OCR_KEY": "ocr_...", "OCR_BASE_URL": "http://127.0.0.1:8080"}

The names OCR_SOFTWARE_API_KEY, OCR_SOFTWARE_BASE_URL and OCR_SOFTWARE_ALLOWED_DIR of the ocr-software package and its CLI are read too; the OCR_SOFTWARE_ names win if both are set (the same order in the Python client and the command line).

Tests

A fake local service, no network and no key needed. In a fresh clone, install the package with its test extra (this brings mcp and ocr-software), then run pytest:

python -m venv .venv
.venv/bin/pip install -e ".[test]"            # Windows: .venv\Scripts\pip install -e ".[test]"
.venv/bin/python -m pytest -p no:cacheprovider .    # Windows: .venv\Scripts\python -m pytest -p no:cacheprovider .

License

MIT, see LICENSE. More about the service, its pipelines and output formats: ocr-software.com.

The OCR runs on the ocr-software.com API, operated by Helm & Nagel GmbH. Terms · Privacy · Imprint · Security

mcp-name: io.github.ocr-software/ocr-software-mcp

Available Tools

7 tools
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.

Inputs: job_id (required), human_confirmed.

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.

Inputs: job_id (required), pages, format, search, +2 more.

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.

Inputs: job_id (required), format, out_dir, wait_seconds.

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).

Inputs: detail.

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.

Inputs: file_path (required), dpi, pipeline.

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.

Inputs: quote_id (required), format, out_dir, client_ref, +2 more.

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.

Inputs: job_id (required), limit, pages, max_confidence.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 7 tools

    Disambiguation5/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Read any PDF or image into agent context as markdown (tables preserved) or plain text. Every call returns its exact cost_usd, a free estimate_cost tool quotes documents before you commit, and max_pages / max_cost_usd caps refuse before any spend — OCR agents can budget. $0.75 per 1,000 pages, first 100/month free.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables OCR of scanned PDFs and images, returning searchable PDFs, Markdown, and JSON with block coordinates, with optional proofreading to correct OCR errors. Supports uploads via web console, public URL, or one-time token, and exposes tools for job status, page text, document listing, and deletion.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients such as Claude Desktop, Claude Code and Cursor to OCR local scanned PDFs and images in 100+ languages, returning the extracted text or a searchable PDF. It also lets agents check document status, list recent documents and delete them.
      6
      49 PyPI
      1
      MIT