Ocrmypdf Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Ocrmypdf Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A minimal MCP server that exposes ocrmypdf as a single tool, ocr_pdf, so Claude can OCR scanned PDFs and then hand them to markitdown (or any text tool) for downstream work.
Why this exists: the obvious "just call ocrmypdf" approach falls over on Windows with the Microsoft Store (MSIX) build of Claude Desktop, because MSIX launches MCP servers with a stripped-down PATH that doesn't include Tesseract or Ghostscript. This server auto-detects the standard Windows install locations and prepends them to PATH at startup, so OCR Just Works without futzing with system environment variables.
Works on Linux and macOS too — the PATH augmentation is a no-op outside Windows.
Two system installers, then pip install.
UB-Mannheim build (the standard Windows distribution): <https://github.com/UB-Mannheim/tesseract/wiki>
Accept the default install location (C:\Program Files\Tesseract-OCR). Add language packs during install if you need anything beyond English.
AGPL release for Windows (free): <https://www.ghostscript.com/releases/gsdnld.html>
Accept the default install location (C:\Program Files\gs\gs<version>\).
tesseract --version
gswin64c --versionIf either says "not recognized," reopen PowerShell so it picks up the updated PATH, then retry.
git clone https://github.com/jcm4TX/ocrmypdf-mcp
cd ocrmypdf-mcp
pip install --user .This installs ocrmypdf, the mcp SDK, and the ocrmypdf-mcp executable. On Windows it lands at:
C:\Users\<you>\AppData\Roaming\Python\Python313\Scripts\ocrmypdf-mcp.exeEdit claude_desktop_config.json. On the MSIX (Microsoft Store) build of Claude Desktop, the path is:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.jsonOn the regular non-MSIX installer it's:
%APPDATA%\Claude\claude_desktop_config.jsonAdd an ocrmypdf-mcp entry under mcpServers:
{
"mcpServers": {
"ocrmypdf-mcp": {
"command": "C:\\Users\\<you>\\AppData\\Roaming\\Python\\Python313\\Scripts\\ocrmypdf-mcp.exe",
"args": []
}
}
}Then fully quit Claude Desktop — right-click the tray icon and pick Quit, not just close the window — and relaunch.
In a new chat, ask "what MCP tools do you have for OCR?" — Claude should report ocr_pdf. If not, check the server log:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\logs\mcp-server-ocrmypdf-mcp.logocr_pdf(input_path, output_path?, language?, force_ocr?, deskew?)| Arg | Type | Default | Meaning |
|---|---|---|---|
input_path | str | required | Absolute path to input PDF |
output_path | str | <stem>-ocr.pdf next to input | Where to write the OCR'd PDF |
language | str | "eng" | Tesseract language code; join multiple with +, e.g. "eng+spa" |
force_ocr | bool | false | Re-OCR pages that already have a text layer |
deskew | bool | true | Straighten skewed pages before OCR |
Default behavior: pages without an existing text layer get OCR'd, pages that already have text pass through unchanged. Safe to run on mixed PDFs.
ocr_pdf(input_path="...").markitdown.convert_to_markdown on the resulting -ocr.pdf.ocrmypdf process completes successfully — the output PDF will still be on disk. If you hit this regularly, split the input into smaller page ranges first.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.