# The MarkItDown MCP server

> Set up markitdown-mcp 0.0.1a8 with uvx or pip, generate the config for your AI client, and see what we measured: one tool, response sizes, errors and limits.

Source: https://markitdown.dev/mcp/ · Updated 2026-11-15·Upstream source ↗

`markitdown-mcp` is a separate package from Microsoft's MarkItDown repository. It lets an MCP-capable AI client ask your own machine to convert a file or web page to Markdown. It runs locally, exposes one tool, and returns the whole document as text.

> **Short answer**
>
> The shortest launcher that worked in our tests (Claude Code, uv 0.11.32):
> 
> ```bash
> uvx --prerelease=allow markitdown-mcp==0.0.1a8
> ```
> 
> Server version tested: **0.0.1a8**, with markitdown 0.1.9. Pick your client in the generator below for the exact config. Clients we could not run are labelled "not tested by us", and we did not test Claude Desktop, VS Code, Cursor or Windsurf.

Tested with markitdown 0.1.9 · Python markitdown-mcp 0.0.1a8 with markitdown 0.1.9 and MCP SDK 2.3.0 · Python 3.13 · Ubuntu 24.04 lab · clients: Claude Code 2.1.325, Codex CLI 0.169.0, Gemini CLI 0.68.0 (T13) · 2026-11-15 · evidence: [server-probe.json](https://markitdown.dev/evidence/T13/server-probe.json), [server-probe.log](https://markitdown.dev/evidence/T13/server-probe.log), [cc-probe.log](https://markitdown.dev/evidence/T13/cc-probe.log), [uvx-probe.log](https://markitdown.dev/evidence/T13/uvx-probe.log)

## Generate the config for your client

MCP Config Generator

The interactive generator needs JavaScript. This is the default: Claude Code, the uvx launcher (tested), and the generic JSON shape (not tested by us).

```
claude mcp add markitdown -- uvx --prerelease=allow markitdown-mcp==0.0.1a8
```

```
{
  "mcpServers": {
    "markitdown": {
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "markitdown-mcp==0.0.1a8"
      ]
    }
  }
}
```

Client

Operating system

Launcher

Transport

Scope

Options

Full path to the command (optional) Example file for the test prompt (optional)

markitdown-mcp 0.0.1a8 · entries checked 2026-11-15 · runs in your browser, the paths you type are never sent anywhere

Every entry is labelled with what we actually checked. **Connected** means the client reported the server as connected after we added exactly this entry (Linux only). **Config format checked** means the client's own command wrote the entry, but we could not show a connection. **Not tested by us** means the format comes from the client's documentation.

- [Claude Desktop](https://markitdown.dev/mcp/claude-desktop/): The config file, restart and test. App not tested by us.
- [VS Code](https://markitdown.dev/mcp/vs-code/): The mcp.json shape that differs from other clients.
- [Claude Code, Codex, Gemini and others](https://markitdown.dev/mcp/clients/): One table, what we saw.
- [Troubleshooting](https://markitdown.dev/mcp/troubleshooting/): Every problem we reproduced, with fixes.

## What the server gives your AI client

### One tool

Listing the tools returned exactly one: `convert_to_markdown`, with a single required argument `uri`, described as "Convert a resource described by an http:, https:, file: or data: URI to markdown". The server identified itself with protocol version 2025-11-25 and started in about 1.2 seconds.

The argument is a URI, not a path. A plain path such as `/tmp/report.docx` was rejected with `Unsupported URI scheme`; `file:///tmp/report.docx` worked.

### What comes back

The whole Markdown, as the text of the tool result. Nothing is written to disk and there is no chunking. Tokens below are characters divided by four, a rough figure.

Every call we made through the server (STDIO, default settings): result size and time
| Call | Result | Characters | Approx. tokens | Seconds |
| --- | --- | --- | --- | --- |
| docx via file: | ok | 838 | 210 | 0.29 |
| pdf via file: | ok | 926 | 232 | 0.05 |
| xlsx via file: | ok | 526 | 132 | 0.04 |
| html via http: | ok | 358 | 90 | 0.03 |
| pdf via http: | ok | 926 | 232 | 0.06 |
| data: URI | ok | 21 | 5 | 0.02 |
| 20-page PDF | ok | 84034 | 21008 | 2.64 |
| 200-page PDF | ok | 848539 | 212135 | 26.38 |
| scanned PDF | ok | 0 | 0 | 0.03 |
| missing file | error | 97 | 24 | 0.02 |
| a folder | error | 86 | 22 | 0.01 |
| a plain path without a scheme | error | 143 | 36 | 0.01 |
| empty uri | error | 118 | 30 | 0.02 |
| https to an unreachable host | error | 71 | 18 | 0.3 |

*Every call we made through the server (STDIO, default settings): result size and time Source: Test T13 · markitdown-mcp 0.0.1a8 · Linux lab · 2026-11-15 · mcp-responses.csv · Download CSV*

A 200-page text PDF came back as 848,539 characters, roughly 212,000 tokens, in 26 seconds. Many clients cap a tool result well below that. We did not measure any client's ceiling, so check yours.

### What it cannot do

-   **Save to a file.** There is no such option; for big documents use [the command line](https://markitdown.dev/cli/) with `-o`.
-   **Read a scanned PDF.** Our scanned PDF returned zero characters, with no error ([OCR](https://markitdown.dev/ocr/)).
-   **Explain errors.** Messages were short: a missing file gave "Could not read the resource: No such file or directory", an unreachable host "Could not fetch the resource."
-   **Authenticate anyone.** There is no login.

## Three ways to launch it

| Launcher | uvx | Installed command | Docker |
| --- | --- | --- | --- |
| Install step | none | `pip install markitdown-mcp` | build or pull an image |
| Disk used | uv's cache | 74 packages, 428 MB | **not tested by us** |
| Tested in a client | Yes, Claude Code | Yes, Claude Code | No |
| Updates itself | No: pin the version | No | No |

### uvx

With uv 0.11.32, `uvx markitdown-mcp==0.0.1a8` failed to start (the client reported `CONNECTION_CLOSED`) because the server depends on a package that exists only as a pre-release. The error text names the flag:

```
hint: `azure-ai-contentunderstanding` was requested with a pre-release marker ... but pre-releases weren't enabled (try: `--prerelease=allow`)
```

Adding `--prerelease=allow` fixed it, and that is the form the generator writes. A plain `uvx markitdown-mcp` with the same uv started, but silently resolved the older 0.0.1a7 with markitdown 0.1.5. We tested one uv version, so newer ones may behave differently.

### The installed command

```bash
pip install markitdown-mcp
```

Put it in a virtual environment, or use pipx or `uv tool install`, and give the client the full path to the command, since a GUI client does not see your shell's PATH. There is no `--version` option: `markitdown-mcp --version` exits with "unrecognized arguments". Use `pip show markitdown-mcp`.

### Docker

We did not run Docker for the server. A repository named `mcp/markitdown` exists on Docker Hub ("A lightweight MCP server for calling MarkItDown", last updated 2026-06-24); that namespace is Docker's catalogue, not Microsoft's, and we did not examine the image.

## STDIO or HTTP?

STDIO is the default and what the generator uses. HTTP mode listens on localhost:

```bash
markitdown-mcp --http --host 127.0.0.1 --port 3001
```

The endpoint we observed was `/mcp` (answering a JSON-RPC request with 200; `/mcp/` redirected with 307; `/` gave 404). Claude Code connected to it with `claude mcp add --transport http`. Binding to anything other than localhost printed a warning that the server has no authentication. There is no hosted endpoint, and we do not run one: the server is for local use.

## Check that it works without an AI client

Our probe script, `lab/scripts/t13_server.py`, starts the server, lists its tools and converts the sample files. If a client says "disconnected", running the command yourself and getting a normal start rules out the server; the usual cause is the client not finding the command, or the uvx pre-release trap above.

## Which package is the real one?

| Where | Name | Publisher | Last release |
| --- | --- | --- | --- |
| PyPI | `markitdown-mcp` | Microsoft MarkItDown repository (author address at microsoft.com) | 0.0.1a8, 2026-10-21 |
| PyPI | `markitdown-mcp-server` | a personal account | 0.1.11, 2025-05-24 |
| npm | `markitdown-mcp-npx` | a personal account; describes itself as a wrapper | 1.0.3, 2025-06-11 |
| npm | `markitdown-mcp`, `@microsoft/markitdown-mcp` | none: 404 |  |

Checked on 2026-11-16. Microsoft publishes no npm package for it. Look-alike names also include different version numbers, so check the publisher before running `uvx` or `npx` on a name.

## Plugins through the server

The server reads `MARKITDOWN_ENABLE_PLUGINS`. We started it with the variable set and converted the same files with identical results; we did not run a plugin through the server. Claude Code accepted the variable via `--env` and reported the server connected. The OCR plugin needs an LLM client that the server has no way to receive ([OCR](https://markitdown.dev/ocr/)).

## Is it safe to give a client this tool?

The server runs with your user's privileges, so the model can ask it to read any file you can read or fetch any URL. It has no authentication and binds to localhost by default. Hand-off: a full security page is planned; until then, give the tool only to clients and models you trust with those files.

## Version notes

-   **0.0.1a1** (2025-03-23): first release, an SSE server with one tool.
-   **0.0.1a4** (2025-05-23): moved to the Streamable HTTP transport.
-   **0.0.1a7** (2026-09-14): moved to MCP SDK 2.x so newer clients can connect.
-   **0.0.1a8** (2026-10-21): requires markitdown 0.1.9 or newer. Current at the time of our tests.

## Related

- [OCR and scanned files](https://markitdown.dev/ocr/): Scanned PDFs return nothing, through the server too.
- [PDF to Markdown](https://markitdown.dev/formats/pdf/): How PDFs convert.
- [CLI reference](https://markitdown.dev/cli/): The command line, for documents too large for a tool result.
- [Install MarkItDown](https://markitdown.dev/install/): Installing MarkItDown itself.

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