MarkItDown + MarkItDown-MCP
Document converter + MCP · Free
A Python library and CLI for converting PDF, Word, Excel, PowerPoint, HTML, and other formats to Markdown. The official MCP exposes convert_to_markdown(uri), allowing an agent to obtain document text as context.
What you can use for free
Basic local conversion of documents to Markdown without a mandatory LLM API.
Paid features and costs
Optional Azure APIs and LLM image descriptions require separate access.
Access and limitations
The basic converters run locally without a mandatory LLM API. Azure Document Intelligence and Azure Content Understanding are optional paid APIs; LLM image descriptions also require your own model client. The goal is text and structure for LLMs, rather than exact visual reproduction of a document. The built-in converters do not support video; complex OCR/layout processing may require paid cloud integrations. The unauthenticated MCP is intended for trusted local agents and can read files with its process permissions.
Use cases
- Prepare documents for a knowledge base or RAG
- Extract structure and text from Office files before analysis
- Reuse the converter in a Python backend or local MCP
Example workflow
A possible workflow; this is not a report of hands-on testing.
Example workflow with MarkItDown + MarkItDown-MCP: Prepare documents for a knowledge base or RAG.
Before you start
- One PDF, Word, Excel, or other supported document.
- The sections and information that should become text context for the agent.
Steps
- Convert a small document to Markdown through the chosen library interface or MCP.
- Compare headings, tables, and important numbers with the original.
- Give the agent the checked text and a question about the document, retaining a way to refer to the source.
Check your result
- Meaning and important values are retained; text conversion is not treated as an exact reproduction of the layout.
- Local MCP has access only to the required trusted materials; its process permissions are taken into account.
- Check that meaning and important values have been preserved; text conversion must not be treated as an exact reproduction of the layout.
- Check that the local MCP can access only the required trusted materials, accounting for its process permissions.
Choosing MarkItDown + MarkItDown-MCP
Prepare documents for a knowledge base or RAG
Choose this when
- Prepare documents for a knowledge base or RAG
- Extract structure and text from Office files before analysis
- Reuse the converter in a Python backend or local MCP
Requirements
- Prepare dependencies for the required formats; when using Docker, mount the directory and use the container path.
Things to consider
- Costs and limits of free use: Optional Azure APIs and LLM image descriptions require separate access.
- Terms of use: MIT.
- Conversion targets text and structure for LLMs, rather than exact visual reproduction.
- The MCP has no built-in authentication, HTTP/SSE bind to localhost by default, and conversion runs with the server process permissions.
Frequently asked questions
What can you use for free in MarkItDown + MarkItDown-MCP?
Basic local conversion of documents to Markdown without a mandatory LLM API.
What additional costs might arise with MarkItDown + MarkItDown-MCP?
Optional Azure APIs and LLM image descriptions require separate access.
What terms of use matter for MarkItDown + MarkItDown-MCP?
MIT.
Which environment can you use MarkItDown + MarkItDown-MCP in?
Tech stack: Python, HTML / CSS.
How do you get started with MarkItDown + MarkItDown-MCP?
Convert a small document to Markdown through the chosen library interface or MCP. Compare headings, tables, and important numbers with the original. Give the agent the checked text and a question about the document, retaining a way to refer to the source.
What should you consider when choosing MarkItDown + MarkItDown-MCP?
markitdown-mcp supports STDIO and Streamable HTTP.
Why is a host file not found in the Docker MCP?
The container sees its own paths. For a local file, mount the host directory and pass the URI of the path inside the container, for example under /workdir. MCP convert_to_markdown accepts http, https, file, and data URIs.
Tech stack
- Python
- HTML / CSS
License
MIT.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsUsage details
markitdown-mcp supports STDIO and Streamable HTTP. Conversion targets text and structure for LLMs, rather than exact visual reproduction. The unauthenticated MCP is intended for trusted local agents and reads files with its process permissions.
Technologies and topics
- Markdown
- Word
- Excel
- Python
- MCP
- CLI