MarkItDown MCP server: reads Office files, not scans
0 of 1,955
words from a 10-page scan, and no error
Typed files: every word. Scans: none.
| File | Words found | Structure |
|---|---|---|
| Word | 1,955 | Kept |
| PowerPoint | 1,955 | List lost |
| Excel | 1,955 | One table |
| HTML | 1,955 | Kept |
| EPUB | 1,955 | Kept |
| ZIP of 4 files | 1,955 | Kept |
| Typed PDF | 1,955 | None to keep |
| Scanned PDF | 0 | Empty, no error |
| JPG of a page | 0 of 202 | Image size only |
| PNG screenshot | 0 of 147 | Image size only |
| Scan after OCRmyPDF | 1,873 | Fake tables |
Kept means every heading, table row and list item came out as Markdown.
Office files keep their structure, mostly
- Word, HTML, EPUB: every heading, the table and the list.
- Excel: one Markdown table under the sheet name, all 38 rows.
- PowerPoint: headings and the table, but the bullets came out as plain lines.
- ZIP: a heading for each file inside, then that file's own structure.
- Typed PDF: every word. At 3.19 s, the slowest call: it reads the PDF twice.
A scan returns empty text, not an error
{"result": ""}
That is the result for a 10-page scanned book, with
isError false. The model gets no text and no warning.
-
A JPG and a PNG gave one line each, like
ImageSize: 1920x3079. With no exiftool on the PATH, they gave empty text. -
With the markitdown-ocr plugin and
MARKITDOWN_ENABLE_PLUGINSon, the scan still gave 0 words. The server gives the plugin no LLM client. - In your own Python code, the plugin can use a local model: MarkItDown OCR, tested.
Free fix: run OCRmyPDF first
OCRmyPDF adds a text layer on your own computer. Then markitdown-mcp reads it.
ocrmypdf --jobs 2 scan.pdf scan-ocr.pdf
- Check the tables. On page 7, lines of prose came out as 8 fake tables, with 442 pipe signs.
- The running heads and page numbers come along too.
- More on this step: make a PDF searchable.
Or add our Actor as an MCP tool
Our Apify Actor, PDF to Markdown OCR, reads scans and images. It takes file links, not local paths. Add this server URL to your MCP client, and it becomes a tool:
https://mcp.apify.com?tools=brasspage/pdf-ocr-to-markdown
1,877 of 1,955 on the scan
198 of 202 on the JPG
143 of 147 on the PNG
- $0.006 per OCR page, plus $0.00005 a run at the default 1 GB. Pages with their own text layer are free.
- Runs bill to your Apify account. Your files go to Apify's servers.
- I ran its page code, build 0.1.146, on this Mac, not on Apify. The live Actor is slower.
It reads any file or URL asked for
The one tool, convert_to_markdown, takes a file:, http:,
https: or data: address. Two facts to know:
- A file: address reads any file your user account can read. There is no root folder or allow list.
- A web address is fetched as given: no allow list, no block on local or private addresses, no timeout and no size cap. Redirects are followed.
So text in a document can lead the model to ask for a private file or an internal page. Use it only with clients and documents you trust.
Set it up
The README says pip install markitdown-mcp. I used uv,
which needs --prerelease=allow here: markitdown[all] asks
for a beta Azure package.
uv venv
uv pip install --prerelease=allow \
"markitdown-mcp==0.0.1a8" "markitdown[all]==0.1.9"
.venv/bin/markitdown-mcp
That runs it over stdio. With --http, it serves
/mcp and /sse on 127.0.0.1, port 3001, with
no login. Keep that host.
From the README, not run in a desktop app:
{
"mcpServers": {
"markitdown": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"markitdown-mcp:latest"
]
}
}
}
You build that image yourself from the repo's Dockerfile. With no
-v mount, it reads URLs only.
Start time, memory, HTTP check
- In a fresh install, the first start took 21.1 s while Python compiled it. Other starts took 2.4 to 3.1 s.
- The server used 305 MB of memory at its peak, or 357.5 MB with the OCR plugin.
- In HTTP mode on 127.0.0.1, a request with a foreign Host or Origin header was refused. On 0.0.0.0 it is off.
What I did not test
- A desktop app or a model client.
- The Docker image, and a plain pip install.
- Outside URLs, slow servers and large downloads.
- OCR through the plugin with a model. It needs a code change.
-
Photos with GPS tags. The code would pass
GPSPositionto the model. - The live Actor on Apify.
How I tested it
- One text, 10 proofread book pages with 1,955 true words, made into a Word file, slides, a sheet, a typed PDF, HTML, an EPUB and a ZIP.
- Word, slides, HTML and EPUB add a heading for each page, a 3-row table and a 5-item list.
- The scan: the same 10 pages, one 300 dpi JPEG each, no text layer. The JPG is its first page. The PNG is a screenshot of a web page.
- Score: true words found in order. Structure: Markdown headings, table rows and list items.
- My own MCP client: JSON-RPC over stdin and stdout, Python standard library only, protocol version 2025-11-25.
- The server ran in macOS sandbox-exec, with the network off and my home folder blocked. URL tests used a local web server only.
- Our Actor: its page code, build 0.1.146, run on this Mac with 1 thread. Not an Apify run.
- The OCRmyPDF copy came from an earlier test: OCRmyPDF 17.13.0 and Tesseract 5.5.4, with a sidecar text file too.
- Versions: markitdown-mcp 0.0.1a8, markitdown 0.1.9, mcp 2.3.0.
- Also Python 3.13.11, exiftool 13.44, macOS 26.6.
- uv also picked other betas, such as lxml 7.0.0b1.
- Scripts and results stay in our private repo, in research/bench/markitdown-mcp-2026-11-26/.
Sources
- markitdown-mcp README, at tag v0.1.9
- markitdown-mcp 0.0.1a8 on PyPI, MIT
- Apify MCP server: one Actor as a tool
- We make the Apify Actor, not markitdown-mcp.
Questions people ask
Can markitdown-mcp read a scanned PDF?
No. On a 10-page scan it returned empty text, with no error. Run OCRmyPDF first, or use an MCP tool that does OCR, such as our Actor.
Does markitdown-mcp do OCR on images?
No. A JPG and a PNG gave only their image size. The OCR plugin needs an LLM client, and the MCP server never passes one.
Can markitdown-mcp read local files and URLs?
Yes. It reads any file your user account can read, and it fetches any http or https URL it is given, with no allow list. Use it only with clients you trust.