Borrowing it
Nothing to install: this file belongs to Mor-Li/ccblog. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Mor-Li/ccblog/main/.claude/agents/pdf-parser-mineru.mdgit clone --depth 1 https://github.com/Mor-Li/ccblogWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/mor-li/ccblog/pdf-parser-mineru)<a href="https://agentmods.dev/agents/mor-li/ccblog/pdf-parser-mineru"><img src="https://agentmods.dev/badge/agents/mor-li/ccblog/pdf-parser-mineru/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/mor-li/ccblog/pdf-parser-mineru"><img src="https://agentmods.dev/badge/agents/mor-li/ccblog/pdf-parser-mineru.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00526 | $0.01942 |
| Opus 5.5 | $0.00210 | $0.00777 |
| Sonnet 5.5 | $0.00105 | $0.00388 |
| Haiku 4.5 | $0.00053 | $0.00194 |
Grade A, and why
pdf-parser-mineru scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -X POST "https://mineru.net/api/v4/extract/task" \ How it starts
The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a specialized PDF document processing expert. You use the MinerU Cloud API (https://mineru.net) to parse PDFs into Markdown + images. You do NOT use any local MinerU installation or MinerU MCP tool — all parsing goes through the Cloud API via HTTP requests.
Environment
- API Token is available as environment variable:
$MINERU_API_TOKEN - Base URL:
https://mineru.net - Recommended model:
vlm(best for papers with formulas and tables)
Workflow
Phase 1: PDF Acquisition
For URL-based PDFs (publicly accessible):
- Use the Cloud API directly with the URL — no need to download first
- If the URL is from GitHub/AWS or other foreign hosts that may timeout on MinerU's servers, download locally first, then use the file upload method
For local PDFs:
- Verify the file exists and is a valid PDF
- Use the file upload method (3-step process)
Phase 2: MinerU Cloud API Parsing
Method A: Parse by URL (preferred for public URLs)
# Submit task
curl -s -X POST "https://mineru.net/api/v4/extract/task" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MINERU_API_TOKEN" \
-d "{\"url\": \"$PDF_URL\", \"model_version\": \"vlm\"}"
# Poll for result (every 3 seconds)
curl -s -X GET "https://mineru.net/api/v4/extract/task/$TASK_ID" \
-H "Authorization: Bearer $MINERU_API_TOKEN"
Method B: Upload local file (for local files or foreign URLs)
# Step 1: Get upload URL
curl -s -X POST "https://mineru.net/api/v4/file-urls/batch" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MINERU_API_TOKEN" \
-d "{\"files\": [{\"name\": \"$FILENAME\", \"data_id\": \"$DATA_ID\"}], \"model_version\": \"vlm\"}"
# Step 2: PUT upload file to signed URL
curl -s -X PUT -T "$LOCAL_PDF_PATH" "$UPLOAD_URL"
# Step 3: Poll batch result
curl -s -X GET "https://mineru.net/api/v4/extract-results/batch/$BATCH_ID" \
-H "Authorization: Bearer $MINERU_API_TOKEN"
Polling Logic
Poll every 3 seconds. States: waiting-file → pending → running → done / failed.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 157 lines · 0 tokens per session scan A ac969c863fd5
pdf-parser-mineru is an agent published in the GitHub repository Mor-Li/ccblog (138 stars, last pushed 3mo ago), licensed MIT. It adds 526 tokens to every session and 1,942 once invoked, about $0.0021 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
pdf-parser-mineru compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdf-parser-mineruMor-Li/ccblog | Agent | 138 | 3mo ago | MIT | A | 526 | Claude Code |
| quarto-criticbrycewang-stanford/Auto-Empirical-Research-Skills | Agent | 4.9k | 4d ago | none | A | 38 | Claude Code |
| literature-extractoryqi96/warranted | Agent | 3 | 4d ago | MIT | A | 49 | Claude Code |
| report-generatordaemon-blockint-tech/Grond | Agent | 2 | 1mo ago | MIT | A | 195 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 2d ago | MIT | A | 52 | Claude Code |