The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Markitai listing page.
Opinionated Markdown converter with native LLM enhancement support.
.doc/.ppt via the legacy extra--resume for interrupted jobs--ocr --llm to have the vision model read the page images directly (VLM-OCR)--record-historyDocs: https://markitai.dev
Guided installer (recommended). It installs Python and uv if they are missing, lets you pick extras and the Playwright browser, and offers a mirror when the default index is unreachable. Bilingual (EN/中文).
Already have Python 3.11–3.13? Install the package on its own and run the two setup steps yourself:
Browser rendering needs the browser extra, then Chromium:
Both routes install markitai and the shorter mkai alias.
| Extra | Enables |
|---|---|
browser | Playwright rendering for JS-heavy pages |
claude-agent | Claude Agent SDK as an LLM provider |
copilot | GitHub Copilot SDK as an LLM provider |
extra-fetch | curl-cffi HTTP client (better anti-bot compatibility) |
heif | HEIC/HEIF/AVIF image input |
legacy | Legacy Office conversion (.doc/.ppt) via the anydoc Rust backend |
mcp | Bundled markitai-mcp server for AI agents (Model Context Protocol) |
ocr | Local OCR for scanned PDFs and images (--ocr) |
serve | Local web workspace and REST API |
svg | SVG rasterization via cairosvg |
all | Everything above |
ocr is opt-in because it pulls in ~160MB of models. The guided installer
asks whether you want it, and markitai doctor prints the install command
when it is missing:
Launch the local web workspace with:
For LLM enhancement, export any supported provider key. markitai picks the model up from the environment; you don't need a config file:
markitai-mcp exposes conversion to AI agents over the Model Context Protocol
with four tools: convert_document, convert_url, batch_convert,
job_status. There is nothing to install, since uvx runs it on demand, and
large outputs land on disk instead of in the model context. For Claude Code:
The MCP guide covers other clients, LLM
enhancement and batch jobs. markitai mcp starts the same server through the
CLI itself, which is how the
MCP Registry lists it.
rag, obsidian and okf output shapingmarkitai serve, its history and REST APIconvert() and aconvert() as a libraryContributors start at CONTRIBUTING.md.
Two of the tools we compare markitai with are also its dependencies:
markitdown converts the Office formats, and anydoc handles legacy .doc/.ppt
behind markitai[legacy]. Against them and docling, markitai gives up
ecosystem reach, ML document-structure models and dependency-free speed, and
gets a built-in LLM pipeline, live web fetching and a local workspace in
return. The feature-by-feature table lives in
Why Markitai.
markitai's own source code is MIT.
The default installation is not uniformly MIT, because the PDF engine is not.
The PyMuPDF packages pymupdf, pymupdf-layout and pymupdf4llm come from
Artifex Software and are dual-licensed under AGPL-3.0 or a commercial licence
from Artifex. They are required dependencies: PDF conversion does not work
without them. Running the CLI on your own machine, or a markitai serve
instance only you talk to, carries no AGPL obligation. Redistributing the
combined work, or offering it to other people over a network, does.
NOTICE carries the full terms, the rest of the dependency licensing, and the attribution for the code markitai ports from defuddle (MIT) and marker (Apache-2.0).