MarkItDown, Reviewed: Microsoft’s File-to-Markdown Converter as an MCP Tool

MarkItDown is Microsoft’s answer to a question every AI workflow hits eventually: how do you get a PDF, a Word file, or an Excel sheet into a language model without wrecking either the structure or your token budget? It converts files to markdown – deterministic, no AI in the loop, MIT-licensed, and sitting near 200k GitHub stars as of November 2026. Here is what it is like to live with.

What it converts, and how well

The core is a Python library plus a CLI. Typical usage is one line: markitdown spec.pdf > spec.md, or in Python, MarkItDown().convert("file.xlsx").text_content. In practice:

  • Word and HTML – the best cases. Headings, lists, links and tables come through recognisably.
  • Excel and CSV – sheets become markdown tables. Good for specs and price lists that would otherwise be token soup.
  • PDFs – fine for text-native PDFs. Structure like multi-column layouts can get flattened, so read the output once before trusting it.
  • Scanned PDFs and images – not its job. There is no built-in OCR; scanned documents need an external OCR step first.
  • PowerPoint – slide text comes through; visual layout obviously does not.

Why it earns a slot next to a vision model

The value is not that it is clever – it is that it is deterministic and cheap. A vision model reading a 40-page PDF costs tokens on every read and can hallucinate a figure; MarkItDown produces the same markdown every time for free, and the model then works from a plain-text version where nothing is hidden in layout. For RAG pipelines and “compare these three supplier specs” jobs, it is the boring correct tool.

Where it disappoints

  • Layout-heavy documents. Certificates, forms with boxes, anything where meaning lives in positioning – output needs human review.
  • Complex tables. Merged cells and nested headers get linearised; numbers can shift columns. Spot-check anything you will quote.
  • Scans. Garbage in, nothing out – plan an OCR step.
  • The MCP server is young. The markitdown-mcp package (0.0.1-alpha at review time) works, but treat it as early: one tool, minimal options, occasional rough edges.

Wiring it up as an MCP server

The MCP server is a separate pip package. Install both, then register it:

{ "mcpServers": { "markitdown": { "command": "markitdown-mcp", "args": [] } } }

It exposes a single tool, convert_to_markdown, which accepts a URI – local files via file://, remote via http://. After a restart, “convert this PDF and summarise section three” is one request with no copy-pasting. Check markitdown-mcp --help for the HTTP server mode if your client prefers a URL over stdio.

MarkItDown vs asking AI to read the file directly

For a two-page PDF, just give the model the file – wiring up a converter is overhead. The converter wins when files are big (token cost), numerous (batch consistency), or reused (convert once, cite many times). It loses when the file’s meaning lives in visuals – charts, stamps, signatures – where a vision model sees what MarkItDown flattens away. My split: vision for meaning, MarkItDown for bulk.

For the web-side counterpart of this review – scraping and crawling as MCP tools – see the Firecrawl review.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top