markitdown
Use MarkItDown to convert documents to Markdown, configure cloud/OCR/plugin workflows, and run the local MCP server safely.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- markitdown
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use MarkItDown to convert documents to Markdown, configure cloud/OCR/plugin workflows, and run the local MCP server safely.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-overview.md4.0 KB
- 参考文档references/repo-provenance.md2.9 KB
- 参考文档references/repo-routing-metadata.json496 B
- 参考文档references/troubleshooting.md5.4 KB
- 脚本scripts/check_markitdown_environment.py5.4 KB
03 SKILL.md 正文
MarkItDown Repo Skill
Use this skill when a task involves Microsoft MarkItDown: converting files or URIs to Markdown for LLM pipelines, choosing optional format extras, using Azure conversion integrations, enabling OCR or third-party plugins, developing plugins, or exposing conversion through the local MCP server.
Start With The Route
- For ordinary file, stream, URI, stdin, or CLI conversion, read
sub-skills/core-conversion/SKILL.md. - For Azure Document Intelligence or Azure Content Understanding conversion, read
sub-skills/cloud-integrations/SKILL.md. - For OCR over images embedded in PDF, DOCX, PPTX, or XLSX via
markitdown-ocr, readsub-skills/ocr-plugin/SKILL.md. - For authoring or debugging third-party MarkItDown plugins, read
sub-skills/plugin-development/SKILL.md. - For running
markitdown-mcpas a local MCP server, Docker service, Claude Desktop server, or Inspector target, readsub-skills/mcp-server/SKILL.md.
Install And Smoke Check
Install the core package plus the extras needed for the requested workflow:
pip install 'markitdown[pdf,docx,pptx,xlsx,xls,outlook,audio-transcription,youtube-transcription]'
Use markitdown[all] only when the task truly needs every optional converter, including Azure cloud integrations. Add these package families when needed:
pip install markitdown-mcpfor MCP serving.pip install markitdown-ocrplus an OpenAI-compatible client package for real LLM Vision OCR.- A custom plugin package with a
markitdown.pluginentry point for third-party converters.
Run the bundled shared checker from this skill directory when the user asks for an environment or install diagnosis:
python scripts/check_markitdown_environment.py --check-cli --list-plugins
Minimal Python import check:
from markitdown import MarkItDown, StreamInfo
md = MarkItDown()
result = md.convert_stream(
open("example.md", "rb"),
stream_info=StreamInfo(extension=".md"),
)
print(result.markdown)
For untrusted inputs, prefer the narrowest API that matches the source (convert_stream, convert_local, convert_uri, or convert_response) and remember that MarkItDown performs I/O with the privileges of the current process.
Shared References
references/package-overview.mdsummarizes the monorepo packages, public entry points, optional extras, and when each sub-skill owns the workflow.references/troubleshooting.mdcovers cross-cutting install/import, optional dependency, plugin discovery, cloud credential, security, and system-tool failures.references/repo-provenance.mdrecords the source snapshot and evidence paths used to create this skill; read it before deciding whether to refresh the skill.references/repo-routing-metadata.jsonis structured metadata used byrepo-skills-routerduring managed import.
Workflow Hints
- Choose local/offline conversion first unless the user explicitly asks for Azure cloud extraction, OCR via an LLM, or remote URI fetching.
- Use stream hints (
StreamInfoor CLI--extension,--mime-type,--charset) when converting stdin or bytes without a reliable filename. - Keep plugin usage explicit: install the plugin package, verify
markitdown --list-plugins, then use--use-pluginsorMarkItDown(enable_plugins=True). - Treat MCP and cloud modes as security-sensitive because they can read local files or fetch network resources with the process privileges.
- Do not make cloud, LLM, network, server, or Docker calls unless the user has supplied the necessary endpoints/credentials/files and explicitly wants that side effect.
Common Task Routing
| User request | Read |
|---|---|
| "Convert this PDF/DOCX/XLSX/HTML/ZIP to Markdown" | sub-skills/core-conversion/SKILL.md |
| "Why does MarkItDown say missing dependency or unsupported format?" | sub-skills/core-conversion/references/troubleshooting.md |
| "Use Azure Document Intelligence or Content Understanding" | sub-skills/cloud-integrations/SKILL.md |
| "Extract text from screenshots inside a PDF or Office file" | sub-skills/ocr-plugin/SKILL.md |
| "Build a MarkItDown plugin for a new file type" | sub-skills/plugin-development/SKILL.md |
| "Expose MarkItDown to Claude Desktop or an MCP client" | sub-skills/mcp-server/SKILL.md |
| "Check whether this install has MarkItDown, plugins, and CLIs" | scripts/check_markitdown_environment.py |
Safety Boundaries
- Do not hard-code Azure endpoints, API keys, bearer tokens, OpenAI keys, or private file paths into generated code or examples.
- Do not bind
markitdown-mcpto non-loopback interfaces unless the user accepts that the server has no authentication and can read files/network resources available to its process. - Do not preserve data URIs with
--keep-data-urisunless the downstream consumer explicitly needs embedded data; it can make Markdown very large. - Do not run long-lived servers, Docker containers, cloud conversions, real OCR calls, or network fetches as a "smoke test" without explicit user intent.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).