MarkItDown
Microsoft's Python library and CLI that turns PDF, Word, PowerPoint, Excel and other files into Markdown
Activity
Figures from the GitHub API, read Dec 5, 2026.
What it is for
MarkItDown is a Python library and command-line tool from Microsoft that converts files to Markdown so they can be fed to a language model or a retrieval pipeline. It handles PDF, Word, PowerPoint, Excel, HTML, CSV, JSON, XML, EPUB, ZIP archives and YouTube URLs, and keeps headings, lists, tables and links where the source has them. The README says the output is meant for text-analysis tools rather than for faithful, human-facing conversions. A separate package, markitdown-mcp, exposes it as an MCP server with one tool.
It suits developers building document ingestion for RAG or agents who want one dependency instead of a parser per format. Everything runs locally on the CPU by default. Image descriptions, OCR of embedded images (the markitdown-ocr plugin) and speech transcription call web services, and the Azure Document Intelligence and Content Understanding options are billable Azure calls.
Limitations: text-only extraction from PDFs, so headings in a PDF come out as plain text and scanned PDFs need OCR or Azure. The library and the MCP server read whatever local files and URLs the process can reach, so the README tells you to sanitise inputs and call the narrowest convert function. The package is labelled beta and markitdown-mcp is still an alpha.
Quickstart
Smoke-tested by AppForum on Dec 2, 2026: MarkItDown 0.1.9 and markitdown-mcp 0.0.1a8 in a clean python:3.12-slim container (Python 3.12.16, arm64) on Docker 29.5.2, macOS Apple silicon. We confirmed the README's pip install works, that the CLI and Python API convert a two-page PDF and a Word file we generated, and that the MCP server starts over stdio, lists its tool and converts a file; we did not test PowerPoint, Excel, images, audio, HTML, EPUB, ZIP or YouTube input, scanned PDFs, plugins (including markitdown-ocr), LLM image descriptions, the Azure options, the Docker build, the MCP server's HTTP/SSE mode or any MCP client such as Claude Desktop.
python -m venv .venv && source .venv/bin/activate
pip install 'markitdown[all]'
markitdown sample.pdf -o pdf.md
markitdown sample.docx > docx.md
cat sample.docx | markitdown
python -c "from markitdown import MarkItDown; print(MarkItDown().convert_local('sample.pdf').markdown)"
pip install markitdown-mcp
markitdown-mcp # stdio; we drove it with our MCP probe and the mcp Python client
What we saw:
pip install 'markitdown[all]'took 20 seconds and the virtual environment came to 379 MB. Nothing needed a GPU, an account or a key.- Each CLI conversion took about a second, most of it start-up; through the Python API both files converted in 0.46 seconds with a peak of 178 MB of memory.
- PDF (made with reportlab): all text from both pages came out in reading order, but the 18-point title came out as plain text, not a heading, and there were no page markers. Lines we had laid out as a small table stayed as separate lines; we drew them as text, so this does not show how it handles real PDF tables.
- Word (made with python-docx): headings kept their levels (
#,##), bullets and bold were kept, and the table became a Markdown table, but with an empty header row and our header row pushed down into the body. - Piping a file into
markitdownon stdin worked. - markitdown-mcp installed in 5 seconds. Our probe found one tool,
convert_to_markdown(uri), about 106 tokens of definitions, with no read-only or destructive annotations. Called with afile:URI it returned the Word file's Markdown; called withfile:///etc/hostnameit returned that file's contents too, which is the README's warning in practice: the server reads anything its user can read.
Before you adopt it
6 of 6 key facts checked- Install commandOne copy-and-paste to get it
- pip install 'markitdown[all]' (a virtual environment is recommended), or only the formats you need, e.g. pip install 'markitdown[pdf, docx, pptx]'. Then markitdown file.pdf -o document.md, or from Python: MarkItDown().convert(...). From source: git clone the repo and pip install -e 'packages/markitdown[all]'. A Dockerfile is provided (docker build -t markitdown:latest .). The MCP server is a separate package: pip install markitdown-mcp, then markitdown-mcp (stdio) or markitdown-mcp --http --host 127.0.0.1 --port 3001.Checked Dec 2, 2026 · source
- Runtime requirementsLanguage version, operating system, key dependencies
- Python 3.10 to 3.14 (pyproject.toml: >=3.10,<3.15). Core dependencies are pure Python (beautifulsoup4, markdownify, requests, Google's magika for file-type detection, charset-normalizer, defusedxml); each format adds its own through extras: pdfminer.six and pdfplumber for PDF, mammoth for Word, python-pptx, pandas with openpyxl or xlrd for Excel. We ran 0.1.9 on Python 3.12.16 in Debian (python:3.12-slim, arm64). The markitdown-mcp server pulls in the mcp Python SDK (2.3.0 in our install).Checked Dec 2, 2026 · source
- Hardware needsGPU memory, RAM, disk; whether CPU-only is workable
- CPU only; no GPU or model download needed for the built-in converters. In our Docker test, markitdown[all] took 379 MB of disk in a virtual environment, and converting a two-page PDF and a short Word file took under half a second with a peak of 178 MB of memory. OCR, image captions and speech transcription are done by remote services, not locally.Checked Dec 2, 2026 · source
- Latest releaseA push is not a release
- v0.1.9, published 21 October 2026 (on PyPI the same day). Before that: v0.1.8 on 21 September, v0.1.7 on 29 July and v0.1.6 on 26 May 2026. The package is classified as beta, and markitdown-mcp is at 0.0.1a8, an alpha, also from 21 October 2026.Checked Dec 2, 2026 · source
- MaintainersHow many people the project depends on
- 30+ contributors; the top three account for 69% of commits among the 30 most active (all time)Checked Dec 2, 2026 · source
- Licence caveatsModel weights and commercial terms often differ from the code licence
- MIT, with no model weights involved. The costs and data flows come from optional features: Azure Document Intelligence and Azure Content Understanding are billable Azure API calls, image descriptions and the markitdown-ocr plugin send content to the OpenAI-compatible model you configure, and the README says image captioning and speech transcription rely on web-hosted services. Install only the extras you want if documents must stay local. Use of Microsoft trademarks in modified versions is restricted by Microsoft's brand guidelines.Checked Dec 2, 2026 · source
- DocumentationWhere the real docs live
- The repository README is the documentation; packages/markitdown-mcp, packages/markitdown-ocr and packages/markitdown-sample-plugin have their own READMEs. There is no separate docs site.Checked Dec 2, 2026 · source
- Supported models and providersWhat it works with
- Built-in converters run locally. Optional: any OpenAI-compatible client (llm_client, llm_model) for image descriptions in PowerPoint and image files and for the markitdown-ocr plugin; Azure Document Intelligence; Azure Content Understanding (documents, images, audio and video).Checked Dec 2, 2026 · source
- Security recordAdvisories and security policy
- No published GitHub security advisories as of 2 December 2026. The README warns that MarkItDown does I/O with the privileges of the calling process: convert() will fetch remote URIs and read local paths, so untrusted input must be restricted (paths, URI schemes, private and metadata addresses), and it recommends convert_local() or convert_stream() instead. markitdown-mcp has no authentication and binds to localhost in HTTP/SSE mode; its tool can read any file the server's user can read, which we confirmed in our test.Checked Dec 2, 2026 · source
- BackingCompany or solo maintainer
- Microsoft. The repository sits in Microsoft's GitHub organisation, the MCP package carries a 'Built by AutoGen Team' badge (Microsoft's AutoGen project), and contributions require Microsoft's CLA.Checked Dec 2, 2026 · source
