
MinerU Open MCP
io.github.opendatalab由 GitHub 账号 opendatalab 发布v1.0.20更新于 Oct 24, 2026
Parse PDFs, images, doc, docx, ppt, pptx, xls, xlsx, html into Markdown using MinerU API.
概览
一个本地 MCP 服务器,让助手通过 MinerU 云端解析 API 把 PDF、Office 文件、图片和 HTML 转成 Markdown。
- 可以做什么
- 把 PDF、DOCX、PPTX、XLSX、图片和 HTML 文件解析为 Markdown,公式转为 LaTeX、表格转为 HTML,使用 MinerU 云端 API,可选免费 Flash 模式或需令牌的精确模式(更高限额、支持 JSON、DOCX、HTML、LaTeX 等额外输出格式)。列出服务支持的 109 种 OCR 语言。把解析结果保存到本地输出目录。在启用日志时可删除旧的服务器日志文件。
- 适用场景
- 适合助手需要读取或总结非纯文本文档的场景,例如扫描版 PDF、多栏论文、演示文稿或电子表格,也适合把解析内容送入 RAG 或知识库流程。小文件快速预览用 Flash 模式即可;长文档或大文件适合精确模式。
- 运行要求
- 以 Python 包形式在本地运行(例如通过 uvx),需桌面客户端。需要访问 MinerU 云端 API 的网络。MINERU_API_TOKEN 可选:不设置则使用免费 Flash 模式(仅 Markdown,单文件最多 20 页、10 MB);设置后可用更大文件、批量处理和额外输出格式。OUTPUT_DIR 指定结果保存位置。
安装
在 SourceWeft 中
- 打开 控制台中的 MinerU Open MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MinerU-Ecosystem
The official ecosystem toolkit for MinerU Open API
Empowering developers and AI agents with seamless document parsing capabilities — PDF · Word · PPT · Images · Web pages → Markdown / JSON · VLM+OCR dual engine · 109 languages · MCP Server · LangChain / RAGFlow / Dify / FastGPT native integration.
📖 Overview
MinerU-Ecosystem provides a full suite of tools, SDKs, and integrations built on top of the MinerU Open API. Whether you're building production pipelines, integrating with LangChain for RAG, or enabling AI agents to parse documents on the fly — this repository has you covered.
MinerU is an open-source, high-accuracy document parsing engine that converts unstructured documents (PDFs, images, Office files, etc.) into machine-readable Markdown and JSON, purpose-built for LLM pre-training, RAG, and agentic workflows.
Core capabilities:
- Formulas → LaTeX · Tables → HTML, accurate complex layout reconstruction
- Supports scanned docs, handwriting, multi-column layouts, cross-page table merging
- Output follows human reading order with automatic header/footer removal
- VLM + OCR dual engine, 109-language OCR recognition
🏗️ Repository Structure
🔑 Supported APIs
All components support both API modes:
🧭 Choose Your Integration Path
Not sure where to start? Pick the path that matches your use case:
🚀 Quick Start
💻 CLI (cli/)
A fast command-line tool for parsing documents directly from your terminal.
Installation
Flash Extract (no login)
Precision Extract (login required)
Web Crawl
Batch Processing
🐍 Python SDK
Installation
Flash Extract (no token)
Precision Extract (token required)
🐹 Go SDK
Installation
Flash Extract
Precision Extract
Precision Extract with options
Batch Processing
Web Crawling
🟦 TypeScript / JavaScript SDK
Installation
Flash Extract
Precision Extract
Precision Extract with options
Batch Processing
Web Crawling
🤖 Use with Claude / Cursor (MCP Server)
MinerU provides an official MCP Server allowing Claude Desktop, Cursor, Windsurf, and any MCP-compatible AI client to parse documents as a native tool.
No API key needed — Flash mode works out of the box, free, up to 20 pages / 10 MB per file.
Configure: claude_desktop_config.json / .cursor/mcp.json
Streamable HTTP mode (web-based MCP clients)
Tools exposed via MCP:
Environment Variables:
🦜 Use in RAG with LangChain
langchain-mineru is an official LangChain Document Loader — parse any document into LangChain Document objects with one line of code.
Installation
Minimal example (no token)
1. Basic usage (flash mode by default, no token required)
Default is mode="flash", which is ideal for quick previews and lightweight integrations.
2. Precision mode (token required)
Best for long documents, larger files, and workflows that need higher-fidelity extraction or standard API outputs. Flash mode also supports OCR, table, and formula switches within flash API limits.
3. Use it in a LangChain RAG pipeline
Default is mode="flash" (no API token required). Switch to mode="precision" for higher fidelity with token auth. For RAG use cases, split_pages=True is usually a better default for PDFs because it gives you page-level Document granularity.
## Use in RAG with LlamaIndex
A document reader for LlamaIndex that parses PDFs, Word files, PPTs, images, and Excel files through MinerU and returns LlamaIndex-compatible Document objects for indexing and retrieval.
Installation
Usage
1. Flash mode (default, no token required)
Good for quick setup and lightweight parsing. Output is returned as Markdown.
2. Precision mode (token required)
Best for longer documents, larger files, and use cases that need higher-fidelity extraction or standard API outputs. Flash mode also supports OCR, formula, and table switches within flash API limits.
3. Use it in a LlamaIndex pipeline
Default is mode="flash" with no token required. Switch to mode="precision" when you need higher parsing fidelity. For PDF-based RAG pipelines, split_pages=True is recommended so each page becomes a separate Document.
🤖 AI Agent Skills (skills/)
Pre-built skills for AI coding agents, wrapping the mineru-open-api CLI for use in agent workflows.
- OpenClaw / ClawHub — View skill details
- One-click download — Skill package
- Compatible with Claude Code, OpenClaw, ZeroClaw, and other skill-interface agents
🔗 All Integrations
📚 Documentation
📄 License
This project is licensed under the Apache License 2.0.
来源:README.md,提交 95357b5
工具
0版本历史
1- v1.0.20最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分