Purpose: MarkItDown-MCP is the MCP server component of the MarkItDown project, used to convert files and office documents to Markdown so that local trusted agents can call it via the MCP protocol.
Key capabilities: It provides three lightweight MCP server transports: STDIO, Streamable HTTP, and SSE; it exposes only one tool, convert_to_markdown(uri), where uri can be any http:, https:, file:, or data: URI.
Usage: Install the package via pip; by default the MCP server runs over STDIO, and commands can also be used to run it over Streamable HTTP and SSE. The project provides a Dockerfile so an image can be built and run in Docker; when handling remote URIs, just run it directly, while accessing local files requires mounting a local directory into the container, for example after mounting /home/user/data, its files can be accessed inside the container via /workdir. When using it in Claude Desktop, the Docker image is recommended, and claude_desktop_config.json should be edited as described to add the corresponding JSON entry, adjusting it accordingly if a directory needs to be mounted. For debugging, the MCP Inspector tool can be used, connecting by specifying the host and port; for the STDIO transport, select STDIO and enter markitdown-mcp as the command; for the Streamable HTTP transport, enter http://127.0.0.1:3001/mcp;SSE transport, enter http://127.0.0.1:3001/sse;随后在 In the Tools tab, click List Tools, select convert_to_markdown, and run the tool against any valid URI.
Use cases: Intended for local use and local trusted agents, it is suitable for calling document-to-Markdown capabilities in MCP clients such as Claude Desktop, and also suitable for deployment in sandboxed environments such as containers or virtual machines.
Limitations: This package is intended for local use and local trusted agents; when run over Streamable HTTP or SSE, it binds to localhost by default and is not exposed to other machines on the network or to the internet, and this configuration can serve as a direct replacement for the STDIO transport. The server does not support authentication and runs with the permissions of the user running it; even when bound to localhost, any process or user on the same local machine can still access the server, and the convert_to_markdown tool can read any file the server user has permission to access or any data from the network. For higher security, it should be run in a sandboxed environment such as a virtual machine or container, with user permissions properly configured to restrict access to sensitive files and network segments. Do not bind the server to other interfaces (non-localhost) unless you understand the security implications.