MinerU: Open Source AI Repository & Self-Hosting Guide
OpenDataLab open-source high-precision PDF parsing toolkit extracting multi-column layouts, embedded tables, and LaTeX equations into Markdown and JSON.
MinerU: Architecture & Practical Workflow
MinerU combines layout detection (DocLayout-YOLO), formula recognition (UniMERNet), and table reconstruction into a deterministic pipeline tuned for dense academic papers, technical manuals, and financial reports with reading-order recovery.
Batch-convert multi-column PDF research journals with MinerU GPU acceleration into clean Markdown and HTML tables ready for RAGFlow or NotebookLM.
Quick Setup & Installation Steps
Platform target: Self-Hosted / CLI, API & Gradio (GitHub). Always verify environment variables and dependencies in the upstream repository README.
- 1Clone the repository from GitHub: `git clone https://github.com/opendatalab/MinerU.git && cd MinerU`.
- 2Review the Custom (see repo) license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
- 3Install or launch the project directly: `pip install -U 'mineru[core]' && mineru -p input.pdf -o out/` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
- 4Validate end-to-end behavior with a small sample input (Batch-convert multi-column PDF research journals with MinerU GPU acceleration into clean Markdown and HTML tables ready for RAGFlow or NotebookLM.)
Hardware & VRAM Notes
Hardware & VRAM guidance: Best extraction throughput requires GPU acceleration
Best extraction throughput requires GPU acceleration
16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.
Self-Hosted / CLI, API & Gradio (GitHub)
Strengths & Best For
- Preserves multi-column reading order and strips headers/footers cleanly
- Converts complex scientific formulas to LaTeX and tables to HTML/Markdown
- Outputs structured JSON alongside clean Markdown for RAG pipelines
- Best suited for: Researchers, Data Scientists, RAG Engineers
Limitations & Caveats
- Best extraction throughput requires GPU acceleration
- Model weights download several gigabytes on first run
- Check the repo's license. Model weights may have a different license.
3 Similar Tools on /tools (Data)
Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.
AI PDF Data Extractor
Extract tables, form fields, and scanned PDF documents into structured Excel (.xlsx), CSV, or JSON without coding or regex templates.
Formula Bot
AI spreadsheet and data analytics tool turning plain-English prompts into complex Excel/Google Sheets formulas, SQL, and charts.
ExcelFormulaBot
Dedicated spreadsheet assistant translating human instructions into nested Excel XLOOKUP, INDEX/MATCH, and regex formulas.
| Factor | MinerU (Self-Hosted) | AI PDF Data Extractor | Formula Bot |
|---|---|---|---|
| Execution & Privacy | Runs locally via Self-Hosted / CLI, API & Gradio (GitHub); data stays on your disk or private server. | Hosted cloud web interface; zero local dependency setup required. | Hosted cloud web interface; zero local dependency setup required. |
| Cost & Quota | Custom (see repo) code; bound only by local CPU/GPU hardware. | Free; subject to vendor free-tier limits or paid plans. | Freemium; subject to vendor free-tier limits or paid plans. |
| Primary Fit | Preserves multi-column reading order and strips headers/footers cleanly; Converts complex scientific formulas to LaTeX and tables to HTML/Markdown | Extract tables, form fields, and scanned PDF documents into structured Excel (.xlsx), CSV, or JSON without coding or regex templates. | AI spreadsheet and data analytics tool turning plain-English prompts into complex Excel/Google Sheets formulas, SQL, and charts. |
| Key Trade-off | Best extraction throughput requires GPU acceleration | Requires internet access and vendor account/quota limits. | Requires internet access and vendor account/quota limits. |
Matching Ready-Made Prompts
Customize variables in Live Prompt Studio for MinerU workflows.
Compare Alternatives
Compare MinerU side-by-side on setup ease, privacy, and role scorecards.
More Open Source Data & Extraction Repositories
MarkItDown
Microsoft open-source Python utility and MCP server converting PDF, DOCX, PPTX, XLSX, HTML, audio, and image files into clean LLM-ready Markdown.
RAGFlow
Infiniflow open-source RAG engine pairing deep document layout parsing (Infinity/DeepDoc) with hybrid vector/BM25 search and traceable chunk citations.
PaddleOCR
Baidu open-source multilingual OCR and PP-Structure document analysis suite supporting text detection, angle classification, key-value forms, and tables.
Frequently Asked Questions
What does MinerU do and how does it work?
MinerU (opendatalab/MinerU) is an open-source data & extraction project with 84,718 stars on GitHub. OpenDataLab open-source high-precision PDF parsing toolkit extracting multi-column layouts, embedded tables, and LaTeX equations into Markdown and JSON. MinerU combines layout detection (DocLayout-YOLO), formula recognition (UniMERNet), and table reconstruction into a deterministic pipeline tuned for dense academic papers, technical manuals, and financial reports with reading-order recovery.
Is MinerU free to self-host and use commercially?
MinerU provides open source code licensed under Custom (see repo). Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.
What hardware, runtime, or VRAM does MinerU require?
MinerU targets Self-Hosted / CLI, API & Gradio (GitHub). Typical installation runs via `pip install -U 'mineru[core]' && mineru -p input.pdf -o out/`. Best extraction throughput requires GPU acceleration
How does self-hosting MinerU compare to hosted tools like AI PDF Data Extractor?
Self-hosting MinerU gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / CLI, API & Gradio (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, AI PDF Data Extractor (Free) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.
Is MinerU actively maintained and what workflow fits it best?
Repository metadata records 84,718 stars on GitHub with the latest recorded push on Dec 4, 2026. Batch-convert multi-column PDF research journals with MinerU GPU acceleration into clean Markdown and HTML tables ready for RAGFlow or NotebookLM.