Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/mor-li/ccblog/pdf-parser-minerugit 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.svg" alt="Measured on agentmods" 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 | $0.00526 | $0.01942 |
| Opus 5 | $0.00263 | $0.00971 |
| Sonnet 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 4d 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.
- 4d 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 (134 stars, last pushed 1mo ago), licensed MIT. It adds 526 tokens to every session and 1,942 once invoked, about $0.0026 per session on Opus 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.
Other agents, from other repositories
exam-generator
Generates printable exam papers with answer keys in PDF format. Searches for real exam examples online. Triggered by "/generate-exam" command.
01-pdf-preprocessor
Converts a PDF academic paper into clean Markdown text suitable for downstream LLM processing. This is the entry point of the entire pipeline.
pdf-to-ppt
Maintain original text hierarchy (headings, subheadings, body text) Preserve image positions and aspect ratios.
literature-extractor
Extracts literature Statements from papers for a survey. Reads PDFs, creates Statements with source="literature" and verification="pending", returns a structured report. Never registers theme tags, never creates Warrants or Claims.
pdf_agent
::: aiagents4pharma.talk2scholars.agents.pdfagent.
paper2code/reader-agent
Reads academic paper content from PDF or URL. Handles chunked reading for large PDFs (>20 pages). Extracts structure, formulas, algorithms, and notation. Used by paper2code skill in STEP 2.