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
MinerU-Ecosystem/
βββ cli/ # Command-line tool for document parsing
βββ sdk/ # Multi-language SDKs
β βββ python/ # Python SDK
β βββ go/ # Go SDK
β βββ typescript/ # TypeScript SDK
βββ langchain_mineru/ # LangChain document loader integration
βββ llama-index-readers-mineru/ # LlamaIndex document reader integration
βββ mcp/ # Model Context Protocol server (Python)
βββ skills/ # AI agent skills (Claude Code, OpenClaw, etc.)
π Supported APIs
All components support both API modes:
| Comparison | π― Precision Extract API | β‘ Quick Parse API (Agent-Oriented) |
|---|
| Auth | β
Token required | β Not required (IP rate-limited) |
| Model Versions | pipeline (default) / vlm (recommended) / MinerU-HTML | Fixed lightweight pipeline model |
| File Size Limit | β€ 200 MB | β€ 10 MB |
| Page Limit | β€ 200 pages | β€ 20 pages |
| Batch Support | β
Supported (β€ 200 files) | β Single file only |
| Output Formats | Markdown, JSON, Zip; optional export to DOCX / HTML / LaTeX | Markdown only |
π§ Choose Your Integration Path
Not sure where to start? Pick the path that matches your use case:
I want to...
β
βββ π Try it instantly, with no install and no code
β βββ Web App β https://mineru.net/OpenSourceTools/Extractor
β
βββ π» Parse documents from the terminal
β βββ CLI β cli/
β flash-extract: no token, best for quick previews
β extract: full features, better for production workflows
β
βββ π Integrate it into my Python / Go / TypeScript project
β βββ SDK β sdk/python/ | sdk/go/ | sdk/typescript/
β
βββ π€ Enable my AI agent to parse documents
β βββ Call the CLI directly β cli/
β βββ Use natural-language skills (OpenClaw, ZeroClaw, etc.) β skills/
β βββ Use MCP protocol (Cursor, Claude Desktop, Windsurf, etc.) β mcp/
β
βββ π Build a RAG pipeline / knowledge base
β βββ LangChain Loader β langchain_mineru/
β βββ LlamaIndex Reader β llama-index-readers-mineru/
β flash mode: zero-token quick start
β precision mode: OCR, tables, formulas, and higher fidelity
π Quick Start
π» CLI (cli/)
A fast command-line tool for parsing documents directly from your terminal.
Installation
# Linux / macOS
curl -fsSL https://cdn-mineru.openxlab.org.cn/open-api-cli/install.sh | sh
# Windows (PowerShell)
irm https://cdn-mineru.openxlab.org.cn/open-api-cli/install.ps1 | iex
Flash Extract (no login)
mineru-open-api flash-extract report.pdf
Precision Extract (login required)
# First-time setup
mineru-open-api auth
# Extract to stdout
mineru-open-api extract paper.pdf
# Save all resources (images/tables) to directory
mineru-open-api extract report.pdf -o ./output/
# Export to multiple formats
mineru-open-api extract report.pdf -f docx,latex,html -o ./results/
Web Crawl
mineru-open-api crawl https://www.example.com
Batch Processing
# All PDFs in current directory
mineru-open-api extract *.pdf -o ./results/
# From a file list
mineru-open-api extract --list filelist.txt -o ./results/
π Python SDK
Installation
pip install mineru-open-sdk
Flash Extract (no token)
from mineru import MinerU
client = MinerU()
result = client.flash_extract("https://cdn-mineru.openxlab.org.cn/demo/example.pdf")
print(result.markdown)
Precision Extract (token required)
from mineru import MinerU
client = MinerU("your-api-token")
result = client.extract("https://cdn-mineru.openxlab.org.cn/demo/example.pdf")
print(result.markdown)
print(result.images) # extracted image list
πΉ Go SDK
Installation
go get github.com/opendatalab/MinerU-Ecosystem/sdk/go@latest
Flash Extract
package main
import (
"context"
"fmt"
mineru "github.com/opendatalab/MinerU-Ecosystem/sdk/go"
)
func main() {
client := mineru.NewFlash()
result, err := client.FlashExtract(
context.Background(),
"https://cdn-mineru.openxlab.org.cn/demo/example.pdf",
)
if err != nil {
panic(err)
}
fmt.Println(result.Markdown)
}
Precision Extract
client, err := mineru.New("your-api-token")
if err != nil {
panic(err)
}
result, err := client.Extract(
context.Background(),
"https://cdn-mineru.openxlab.org.cn/demo/example.pdf",
)
if err != nil {
panic(err)
}
fmt.Println(result.Markdown)
Precision Extract with options
result, err := client.Extract(ctx, "./paper.pdf",
mineru.WithModel("vlm"),
mineru.WithLanguage("en"),
mineru.WithPages("1-20"),
mineru.WithExtraFormats("docx"),
mineru.WithPollTimeout(10*time.Minute),
)
if err != nil {
panic(err)
}
if err := result.SaveAll("./output"); err != nil {
panic(err)
}
Batch Processing
ch, err := client.ExtractBatch(ctx, []string{"a.pdf", "b.pdf"})
if err != nil {
panic(err)
}
for result := range ch {
fmt.Printf("%s: %s\n", result.Filename, result.State)
}
Web Crawling
result, err := client.Crawl(ctx, "https://www.example.com")
if err != nil {
panic(err)
}
fmt.Println(result.Markdown)
π¦ TypeScript / JavaScript SDK
Installation
npm install mineru-open-sdk
Flash Extract
import { MinerU } from "mineru-open-sdk";
const client = new MinerU();
const result = await client.flashExtract(
"https://cdn-mineru.openxlab.org.cn/demo/example.pdf"
);
console.log(result.markdown);
Precision Extract
import { MinerU } from "mineru-open-sdk";
const client = new MinerU("your-api-token");
const result = await client.extract(
"https://cdn-mineru.openxlab.org.cn/demo/example.pdf"
);
console.log(result.markdown);
console.log(result.images);
Precision Extract with options
import { MinerU, saveAll } from "mineru-open-sdk";
const client = new MinerU("your-api-token");
const result = await client.extract("./paper.pdf", {
model: "vlm", // "vlm" | "pipeline" | "html"
language: "en",
pages: "1-20",
extraFormats: ["docx"],
timeout: 600,
});
await saveAll(result, "./output");
Batch Processing
for await (const result of client.extractBatch(["a.pdf", "b.pdf"])) {
console.log(`${result.filename}: ${result.state}`);
}
Web Crawling
const result = await client.crawl("https://www.example.com");
console.log(result.markdown);
π€ 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
{
"mcpServers": {
"mineru": {
"command": "uvx",
"args": ["mineru-open-mcp"],
"env": {
"MINERU_API_TOKEN": "your_key_here"
}
}
}
}
Streamable HTTP mode (web-based MCP clients)
MINERU_API_TOKEN=your_key mineru-open-mcp --transport streamable-http --port 8001
{
"mcpServers": {
"mineru": {
"type": "streamableHttp",
"url": "http://127.0.0.1:8001/mcp"
}
}
}
Tools exposed via MCP:
| Tool | Description |
|---|
parse_documents | Convert PDF, DOCX, PPTX, images, HTML to Markdown |
get_ocr_languages | List all 109 supported OCR languages |
clean_logs | Delete old server log files (when ENABLE_LOG=true) |
Environment Variables: