PDF MCP servers: which ones can read a scanned PDF
By default, on a scan:
3 of 6
returned blank text and no error
Our OCR Actor over MCP: $0.006 a scanned page
Runs on Apify's servers: files leave your computer.
Only 4 servers can OCR a scan
| Server | Default | OCR on |
|---|---|---|
docling-mcp 3.5.1 |
Error | 397 |
pdf-mcp 3.8.0 |
0 | 392 |
mcp-pdf 2026.9.22 |
0 | 391 |
@sylphx/pdf-reader-mcp 8.5.16 |
390 | 390 |
markitdown-mcp 0.0.1a8 |
0 | No OCR |
@modelcontextprotocol/server-pdf 2.0.4, the
official one
|
Error | No OCR |
-
OCR on: docling's local mode,
ocr: truein pdf-mcp, mcp-pdf's separateocr_pdftool, andocr: "tesseract"in pdf-reader-mcp. - pdf-reader-mcp read the scan unasked, but only because Tesseract was installed. Without it: 0 words and a note.
- On the typed PDF, the other 4 read all 399 words by default. The 2 errors stayed errors.
The official server-pdf needs a viewer
It is a PDF viewer for apps that can show one. With a plain MCP client, every text read failed after 8 seconds, typed PDF too:
ERROR: Viewer never connected for viewUUID 156ca8c4-fd7d-4c92-b1b3-011b1da4c8e9 (no poll within 8s).
In a viewer, the text comes from PDF.js, which has no OCR. It read 0 words of the scan.
Which PDF MCP server to pick
- Scans, free and local: docling-mcp in local mode read 397 of 399. Its first run downloads over 500 MB of models, on top of the install.
-
Lighter: pdf-mcp with
ocr: trueread 392. Install Tesseract first. - Typed PDFs only: pdf-mcp, mcp-pdf, markitdown-mcp or pdf-reader-mcp. For a scan, run OCRmyPDF first: then they read 391 or 392.
A config for docling-mcp, local mode
Add this to your MCP client's mcpServers config, then
quit and restart the client:
{
"mcpServers": {
"docling": {
"command": "uvx",
"args": [
"--from", "docling-mcp[local]",
"docling-mcp-server",
"--transport", "stdio"
],
"env": {
"DOCLING_MCP_CONVERSION_MODE":
"local"
}
}
}
}
Put together from the docling-mcp README. I ran the same server and setting from my own client, not from this file.
The fine print on each server
- docling-mcp defaults to a remote Docling Serve. With no address set, every call failed, and the client saw no reason.
- In local mode it read the scan offline after one online run. It used about 3.5 GB of memory.
- mcp-pdf is MIT, but it needs PyMuPDF, which is AGPL-3.0 or a paid Artifex license. Its one open issue is a path traversal report.
-
markitdown-mcp has no local OCR. A scan came back
as
{"result": ""}.
Our Actor, as one MCP tool
Add this server URL to your client. The Actor becomes one tool, and Apify adds 4 helper tools for runs and results. Text layers are read free, and scanned pages get OCR.
https://mcp.apify.com?tools=brasspage/pdf-ocr-to-markdown
- Connecting is free. Runs bill to your Apify account.
- I ran its code on this Mac, not through Apify: 392 of 399 on the scan, all 399 on the typed PDF.
- From your own code instead: the PDF OCR API.
- Feeding a RAG pipeline? PDF to Markdown for RAG.
What I did not test
- Only one clean scan of book prose. Tables, poor scans or other languages can rank them differently.
- server-pdf in a real viewer app: I ran its PDF.js text path.
- Hosted options: Docling Serve, markitdown's Azure OCR, and the live Actor on Apify.
How I tested it
- Three PDFs of the same 2 proofread book pages, 399 true words: the scan, a typed PDF of the true text, and the scan after OCRmyPDF.
- Score: true words found in order, page by page. A JSON reply is scored on its text field.
- Each server in its own folder, installed with no install scripts, run alone under macOS sandbox-exec with the network off and my home folder blocked. Only docling's first run had the network.
- My own MCP client: JSON-RPC over stdin and stdout, Python standard library only. All 6 answered protocol version 2025-11-25.
- For scale, pdftotext read 399 words of the typed PDF, 0 of the scan, and 381 after OCRmyPDF.
- Versions: Tesseract 5.5.4, OCRmyPDF 17.13.0, docling-slim 2.152.0, Node 22.22.2, Python 3.13.11, macOS 26.6.
- Scripts and results stay in our private repo, in research/bench/pdf-mcp-server-2026-11-24/.
Sources
- server-pdf: the PDF viewer in the ext-apps repo
- pdf-reader-mcp: now an alias of anymd
- markitdown-mcp
- docling-mcp: local mode, the stdio command, OCR on by default
- mcp-pdf
- pdf-mcp: OCR via Tesseract, off by default
- Apify MCP server: one Actor as one tool, plus 4 helper tools
- We make the Apify Actor, and none of the servers here.
Questions people ask
Can an MCP server read a scanned PDF?
Only with OCR. On one scan, docling-mcp in local mode read 397 of 399 words, pdf-mcp with ocr: true 392, mcp-pdf's ocr_pdf tool 391, and pdf-reader-mcp 390 with Tesseract installed. markitdown-mcp and server-pdf have no OCR.
Why does my PDF MCP server return empty text?
The PDF is likely a scan: page images with no text layer. markitdown-mcp, mcp-pdf's extract_text and pdf-mcp's default read all gave blank text with no error. Turn OCR on, or run OCRmyPDF first.
Does the official PDF MCP server do OCR?
No. @modelcontextprotocol/server-pdf is a viewer. Its text comes from PDF.js in the viewer, which read 0 words of the scan. With no viewer, its text read failed after 8 seconds, even on a typed PDF.
Is there a free, local PDF MCP server?
All 6 here are open source and need no API key or account. docling-mcp downloads its models once, then reads offline. pdf-mcp, mcp-pdf and pdf-reader-mcp use the Tesseract you install.
Two ways to skip the work
Run it yourself. Our Apify Actor turns scanned PDFs and images into Markdown, in the cloud.
Or send us the scan. Tack, our AI, does the job for $29, up to 50 pages. First page free.