← Back to Leaderboard
Mopendatalab

opendatalab/MinerU

Local document parser and library for structured RAG ingestion and page-level citations

Engineering Health (Methodology)
A · 84/100
Maintenance Activity
● Updated today
Latest Release
mineru-4.3.0-released
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity6/20
DockerSelf-HostedLocal AICLIGPU
Total Stars
★ 84,696
24h Growth
+46
7d Growth
+326
Forks
6,989

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

opendatalab/MinerU Star History (2024-04-10 - 2026-12-03) ALL-TIME STAR HISTORY (2024-04 – 2026-12) +84.7k in 967d · avg +88/day 89.4k 44.7k 0 2024-04-10: ★ 12024-06-08: ★ 62024-08-10: ★ 6,9532024-10-12: ★ 12,1262024-12-14: ★ 20,2002025-02-15: ★ 24,6292025-04-19: ★ 30,2392025-06-21: ★ 34,4192025-08-23: ★ 41,0492025-10-25: ★ 46,1502025-12-27: ★ 49,9232026-02-28: ★ 54,0472026-05-02: ★ 60,7802026-07-04: ★ 72,5742026-09-05: ★ 78,7172026-12-03: ★ 84,696 ★ 84.7k 2024-04 2025-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

MinerU is a Python document parser with two execution paths. mineru-kit parse performs stateless file conversion, while mineru and DoclibClient use a persistent local document library. In the SDK flow, ensure_parse submits work asynchronously, get_parse reports task status, and read_content retrieves material by locator. The library also supports search, watched folders, and result invalidation.

The base runtime includes ONNX and llama.cpp. The torch extra adds PyTorch, and full offers additional engine choices including vLLM, LMDeploy, and MLX, depending on the platform. This is a document ingestion and reading layer, not a vector database or RAG framework: feed its Markdown or JSON to downstream systems and keep its locators to connect extracted content back to the source.

Key Capabilities & Differentiators

MinerU extracts text, tables, and formulas from documents with complex layouts and applies OCR to scans. It supports all four quality tiers (flash, basic, standard, and advanced) for PDFs and images. Office formats, OpenDocument, HTML/MHTML, CSV/TSV, EPUB, and OFD use local flash parsing. EPUB follows OPF spine order and preserves internal links; plain-text formats are read directly rather than parsed.

In 4.3, native PDF flash parsing uses a per-page pseudo-confidence score to decide when to fall back to a layout model. About 7% of pages took that path in the reported sample; this is not a general throughput estimate. The release also increases rendering resolution for small PDF pages and improves table structure and recovery of wrapped cell text while preserving native bold and italic styling.

Trade-offs & Limitations

Compared with a plain PDF text extractor, MinerU adds OCR, layout-aware extraction, and source locators, but also brings model provisioning and more runtime choices. Compared with a hosted parsing service, the local path keeps processing on infrastructure you control, while leaving capacity planning, upgrades, and recovery to your team. Even flash can invoke a layout model in 4.3, so benchmark representative documents rather than treating it as a fixed-cost text extraction path.

Choose the CLI deliberately: the document-library parse defaults to the first 10 PDF pages and exposes continuation locators, whereas stateless mineru-kit parse defaults to the whole file. That distinction matters for both bounded agent reads and complete batch exports. Higher tiers add model and memory overhead, and they are not available for Office input. Review LICENSE.md before commercial deployment or redistribution; the package declares a project-specific license reference, not a standard SPDX license identifier.

Hardware & Deployment Guide

MinerU requires Python 3.11 through 3.14 and supports CPU inference on Windows, Linux, and macOS. Download and verify models for the chosen basic or standard startup tier before enabling the managed local parse server, then check readiness with mineru server status --json. A Docker directory is present, but current non-NVIDIA Docker guidance is pending an update. On Windows, CUDA acceleration through PyTorch extras requires CUDA and a CUDA-enabled PyTorch build. The optional remote API is a separate path; validate model availability and backend startup before relying on disconnected operation.

Release 4.2.2 expanded health checks and fault propagation for local VLM engines. Release 4.2.3 added --task-timeout, which defaults to 3,600 seconds and runs from slot acquisition through artifact packaging; it does not bound queue time. Router supervises timed-out worker and model subprocess cleanup and restarts service. A standalone API instead stops accepting new work and expects the deployment to replace it. Release 4.3 added WebUI startup concurrency configuration and bidirectional source/result scrolling.

Execution paths: mineru-kit parse converts files statelessly; mineru and DoclibClient work with a persistent local document library.
Source citations: doc: locators identify a document, tier, page, and optionally a block for follow-up reads.
Adaptive parsing: 4.3 routes low-confidence native PDF pages to a layout model and increases rendering resolution for small pages.
Structured extraction: Markdown and JSON outputs cover OCR, tables, and formulas; 4.3 improves table-cell line joining and native bold and italic preservation.
Runtime sizing: Basic ONNX runs on CPU with a listed 2 GB RAM minimum; standard and advanced have CPU-capable ONNX and llama.cpp paths with an 8 GB minimum.
Service recovery: Router supervises worker replacement after task timeouts; the standalone API relies on the deployer to replace the service.
Best For

Teams that need local ingestion of scanned or layout-heavy documents, structured Markdown or JSON, and source citations for RAG or agents.

Skip If

You only need text from clean PDFs, want a turnkey vector database or chat-with-docs product, or cannot operate and validate local model runtimes.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedLocal AICLI
pip install uv
uv venv .mineru --python 3.12

# Linux/macOS
source .mineru/bin/activate
# Windows (PowerShell)
.\.mineru\Scripts\Activate.ps1

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
MinerU ★84.7k+326Python—Local document parser and library for structured RAG ingestion and page-level ci
marker41.2k+103PythonApache-2.0Hybrid OCR and layout parsing for document ingestion in RAG pipelines
docling71.4k+285PythonMITLocal-first document parser for structure-aware RAG ingestion
PyMuPDF11.2k+38PythonAGPL-3.0MuPDF-backed Python engine for layout-aware document ingestion and page groundin

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/opendatalab/MinerU.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

opendatalab/MinerU Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about MinerU

How should I integrate MinerU into an existing RAG pipeline?

Use mineru-kit parse for stateless conversion or DoclibClient for a persistent local library. With the local server running, call ensure_parse, poll the returned task IDs with get_parse, then use read_content with a page or block locator. Retain those locators alongside downstream chunks so retrieved passages can be traced back to the source. Add embeddings and vector retrieval separately if needed.

Do I need a GPU, and how much memory should I budget?

No. Basic ONNX parsing has a listed minimum of 2 GB system RAM and a model download of about 0.8 GB. Standard or advanced with ONNX and llama.cpp can run on CPU with 8 GB system RAM and about 2 GB of models; Vulkan is recommended. The listed GPU paths for those tiers specify 16 GB system RAM and at least 8 GB VRAM. Treat these as starting points, not capacity guarantees for concurrent jobs.

Can I self-host MinerU for commercial use?

The package declares LicenseRef-MinerU-Open-Source-License and ships LICENSE.md. The identifier alone does not establish what commercial deployment or redistribution is permitted. Review the license text and applicable dependency and model terms for your specific use. For data residency, check that processing stays on the local path and does not use the optional remote API.

When is MinerU a better choice than a plain PDF text extractor?

For text-only PDFs with a reliable text layer, a basic extractor is simpler to provision. Evaluate MinerU when scans require OCR, reading order matters, or tables and formulas need to survive conversion. Compare both on representative files and inspect field-level extraction and page citations, not just whether they produce readable text.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining opendatalab/MinerU? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature opendatalab/MinerU on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare