微元熵减VYAGENT
Radar Apps微元
RADAR #02 · 2026-11-24 · CLI & MCP · Document ParsingCLI & MCP · 文档解析

Microsoft MarkItDown

Convert PDF, Word, PowerPoint, Excel, and HTML into clean LLM-ready Markdown locally via CLI or MCP.通过 CLI 或 MCP 在本地将 PDF、Word、PPT、Excel 与网页一键转为干净、适合喂给大模型的 Markdown。

Minimalist dark editorial illustration of messy document layers transforming into clean structured Markdown lines

01 Friction Solved消除的小摩擦

LLMs reason far better over structured Markdown than raw binary Office files or messy PDF text dumps, yet turning a folder of decks, spreadsheets, and reports into clean context usually means uploading sensitive files to third-party web converters or writing brittle parser scripts.大模型处理结构化 Markdown 的效果远好于原始 Office 二进制文件或乱码 PDF 文本,但过去想把一堆 PPT、Excel 和报告转成干净上下文,要么把敏感文件上传到第三方在线转换站,要么自己写一堆脆弱的解析脚本。

02 Best-Fit Scenarios最适合的使用场景

  • Preprocessing local PDFs, DOCX contracts, PPTX slide decks, and XLSX tables into compact Markdown before feeding them into an LLM.
  • Exposing a local document-to-Markdown tool directly to Claude, Cursor, or custom agents over MCP.
  • Building offline RAG ingestion pipelines that preserve headings, tables, and lists without paying per-page OCR SaaS fees.
  • 在喂给大模型之前,于本地批量把 PDF、Word 合同、PPT 演示文稿和 Excel 表格转成紧凑的 Markdown。
  • 通过 MCP 协议直接把本地文档转 Markdown 能力暴露给 Claude、Cursor 或自研 Agent 调用。
  • 搭建离线 RAG 知识库清洗管道,保留标题层级、表格与列表,省去按页收费的云端文档解析费用。

03 Human & Agent Setup人类与 Agent 快速接入

Local CLI Install & Python Usage本地 CLI 安装与常用命令
# Install with all optional format handlers
pip install 'markitdown[all]'

# Convert any Office/PDF/HTML file to Markdown locally
markitdown report.pdf -o report.md

# Or run the official MCP server for AI clients
pip install markitdown-mcp
markitdown-mcp

04 Reality Check & Trade-offs真实边界与局限

  • Works best on digital-native PDFs and Office documents; scanned image-only PDFs require an external OCR or vision model pass.
  • Complex multi-column PDF layouts or merged Excel cells can still lose visual alignment—always spot-check financial tables before automated decisions.
  • Installing the [all] extras pulls in several Python dependencies; install only the extras you need (e.g. [pdf,docx]) for lean CI or container images.
  • 对原生电子版 PDF 和 Office 文档效果极佳;纯扫描图片型 PDF 仍需额外接 OCR 或多模态视觉模型。
  • 极其复杂的多栏排版 PDF 或合并单元格 Excel 仍可能丢失对齐,涉及财务/合同关键数据时务必抽检。
  • 全量安装 [all] 会拉入较多 Python 依赖,容器或 CI 环境建议按需只装 [pdf,docx] 等子集。

05 Why VYAGENT Picked ItVYAGENT 选品评语

Fast, MIT-licensed, and quietly solves one of the highest-frequency bottlenecks in every AI workflow: turning messy human documents into clean Markdown without leaving your machine.轻量、MIT 开源,安静地解决了所有 AI 工作流里最高频的瓶颈之一:不离开本机,把杂乱的人类文档变成大模型最爱读的 Markdown。

Before pasting converted Markdown into cloud LLMs, strip emails/API keys locally with Oktangle AI PII Redactor—or export AI Markdown back into native .docx.把转换好的 Markdown 发给云端大模型前,可用 Oktangle 本地可逆脱敏邮箱/密钥;也可将 AI 输出的 Markdown 一键导出为排版干净的原生 Word (.docx)。

Redact PII & export Markdown back to Word on Oktangle →用 Oktangle 做本地脱敏与 Markdown 转 Word →

06 Frequently Asked Questions常见问题 (FAQ)

Does Microsoft MarkItDown send my files to the cloud?Microsoft MarkItDown 会把我的文件上传到云端吗?

No. Core conversions for PDF, DOCX, PPTX, XLSX, and HTML run locally in Python unless you explicitly configure an external LLM client for image descriptions.不会。PDF、DOCX、PPTX、XLSX 和 HTML 的核心转换全部在本地 Python 环境完成,除非你主动配置了外部大模型来做图片描述。

Can AI coding agents call MarkItDown directly?AI 编程 Agent 可以直接调用 MarkItDown 吗?

Yes. Agents can invoke the markitdown CLI directly in a shell or connect to the markitdown-mcp server over stdio/SSE.可以。Agent 既可以在终端直接执行 markitdown CLI,也可以通过 stdio/SSE 挂载 markitdown-mcp 服务。