Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Extract PDF content to Markdown using MinerU API. Supports formulas, tables, OCR. Provides both local file and online URL parsing methods.
author
Community
version
1.0.0
homepage
https://mineru.net/
source
https://github.com/opendatalab/MinerU
env
[{"name":"MINERU_TOKEN","description":"MinerU API token for authentication (primary)","required":true},{"name":"MINERU_API_KEY","description":"Alternative API token if MINERU_TOKEN is not set","required":false},{"name":"MINERU_BASE_URL","description":"API base URL (optional, defaults to https://mineru.net/api/v4)","required":false,"default":"https://mineru.net/api/v4"}]
tools
{"required":[{"name":"curl","description":"HTTP client for API requests and file downloads"},{"name":"unzip","description":"Archive extraction tool for result ZIP files"}],"optional":[{"name":"jq","description":"JSON processor for enhanced parsing and security (recommended)"}]}
MinerU PDF Extractor
Extract PDF documents to structured Markdown using the MinerU API. Supports formula recognition, table extraction, and OCR.
Note: This is a community skill, not an official MinerU product. You need to obtain your own API key from MinerU.
๐ Skill Structure
mineru-pdf-extractor/
โโโ SKILL.md # English documentation
โโโ SKILL_zh.md # Chinese documentation
โโโ docs/ # Documentation
โ โโโ Local_File_Parsing_Guide.md # Local PDF parsing detailed guide (English)
โ โโโ Online_URL_Parsing_Guide.md # Online PDF parsing detailed guide (English)
โ โโโ MinerU_ๆฌๅฐๆๆกฃ่งฃๆๅฎๆดๆต็จ.md # Local parsing complete guide (Chinese)
โ โโโ MinerU_ๅจ็บฟๆๆกฃ่งฃๆๅฎๆดๆต็จ.md # Online parsing complete guide (Chinese)
โโโ scripts/ # Executable scripts
โโโ local_file_step1_apply_upload_url.sh # Local parsing Step 1
โโโ local_file_step2_upload_file.sh # Local parsing Step 2
โโโ local_file_step3_poll_result.sh # Local parsing Step 3
โโโ local_file_step4_download.sh # Local parsing Step 4
โโโ online_file_step1_submit_task.sh # Online parsing Step 1
โโโ online_file_step2_poll_result.sh # Online parsing Step 2
๐ง Requirements
Required Environment Variables
Scripts automatically read MinerU Token from environment variables (choose one):
# Option 1: Set MINERU_TOKENexport MINERU_TOKEN="your_api_token_here"# Option 2: Set MINERU_API_KEYexport MINERU_API_KEY="your_api_token_here"
Required Command-Line Tools
curl - For HTTP requests (usually pre-installed)
unzip - For extracting results (usually pre-installed)
Optional Tools
jq - For enhanced JSON parsing and security (recommended but not required)
If not installed, scripts will use fallback methods
Install: apt-get install jq (Debian/Ubuntu) or brew install jq (macOS)
Optional Configuration
# Set API base URL (default is pre-configured)export MINERU_BASE_URL=