Use
MarkItDown plugins: how they work and what we tested
A MarkItDown plugin is a separate Python package that adds converters. Plugins are installed like any package but stay switched off until you enable them. We installed the project's own sample plugin, which converts RTF, and watched it change an RTF result from 47,312 characters of control codes to 695 characters of text, and then kill the MCP server when it met an emoji.
Short answer
Install the plugin package, then enable plugins:
markitdown --use-plugins report.rtf -o report.mdIn Python, pass enable_plugins=True. Without the switch an installed plugin does nothing, and the file is converted by the built-in converters as before.
Tested with markitdown 0.1.9 · Python 3.13 · markitdown 0.1.9 · the upstream sample plugin (markitdown-sample-plugin 0.1.0a1, repository commit ed17895 of 2026-11-07) · Linux lab · markitdown-mcp 0.0.1a8 (T21) · 2026-11-16 · evidence: t21.log, mcp.log
Finding and enabling plugins
A plugin registers itself under the markitdown.plugin entry-point group. Installed plugins are listed with:
markitdown --list-pluginsInstalled MarkItDown 3rd-party Plugins:
* sample_plugin (package: markitdown_sample_plugin)
Use the -p (or --use-plugins) option to enable 3rd-party plugins.
- Command line:
-por--use-plugins. The environment variableMARKITDOWN_ENABLE_PLUGINSdid not enable plugins in the CLI in our test. - Python:
from markitdown import MarkItDown
md = MarkItDown(enable_plugins=True)
print(md.convert("report.rtf").markdown)- MCP server: reads
MARKITDOWN_ENABLE_PLUGINS(MCP page).
The sample plugin, tested
The upstream repository includes a small plugin that converts .rtf files with the striprtf package. Our RTF file is a short report saved by a word processor:
- Without the switch: the CLI and Python both printed the raw RTF, 47,312 characters beginning
{\rtf1\ansi..., with exit code 0 (echoed types). - With the switch: the same file gave 695 characters of text: the title, headings, bullets and a table, with the bullets as tab-indented lines and the table cells separated by
|without a header separator. - Order of converters: with plugins on, the plugin's converter was first in the list, ahead of the built-in ones, so a plugin can override a built-in converter for the types it accepts.
- Other file types were unaffected: a
.docxconverted exactly as before with plugins on.
date: 2026-11-16
upstream commit: ed17895 2026-11-07
### install
$ /tmp/t21v/bin/pip install -q 'markitdown==0.1.9' 2>&1 | tail -1; /tmp/t21v/bin/pip install -q /tmp/mdsrc/packages/markitdown-sample-plugin 2>&1 | tail -2; /tmp/t21v/bin/pip list 2>/dev/null | grep -i -E 'markitdown|striprtf'
[notice] To update, run: /tmp/t21v/bin/python3 -m pip install --upgrade pip
[notice] A new release of pip is available: 26.2.2 -> 26.3
[notice] To update, run: /tmp/t21v/bin/python3 -m pip install --upgrade pip
markitdown 0.1.9
markitdown-sample-plugin 0.1.0a1
striprtf 0.0.35
[exit 0]
### list-plugins-off
$ /tmp/t21v/bin/markitdown --list-plugins
Installed MarkItDown 3rd-party Plugins:
* sample_plugin (package: markitdown_sample_plugin)
Use the -p (or --use-plugins) option to enable 3rd-party plugins.
[exit 0]
### rtf-without-plugin
$ /tmp/t21v/bin/markitdown lab/corpus/synthetic/report.rtf -o /tmp/t21-a.md; head -c 160 /tmp/t21-a.md; echo; wc -c < /tmp/t21-a.md
{\rtf1\ansi\deff4\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3
47312
[exit 0]
### rtf-with-plugin-flagdate: 2026-11-16 upstream commit: ed17895 2026-11-07
install
$ /tmp/t21v/bin/pip install -q 'markitdown==0.1.9' 2>&1 | tail -1; /tmp/t21v/bin/pip install -q /tmp/mdsrc/packages/markitdown-sample-plugin 2>&1 | tail -2; /tmp/t21v/bin/pip list 2>/dev/null | grep -i -E 'markitdown|striprtf' [notice] To update, run: /tmp/t21v/bin/python3 -m pip install --upgrade pip [notice] A new release of pip is available: 26.2.2 -> 26.3 [notice] To update, run: /tmp/t21v/bin/python3 -m pip install --upgrade pip markitdown 0.1.9 markitdown-sample-plugin 0.1.0a1 striprtf 0.0.35 [exit 0]
list-plugins-off
$ /tmp/t21v/bin/markitdown --list-plugins Installed MarkItDown 3rd-party Plugins:
- sample_plugin (package: markitdown_sample_plugin)
Use the -p (or --use-plugins) option to enable 3rd-party plugins. [exit 0]
rtf-without-plugin
$ /tmp/t21v/bin/markitdown lab/corpus/synthetic/report.rtf -o /tmp/t21-a.md; head -c 160 /tmp/t21-a.md; echo; wc -c < /tmp/t21-a.md {\rtf1\ansi\deff4\adeflang1025 {\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3 47312 [exit 0]
rtf-with-plugin-flag
A plugin can take down the MCP server
With MARKITDOWN_ENABLE_PLUGINS=true and the sample plugin installed, our MCP client sent a request for the RTF file and never got an answer. The server's error log shows why:
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 691-692: surrogates not allowed
The RTF file contains an emoji. The plugin's output has the emoji as two lone UTF-16 halves (🙂), which Python cannot encode to JSON, and the server stopped. The same plugin through the library or the CLI did not crash (the CLI writes with replacement characters), and a .docx through the same server worked. We reproduced this once, with this one file and this one plugin; it is a plugin output problem, not a general one, but a server with plugins enabled has no guard against it. See the log:
$ t21_mcp.py (plugins off)
plugins off: 47312 characters in 0.1 s: '{\\rtf1\\ansi\\deff4\\adeflang1025\n{\\fonttbl{\\f0\\froman\\fprq2\\fc'
server stderr (last line): (none)
$ t21_mcp.py (MARKITDOWN_ENABLE_PLUGINS=true)
plugins on: no answer after 20 s
server stderr (last line): +------------------------------------
$ same, a .docx instead
plugins on: 838 characters in 0.3 s: 'Pilot Report: Field Station Alpha\n\n# 1. Summary\n\nThis report'
server stderr (last line): (none)
$ the plugin's output, character 685 to 700 (the test file contains an emoji): 'emoji \ud83d\ude42.\n'
lone surrogate halves in the output: ['0xd83d', '0xde42']
$ t21_mcp.py (plugins off) plugins off: 47312 characters in 0.1 s: '{\rtf1\ansi\deff4\adeflang1025\n{\fonttbl{\f0\froman\fprq2\fc' server stderr (last line): (none)
$ t21_mcp.py (MARKITDOWN_ENABLE_PLUGINS=true) plugins on: no answer after 20 s server stderr (last line): +------------------------------------
$ same, a .docx instead plugins on: 838 characters in 0.3 s: 'Pilot Report: Field Station Alpha\n\n# 1. Summary\n\nThis report' server stderr (last line): (none)
$ the plugin's output, character 685 to 700 (the test file contains an emoji): 'emoji \ud83d\ude42.\n' lone surrogate halves in the output: ['0xd83d', '0xde42']
Writing your own
A plugin needs the entry point, a register_converters(markitdown, **kwargs) function, and a DocumentConverter subclass with accepts and convert (Python API). Our test used the sample as written; we did not publish or test a plugin of our own.
Which plugins exist
We did not survey third-party plugins. The OCR plugin from the same repository is covered in its own page.