Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

MinerU

$ mineru Official Low Risk
OpenDataLab · AI & Media · Apache-2.0 · macos / linux / windows

MinerU (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).

FCRS-1.0 Score
74 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
pip install mineru
CLI vs MCP Decision CLI Preferred vs MCP

mineru executes heavy local layout/OCR/formula models against PDF files on disk and writes Markdown + JSON asset directories directly.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

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 (-p vs -i)
Trust & Safety 18 / 25

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
Setup & Portability 9 / 15

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
Utility & Efficiency 13 / 15

Excels at academic PDFs with LaTeX formulas, multi-column layouts, and complex tables.

  • Supports auto, txt, and ocr pipelines with LaTeX formula extraction
Maintenance & Lineage 8 / 10

Official OpenDataLab repository (opendatalab/MinerU) with rapid development.

  • Official opendatalab/MinerU repository
Docs & Verifiability 8 / 10

Extensive bilingual documentation at opendatalab.github.io/MinerU.

  • Official documentation and CLI examples

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Runs locally without API keys; downloads model weights from Hugging Face or ModelScope into local cache.

Side Effects
Read-Only Local Write
Cost & Quotas

MinerU Open Source License (Apache-2.0 with commercial MAU/revenue thresholds above 100M MAU or $20M monthly revenue); free locally.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect MinerU CLI options
mineru --help

Displays input (-p), output (-o), and extraction method (-m) flags.

Controlled Writes & Previews

Extract a PDF into Markdown and layout JSON
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|ocr backends optimize speed vs. scanned-PDF accuracy.

Caveats & Pitfalls

  • ! CLI flags have shifted between magic-pdf (-p) and newer wrappers (-i), so checking mineru --help is advisable.
  • ! Heavy GPU/RAM requirements and multi-GB model downloads on initial setup.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI