# Using MarkItDown with Claude

> Three ways to give Claude MarkItDown: the MCP server, a skill, or just the command line. What we verified for each, what we could not test, and how to choose.

Source: https://markitdown.dev/claude/ · Updated 2026-11-16·Upstream source ↗

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](https://markitdown.dev/skill/)) writes that habit down; the MCP server also connected in our test.
> -   **Claude Desktop:** the MCP server is the documented route ([setup page](https://markitdown.dev/mcp/claude-desktop/)); 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](https://markitdown.dev/evidence/T13/cc-probe.log), [server-probe.log](https://markitdown.dev/evidence/T13/server-probe.log), [skill-commands.json](https://markitdown.dev/evidence/T26/skill-commands.json), [mcp-responses.csv](https://markitdown.dev/data/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

| Route | MCP server | Skill | Run the command |
| --- | --- | --- | --- |
| What it is | A program the client calls as a tool | A text file with instructions | Nothing extra: the agent runs a shell command |
| Setup we tested | One `claude mcp add` line; reported Connected (Linux) | Our commands run on six documents; the skill file itself loaded in no agent | `pip install "markitdown[all]"` |
| Needs a terminal on your machine | The server does | Yes | Yes |
| Output | Whole text returned to the model | The agent writes a file, then reads part | The agent writes a file, then reads part |
| Large PDF (200 pages) | 848,539 characters returned in one result | 848,539-byte file the skill tells the agent to read in parts | Same file; no instruction to read in parts |
| Scanned PDF | Empty result, no error | Zero-byte file; the skill tells the agent to say so | Zero-byte file |

Sizes and timings are from our own runs ([MCP page](https://markitdown.dev/mcp/), [skill page](https://markitdown.dev/skill/)). 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](https://markitdown.dev/mcp/).

## 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](https://markitdown.dev/skill/)).

## Route 3: let Claude Code run the command

Install MarkItDown ([install page](https://markitdown.dev/install/)) 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](https://markitdown.dev/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](https://markitdown.dev/skill/)).

## 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](https://markitdown.dev/formats/pdf/), [Excel](https://markitdown.dev/formats/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.

## Related

- [MCP server](https://markitdown.dev/mcp/): The MCP server in detail.
- [MCP in Claude Desktop](https://markitdown.dev/mcp/claude-desktop/): Claude Desktop setup.
- [MarkItDown agent skill](https://markitdown.dev/skill/): The agent skill.
- [CLI reference](https://markitdown.dev/cli/): The command line.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
