MCP

The MarkItDown MCP server

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

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):

Command
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, server-probe.log, cc-probe.log, 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"
      ]
    }
  }
}

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.

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
CallResultCharactersApprox. tokensSeconds
docx via file:ok8382100.29
pdf via file:ok9262320.05
xlsx via file:ok5261320.04
html via http:ok358900.03
pdf via http:ok9262320.06
data: URIok2150.02
20-page PDFok84034210082.64
200-page PDFok84853921213526.38
scanned PDFok000.03
missing fileerror97240.02
a foldererror86220.01
a plain path without a schemeerror143360.01
empty urierror118300.02
https to an unreachable hosterror71180.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 with -o.
  • Read a scanned PDF. Our scanned PDF returned zero characters, with no error (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

LauncheruvxInstalled commandDocker
Install stepnonepip install markitdown-mcpbuild or pull an image
Disk useduv's cache74 packages, 428 MBnot tested by us
Tested in a clientYes, Claude CodeYes, Claude CodeNo
Updates itselfNo: pin the versionNoNo

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

Command
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:

Command
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?

WhereNamePublisherLast release
PyPImarkitdown-mcpMicrosoft MarkItDown repository (author address at microsoft.com)0.0.1a8, 2026-10-21
PyPImarkitdown-mcp-servera personal account0.1.11, 2025-05-24
npmmarkitdown-mcp-npxa personal account; describes itself as a wrapper1.0.3, 2025-06-11
npmmarkitdown-mcp, @microsoft/markitdown-mcpnone: 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).

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.