MCP serverInstalls cleanly

Read Word, PDF and Excel files

MarkItDown MCP

Microsoft's MCP server converts PDFs, Word, Excel, PowerPoint and other files into Markdown, so your agent can read and summarise them.

Works with
Claude Code, Codex CLI, Gemini CLI
Good for
Daily work and research, Everyone

What it does

MarkItDown is a Microsoft tool that turns files into Markdown. Markdown is plain text that keeps headings, lists and tables. AI assistants read it well. This entry is the MCP server version. An MCP server is a small helper program that your assistant can call when it needs it.

The server gives the assistant one tool. The tool is named convert_to_markdown. It takes one address, called a URI. The URI can start with http:, https:, file: or data:. The tool returns the text of the page or file.

The main MarkItDown project lists many input types. They include PDF, Word, PowerPoint, Excel, HTML, CSV, JSON, XML, ZIP files, EPub books, images and audio. For images and audio it reads metadata, and the project says it can also read text in images and transcribe speech.

The server runs on your own computer. Microsoft says it is for local use with agents that you trust. It has no login or password. It runs with your user rights. This means the tool can read any file that you can read. It can also fetch data from the network.

Who it is for

You have reports, contracts, slide decks or spreadsheets, and you want the assistant to read them. You are fine with a short setup in a terminal. You need Python for the pip install. You can use Docker instead.

Example prompts

  • "Convert file:///Users/me/Downloads/report.pdf to Markdown and give me five key points."
  • "Read https://example.com/pricing with MarkItDown and list every price."
  • "Turn the slides in file:///Users/me/slides.pptx into Markdown and write speaker notes."
  • "Convert my budget spreadsheet to Markdown and explain the biggest cost."

The tool works with full addresses (URIs). If the assistant cannot open a normal path such as ~/Documents/report.pdf, give it the full address instead, for example file:///Users/you/Documents/report.pdf.

How to install

pip install markitdown-mcp

How to use it

After install, give the agent a file address, for example ~/Documents/report.pdf, and ask for a summary. The tool converts the file to Markdown text first.

Check it works

First install the package. Then add it to Claude Code with Claude Code's own command:

claude mcp add markitdown -- markitdown-mcp
claude mcp list

The list must show markitdown as connected. The Microsoft README does not show this Claude Code command. It shows a Claude Desktop setup. The README does give a test with the MCP Inspector:

npx @modelcontextprotocol/inspector

In the Inspector, choose STDIO and enter markitdown-mcp as the command. Click Connect. Open the Tools tab and click List Tools. The tool convert_to_markdown must appear.

Common problems

  • The assistant cannot open a local file when the server runs in Docker: The container cannot see your folders. Mount a folder, for example docker run -it --rm -v /home/user/data:/workdir markitdown-mcp:latest. Then use paths under /workdir. The README says this.
  • The command markitdown-mcp is not found after pip install: The folder with Python scripts is not on your PATH. Add it to the PATH or install the package in a virtual environment.
  • A file address does not work: Use a full URI such as file:///Users/me/report.pdf. The tool accepts only http:, https:, file: and data: addresses.
  • You need the server on the network: Do not do this unless you understand the risk. The HTTP mode binds to localhost by default. The README says not to bind it to other interfaces.

What to watch out for

  • It reads any file address the agent gives it, including files outside the folder you meant. Run it in a limited setup if the agent is not fully trusted.
  • The optional image description feature sends images to a language model service.
  • Fetching web or file content can include hidden instructions for the agent.

Licence and author

Licence
MIT
Author
Microsoft
Source code
github.com/microsoft/markitdown

How we tested it

We installed it on an empty test computer on 12 Oct 2026. Installed and started in a clean test system. Not yet used in a real AI session.

Test level

No file was converted. The pip line was not run; we used uvx, which starts the same package. The first start downloaded many Python packages.

Technical details of the test
Date
12 Oct 2026
Method
In a clean container with no account we started uvx markitdown-mcp, sent the MCP initialize and tools/list requests, and it answered with 1 tool (convert_to_markdown). We also registered it with our own claude mcp add command (not from the README), and claude mcp list reported it as connected. We did not convert a file.

Checked again on 12 Oct 2026

Alternatives

  • Playwright MCP: Drives a real browser to click and fill in forms. MarkItDown only reads and converts content.
  • Exa MCP: Searches the web and fetches pages. MarkItDown converts files that you already have.
  • Chrome DevTools MCP: Controls a browser for testing and debugging. It does not convert documents.

FAQ

Does it upload my files? The server runs on your computer and reads what you point it at. A web address is fetched from the internet. Your assistant then sends the converted text to its own model service.

Do I need to know Markdown? No. The assistant reads it. You only ask your question.

Is it free? Yes. It is open source from Microsoft.

Can it read private files by mistake? It can read any file that your user account can read. Ask only about files you chose. For more safety, run it in a container or a virtual machine, as the README advises.

Sources