MinerU
$ mineru Official Low RiskMinerU (mineru, by OpenDataLab) extracts complex multi-column PDFs, mathematical formulas (as LaTeX), and tables into Markdown and structured middle/content-list JSON files. It supports -p/--path (or -i depending on wrapper), -o/--output, and -m/--method (auto, txt, ocr).
pip install mineru mineru executes heavy local layout/OCR/formula models against PDF files on disk and writes Markdown + JSON asset directories directly.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Runs headlessly and produces structured content-list JSON alongside Markdown, though flag names have evolved across magic-pdf and mineru releases.
- Non-interactive execution writing Markdown and layout JSON files
- Flag drift across versions (
-pvs-i)
100% local execution without external API calls, though the custom Apache-2.0 addendum imposes commercial attribution and scale thresholds.
- Local document processing with no remote uploads
- MinerU Open Source License commercial scale/attribution clauses
Installable via pip install mineru, but requires heavy deep-learning frameworks and multi-GB model downloads.
- Heavy ML stack and multi-GB model weight downloads
Excels at academic PDFs with LaTeX formulas, multi-column layouts, and complex tables.
- Supports
auto,txt, andocrpipelines with LaTeX formula extraction
Official OpenDataLab repository (opendatalab/MinerU) with rapid development.
- Official
opendatalab/MinerUrepository
Extensive bilingual documentation at opendatalab.github.io/MinerU.
- Official documentation and CLI examples
Security, Auth & Guardrails
Runs locally without API keys; downloads model weights from Hugging Face or ModelScope into local cache.
MinerU Open Source License (Apache-2.0 with commercial MAU/revenue thresholds above 100M MAU or $20M monthly revenue); free locally.
# MinerU CLI (mineru) Agent Rules - Always verify exact input flags (`-p` vs `-i`) with `mineru --help` for the installed version. - Pass `-o <dir>` to isolate generated Markdown, images, and JSON artifacts. - Use `-m txt` on clean digital PDFs to skip slower OCR stages when appropriate.
Agent-Ready Command Recipes
Safe Read-Only Queries
mineru --help
Displays input (-p), output (-o), and extraction method (-m) flags.
Controlled Writes & Previews
mineru -p paper.pdf -o ./mineru_out -m auto
Auto-selects text or OCR extraction and writes Markdown, images, and layout JSON under ./mineru_out.
Strengths for Agents
- + Strong LaTeX formula and complex academic table extraction into Markdown and structured JSON.
- + Selectable
-m auto|txt|ocrbackends optimize speed vs. scanned-PDF accuracy.
Caveats & Pitfalls
- ! CLI flags have shifted between
magic-pdf(-p) and newer wrappers (-i), so checkingmineru --helpis advisable. - ! Heavy GPU/RAM requirements and multi-GB model downloads on initial setup.