MarkItDown MCP
MCP serversMicrosoft's MCP server that converts http, file and data URIs to Markdown through MarkItDown.
Install
$ pip install markitdown-mcp
Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and any other MCP client.
Update
$ pip install --upgrade markitdown-mcp
Standard pip upgrade for the PyPI package.
When to use it
- You want the agent to read a PDF, Office document or web page as Markdown instead of raw bytes.
- You need document conversion as an MCP tool rather than a Python library call.
- You want to run the converter in Docker with only a chosen folder mounted.
Commands & flags
- markitdown-mcp
- Run the server over STDIO (default).
- markitdown-mcp --http --host 127.0.0.1 --port 3001
- Run it over Streamable HTTP and SSE, bound to localhost.
- convert_to_markdown(uri)
- The one tool it exposes; uri can be http:, https:, file: or data:.
- docker build -t markitdown-mcp:latest .
- Build the Docker image from the package folder.
How to use it
Install the package and register it as a STDIO MCP server in your client. The README gives a Claude Desktop config only; for Claude Code, use the usual claude mcp add form with markitdown-mcp as the command.
pip install markitdown-mcp
markitdown-mcp
For local files in Docker, mount the folder, for example -v /home/user/data:/workdir, and refer to files under /workdir.
The package is meant for local use with trusted agents. Keep the HTTP mode bound to localhost, and do not expose it to a network. If you only need a different Markdown converter, this catalog also lists zcaceres/markdownify-mcp.
Skip it when a direct Python call to MarkItDown in your own script is simpler, or when your client cannot run a local STDIO server.
Why it earns its place
It wraps Microsoft's MarkItDown converter, so one tool call turns many file types into clean Markdown that costs fewer tokens than the source. It lives in the official microsoft/markitdown repository and is published on PyPI, so it is easy to install and update.
Try it
> Convert file:///home/user/data/report.pdf to Markdown and summarize the key findings.