mineru
/mineru
An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents. Works with NO token via the lightweight Agent API and auto-upgrades to the Standard API (token) for large files, batches, and DOCX/HTML/LaTeX export. Use when: (1) Converting PDF/Word/PPT/Excel/image to Markdown, (2) Extracting text, tables, formulas, or running OCR on scanned docs, (3) Batch-parsing a folder in parallel, (4) Piping parsed Markdown straight back to an agent or into Obsidian.
- Author
- nebutra ↗
- Repository
- mineru-skill ↗
- Licence
- MIT
- Last repository change
- 24.09.2026
Assessment and security
- Files in this package
- 54
- Scripts
- 43
- HTML comments
- 0
- URLs in SKILL.md
- 6
No signals detected. Repository changed on 24.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 43 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/__init__.py, scripts/build_skill_package.py, scripts/chunking.py, scripts/local_engine.py, scripts/mineru.py, scripts/mineru_mcp.py, scripts/sinks/__init__.py, scripts/sinks/_http.py
What it does and when to use it
An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents. Works with NO token via the lightweight Agent API and auto-upgrades to the Standard API (token) for large files, batches, and DOCX/HTML/LaTeX export. Use when: (1) Converting PDF/Word/PPT/Excel/image to Markdown, (2) Extracting text, tables, formulas, or running OCR on scanned docs, (3) Batch-parsing a folder in parallel, (4) Piping parsed Markdown straight back to an agent or into Obsidian.
Original author description
An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents. Works with NO token via the lightweight Agent API and auto-upgrades to the Standard API (token) for large files, batches, and DOCX/HTML/LaTeX export. Use when: (1) Converting PDF/Word/PPT/Excel/image to Markdown, (2) Extracting text, tables, formulas, or running OCR on scanned docs, (3) Batch-parsing a folder in parallel, (4) Piping parsed Markdown straight back to an agent or into Obsidian.
How it works
- Zero-config quick start (no token, no install)
- Power mode (token) — large files, batches, extra formats
- Supported modalities
- Common options
- MCP server
- Deliver into your tools (--to)
- Output
- Performance (real, measured)
- Testing
- API Reference
SKILL.md preview
---
name: mineru
description: "An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents. Works with NO token via the lightweight Agent API and auto-upgrades to the Standard API (token) for large files, batches, and DOCX/HTML/LaTeX export. Use when: (1) Converting PDF/Word/PPT/Excel/image to Markdown, (2) Extracting text, tables, formulas, or running OCR on scanned docs, (3) Batch-parsing a folder in parallel, (4) Piping parsed Markdown straight back to an agent or into Obsidian."
homepage: https://mineru.net
metadata:
author: Nebutra
version: "3.3.1"
argument-hint: <pdf-file-or-url>
openclaw:
emoji: "📄"
requires:
bins: ["python3"]
---
# MinerU PDF Parser
Parse PDF, Office (Word/PPT/Excel), and image files into clean Markdown — with
LaTeX formulas, tables, images, and OCR. One zero-dependency script, two backends,
automatic routing.
## Zero-config quick start (no token, no install)
```bash
# Parse a local file or URL — the Agent API needs no login
python3 scripts/mineru.py paper.pdf
# Pipe the Markdown straight back to an agent
python3 scripts/mineru.py paper.pdf --stdout
# Machine-readable status for tool pipelines
python3 scripts/mineru.py paper.pdf --json
```
No `pip install`, no API key. The free **Agent API** handles files ≤ 10 MB / ≤ 20 pages.
### Run with uv (zero-install, managed Python)
`scripts/mineru.py` carries [PEP 723](https://peps.python.org/pep-0723/) inline
metadata, so [uv](https://docs.astral.sh/uv/) runs it directly — no venv, no
`pip install`, with a uv-managed interpreter:
```bash
uv run scripts/mineru.py paper.pdf --stdout # zero-install run
uv run --no-project --with pytest pytest -q # dev suite via uv
```
## Power mode (token) — large files, batches, extra formats
```bash
export MINERU_TOKEN="..." # https://mineru.net/apiManage/token
# Parallel batch a directory, resume on re-run
python3 scripts/mineru.py ./pdfs/ --output ./out/ --workers 8 --resume
# Export DOCX/HTML/LaTeX alongside Markdown (auto-routes to the Standard API)
python3 scripts/mineru.py report.pdf --format docx --format latex
```
When a token is set, the tool **auto-routes**: small single files still use the
free Agent API; anything large (> 10 MB / > 20 pages), batched, or needing extra
export formats uses the **Standard API** (≤ 200 MB / ≤ 200 pages). If the Agent
API hits a size/page limit, it auto-escalates to the Standard API.
## Supported modalities
| Modality | Extensions | OCR |
|----------|-----------|-----|
| PDF | `.pdf` | `--ocr` |
| Image | `.png .jpg .jpeg .jp2 .webp .gif .bmp` | built-in |
| Word | `.doc .docx` | — |
| Slides | `.ppt .pptx` | — |
| Sheet | `.xls .xlsx` | — |
| HTML | `.html` (Standard API, `MinerU-HTML` model) | — |
## Common options
```
INPUT... One or more files, a directory, or a URL
--output, -o Output directory (default: ./output)
--api auto | agent | standard (default: auto)
--model pipeline | vlm | MinerU-HTML (default: vlm)
--format docx | html | latex (repeatable; forces Standard API)
--lang OCR/document language (default: ch)
--ocr Enable OCR for scanned documents
--pages Page range, e.g. "1-10" or "2,4-6"
--workers, -w Concurrent submit/upload/download slots (default: 8)
--resume Skip inputs already parsed
--stdout Print Markdown to stdout
--json Print machine-readable status to stdout
--to SINK Deliver into a content tool (repeatable); --list-sinks to enumerate
--obsidian PATH Shortcut for --to obsidian with this vault
--engine cloud | local | auto (local/auto parse born-digital PDFs offline)
--split Split oversized PDFs past the page caps, parse parts, merge (needs pypdf)
--chunk Emit heading-aware RAG chunks (.chunks.json + --json)
--doctor Environment self-check and exit
```
## MCP server
Expose MinerU over MCP (zero-dependency stdio JSON-RPC) so an MCP host can call it:
```bash
python3 scripts/mineru_mcp.py
```
Tools: `mineru_parse`, `mineru_parse_to` (parse + deliver to sinks), `mineru_list_sinks`.
## Deliver into your tools (`--to`)
Parse once and push the Markdown into content tools via each one's official path:
```bash
python3 scripts/mineru.py paper.pdf --to obsidian --to notion --to feishu
```
Targets: `obsidian` `logseq` `siyuan` `notion` `linear` `yuque` `coda` `slack`
`feishu` `confluence` `onenote` `ticktick` `dingtalk` `airtable` `wecom` (all
zero-dependency), plus `roam` and `wps` via optional extras. Each reads its config
from env vars (run `--list-sinks`). Per-target auth, fidelity, and image notes:
[references/integrations.md](references/integrations.md).
## Output
```
output/
└── document-name/
├── document-name.md # clean Markdown
└── images/ # extracted figures (Standard API)
```
## Performance (real, measured)
End-to-end latency for the official demo PDF via the free Agent API:
**cold ≈ 14 s · warm ≈ 13 s** (submit → poll → download). Batches scale with
`--workers`. Numbers come from the no-mock live benchmark in `tests/test_live.py`.
## Testing
```bash
python3 -m pytest # fast unit suite (offline)
MINERU_LIVE=1 python3 -m pytest -m live -s # real API + benchmark (no mocks)
```
## API Reference
See [references/api_reference.md](references/api_reference.md). Official docs:
https://mineru.net/apiManage/docs · Token: https://mineru.net/apiManage/token
Files in this package (54)
- .gitignore 1 KB
- LICENSE 1 KB
- README.md 19 KB
- README_CN.md 13 KB
- SKILL.md 5 KB
- pyproject.toml 3 KB
- requirements.txt 1 KB
- assets/mineru-skill.jpg 1,135 KB
- references/api_reference.md 5 KB
- references/comparison.md 20 KB
- references/integrations.md 6 KB
- scripts/__init__.py 1 KB
- scripts/build_skill_package.py 2 KB
- scripts/chunking.py 3 KB
- scripts/local_engine.py 2 KB
- scripts/mineru.py 81 KB
- scripts/mineru_mcp.py 6 KB
- scripts/splitter.py 2 KB
- scripts/sinks/__init__.py 2 KB
- scripts/sinks/_http.py 3 KB
- scripts/sinks/_md.py 8 KB
- scripts/sinks/airtable.py 2 KB
- scripts/sinks/base.py 3 KB
- scripts/sinks/coda.py 2 KB
- scripts/sinks/confluence.py 2 KB
- scripts/sinks/dingtalk.py 2 KB
- scripts/sinks/feishu.py 5 KB
- scripts/sinks/linear.py 2 KB
- scripts/sinks/local.py 4 KB
- scripts/sinks/notion.py 5 KB
- scripts/sinks/onenote.py 2 KB
- scripts/sinks/roam.py 4 KB
- scripts/sinks/siyuan.py 4 KB
- scripts/sinks/slack.py 3 KB
- scripts/sinks/ticktick.py 2 KB
- scripts/sinks/wecom.py 2 KB
- scripts/sinks/wps.py 4 KB
- scripts/sinks/yuque.py 2 KB
- tests/conftest.py 1 KB
- tests/test_chunking.py 3 KB
- tests/test_doctor.py 2 KB
- tests/test_hardening.py 17 KB
- tests/test_live.py 4 KB
- tests/test_local_engine.py 4 KB
- tests/test_mcp.py 3 KB
- tests/test_mineru.py 41 KB
- tests/test_release_surfaces.py 3 KB
- tests/test_sinks_complex.py 16 KB
- tests/test_sinks_core.py 8 KB
- tests/test_sinks_docs.py 15 KB
- tests/test_sinks_enterprise.py 13 KB
- tests/test_sinks_roam.py 3 KB
- tests/test_sinks_wps.py 3 KB
- tests/test_splitter.py 5 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · nebutra/mineru-skill | 90 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| znlgis/opengis-skills | 100 | MIT |
| nebutra/mineru-skill | 100 | MIT |
| taianh20102011/skill-for-ai | 95 | MIT |
| opendatalab/mineru | 95 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 55291e2ce78d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100mineru-extract
Use the official MinerU (mineru.net) parsing API to convert a URL (HTML pages like WeChat articles, or direct PDF/Office/image links) into clean Markdown + structured outputs. Use when web_fetch/browser can’t access or extracts messy content, and you want higher-fidelity parsing… - 95doc-to-markdown
Doc to Markdown - convert Word (.doc/.docx) documents to clean Markdown using MinerU. Use when converting Word files to Markdown for reading or editing. - 100pdf-to-markdown
把 PDF、EPUB、DOCX、PPT 等原书或附件转成干净的 Markdown,含扫描件 OCR、测速选型、断点续跑与转换后清理。当用户要求「把 PDF 转成 md」「原书转 Markdown」「提取这本书的文字」「扫描件 OCR」「EPUB/DOCX 转 md」,或需要处理 OCR 出来的乱码、页眉、假标题时使用。 - 100unlimited-ocr-parse-document
Parse an image, PDF, or directory into markdown with LaTeX formulas, HTML/markdown tables, and per-block layout bounding boxes, using baidu/Unlimited-OCR locally — free, offline, no API key, no upload quota. Runs on Apple Silicon via MLX (~2.4 s/image, ~5 GB) or an NVIDIA GPU… - 100mineru-pdf-to-markdown
Convert PDFs and paper-like documents into Markdown with MinerU before reading or analyzing them. Use when AutoSciRub or another scientific agent needs to inspect local or remote PDFs, equations, tables, or scanned papers where direct PDF text extraction would be lossy; supports… - 100compdf-conversion-cli
MUST use for ANY PDF or image format conversion task — converting PDF and images (JPG/JPEG/PNG/BMP/TIFF/TIF/WEBP/JPEG2000) to 10 formats (Word, Excel, PPT, HTML, Image, TXT, JSON, Markdown, RTF, CSV) with AI layout analysis and OCR support. This skill takes PRIORITY over pdf,…