Data & ExtractionOpen source codeopendatalab/MinerU

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.

GitHub Stars
84,718 stars
Repository License
Custom (see repo)
Last Push (UTC)
Dec 4, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/opendatalab/MinerU.git
View on GitHub
Installpip install -U 'mineru[core]' && mineru -p input.pdf -o out/

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.

Recommended End-to-End Pipeline

Batch-convert multi-column PDF research journals with MinerU GPU acceleration into clean Markdown and HTML tables ready for RAGFlow or NotebookLM.

Runtime Target
Self-Hosted / CLI, API & Gradio (GitHub)
Primary Users
Researchers, Data Scientists, RAG Engineers
Code License
Custom (see repo)
Focus Topics
open-source, github, pdf-extraction, ocr, tables

Quick Setup & Installation Steps

Platform target: Self-Hosted / CLI, API & Gradio (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/opendatalab/MinerU.git && cd MinerU`.
  2. 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.
  3. 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).
  4. 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

GPU & VRAM

Best extraction throughput requires GPU acceleration

System RAM & Storage

16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.

Runtime Target

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.

Browse all tools
Self-Hosted MinerU vs. Hosted Alternatives (AI PDF Data Extractor & Formula Bot)
FactorMinerU (Self-Hosted)AI PDF Data ExtractorFormula Bot
Execution & PrivacyRuns 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 & QuotaCustom (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 FitPreserves multi-column reading order and strips headers/footers cleanly; Converts complex scientific formulas to LaTeX and tables to HTML/MarkdownExtract 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-offBest extraction throughput requires GPU accelerationRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for MinerU workflows.

Complex Bank Statement & Ledger NormalizerExtraction · Finance, Bank Statement, Excel, CSV
Open in Studio
Freight Bill of Lading (BOL) & Shipping Manifest ExtractorExtraction · Logistics, Bill of Lading, Freight, Shipping
Open in Studio

More Open Source Data & Extraction Repositories

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.