Claude

Using MarkItDown with Claude

Updated 2026-11-16·Upstream source ↗
Markdown view

You can give Claude MarkItDown in three ways: an MCP server, a skill, or by letting Claude Code run the markitdown command. We tested the server and the commands. We could not run Claude with a model in our lab, so we do not claim which route gives better answers, and we did not test Claude Desktop or the claude.ai web app.

Short answer

  • Claude Code: the plainest route is to let it run markitdown file -o out.md. A skill (ours is 27 lines) writes that habit down; the MCP server also connected in our test.
  • Claude Desktop: the MCP server is the documented route (setup page); we did not test the app.
  • claude.ai in the browser: we did not test any route, so we give no advice.

Tested with markitdown 0.1.9 · Python Linux lab: server and commands tested with Claude Code 2.1.325; Claude Desktop and the claude.ai web app were NOT tested (T13, T26) · 2026-11-16 · evidence: cc-probe.log, server-probe.log, skill-commands.json, mcp-responses.csv

First: do you need MarkItDown at all?

MarkItDown turns files into text a model can read cheaply. If you only upload a short PDF to a chat, the product may read it already; we did not test what it does with each format, so we cannot say when MarkItDown is better. It matters when you want the same conversion every time, run it from a script, or work on files in a folder.

The three routes at a glance

RouteMCP serverSkillRun the command
What it isA program the client calls as a toolA text file with instructionsNothing extra: the agent runs a shell command
Setup we testedOne claude mcp add line; reported Connected (Linux)Our commands run on six documents; the skill file itself loaded in no agentpip install "markitdown[all]"
Needs a terminal on your machineThe server doesYesYes
OutputWhole text returned to the modelThe agent writes a file, then reads partThe agent writes a file, then reads part
Large PDF (200 pages)848,539 characters returned in one result848,539-byte file the skill tells the agent to read in partsSame file; no instruction to read in parts
Scanned PDFEmpty result, no errorZero-byte file; the skill tells the agent to say soZero-byte file

Sizes and timings are from our own runs (MCP page, skill page). The "tool result" limit differs by client and we did not measure it.

Route 1: the MCP server

It connected in Claude Code with the installed command, with uvx, and over HTTP on localhost. A plain path is rejected; the tool takes a file:// URI. The config for your client is built by the generator.

Route 2: a skill

Microsoft has not published a MarkItDown skill; community ones differ in what they install. Read one before you use it, or use ours (skill page).

Route 3: let Claude Code run the command

Install MarkItDown (install page) and ask for the conversion. Tell it to write to a file with -o: redirecting output can lose characters on Windows.

Which should you choose?

Our lab cannot say which route yields better answers. What the tests do show: the server returns the whole document in one result, the file-based routes let an agent read in parts, and no route reads a scanned PDF (OCR).

Words people mix up

A skill is instructions; an MCP server is a program; a MarkItDown plugin adds a converter to the library; a Claude connector is a product integration. They are four different things (table).

What conversion gets wrong, whichever route you use

PDF headings are not detected, tables survive only when columns line up, Excel blanks become NaN (PDF, Excel). Claude cannot repair what the conversion dropped.

Privacy

MarkItDown and the server run on your machine, and the conversion sends nothing. The text they return goes to whatever model you are talking to.