markitdown-ocr-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@markitdown-ocr-mcp Convert the scanned PDF at ~/documents/report.pdf to Markdown."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
markitdown-ocr-mcp
MCP server exposing OCR-enabled PDF → Markdown conversion to Claude Code.
MarkItDown + the official markitdown-ocr LLM-vision plugin, backed by a local
oMLX server running GLM-OCR (or any OpenAI-compatible vision endpoint).
Setup
uv sync --group dev
uv tool install --editable .
claude mcp add markitdown-ocr-mcp --scope user -- ~/.local/bin/markitdown-ocr-mcpoMLX must be running (omlx start) with a vision model loaded.
Related MCP server: noteker
Tools
inspect_pdf(path)— per-page classification (text / scanned / mixed / blank), no OCRocr_pdf(path, pages?, out_path?, dpi?)— hybrid conversion to Markdown: text-layer pages via MarkItDown (exact text), scanned/mixed pages rendered and OCR'd directly by the vision model;pages("1-5,9") extracts only a page subset;out_pathwrites to file;dpioverrides OCR_DPIomlx_models()— oMLX health check + available models + resolved OCR model
Testing
uv run pytest # unit + integration, no oMLX needed
uv run python scripts/smoke_omlx.py # live OCR smoke test (needs oMLX)
uv run python scripts/probe_mcp.py # end-to-end probe of the installed binaryConfig (env vars)
Var | Default |
|
|
| auto-read from |
| auto-discovered from |
|
|
|
|
|
|
Available Tools
3 toolsinspect_pdfA
Classify each page of a PDF as text / scanned / mixed / blank.
Uses the PDF text layer and image geometry only — no OCR is run. Use this first to decide whether (and which pages need) OCR.
Inputs: path (required).
ocr_pdfA
Convert a PDF to Markdown, OCR-ing scanned/image pages via oMLX.
Text-layer pages go through MarkItDown directly; scanned pages are
rendered and OCR'd by the vision model. If pages is given (e.g.
"1-5,9"), only those pages are converted. If out_path is given the
Markdown is written there and a summary is returned instead.
Inputs: path (required), pages, out_path. Returns: result
omlx_modelsA
Check oMLX health: available models and the resolved OCR model.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: inspect_pdf classifies pages, ocr_pdf performs conversion, and omlx_models checks OCR service health. There is no functional overlap or ambiguity between them.
All names use lowercase snake_case and follow a pattern of verb_noun (inspect_pdf, ocr_pdf). omlx_models breaks the verb_noun pattern but is still readable and consistent in style, making it a minor deviation.
With only three tools, the server is tightly scoped to the PDF-to-Markdown OCR workflow. Each tool serves a necessary purpose without redundancy or bloat.
The server supports the full workflow: inspecting PDFs to identify OCR needs, converting with optional page selection, and verifying OCR model availability. No critical missing operations are apparent for its stated purpose.
Maintenance
Related MCP Connectors
High-fidelity PDF to structured Markdown conversion and document field extraction.
Converts PDF, scans, DOCX, XLSX and PPTX to Markdown with tables and page-aware RAG chunks.
PDF to Markdown and PDF to text from PDF URLs, page by page, with OCR for scanned pages
Convert PDF, Word, Excel and scanned documents to Markdown, tables and RAG chunks. OCR.
Related MCP Servers
- AlicenseAqualityCmaintenanceLocal OCR & image analysis via Apple Vision Framework — private, offline, no API keys. Extracts text from images and PDFs, detects faces, barcodes, QR codes, and document corners. Works with Claude Code, Claude Desktop, and Cursor.638 npm8MIT
- AlicenseAqualityCmaintenanceConverts handwritten PDF notes into clean Markdown using Claude Vision, with tools for PDF processing and status checks.2Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables document text recognition and extraction from images and PDFs using Claude Vision, including support for scanned documents and structured output, without requiring local OCR engines.MIT
- FlicenseAqualityCmaintenanceEnables local conversion of PDFs to Markdown, with automatic OCR fallback for scanned pages, image extraction, and page-by-page structure preservation.2-