MCPInstall

pdf-converter

PDF converter powered by MinerU — convert PDF to Word, Markdown, HTML, LaTeX, or plain text. Also handles image-to-text OCR, scanned document recognition, and Office formats (DOCX, PPTX, Excel). Supports 80+ languages. Use this skill when the user wants to convert, extract, read, parse, or summarize any PDF or document. Also applies when the user shares a PDF file or link and asks about its content, needs tables or formulas extracted, wants PDF OCR, or says things like 'turn this into a doc' or 'what does this paper say'.

Installs
9.6K
Last 24h
+12
Trending rank
#8092
Security
Fail

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/tanis90/pdf-converter-mineru --skill pdf-converter
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads pdf-converter automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

Security audits

Independent scans of the skill's instructions and bundled files.

Gen Agent Trust Hub FailHIGH ·This skill facilitates document conversion through the MinerU service. It includes instructions for the agent to install a command-line tool by executing remote scripts from an external domain and transmits user documents to a third-party API for processing.
Socket PassNo alerts
Snyk FailCRITICAL ·Risk: CRITICAL · 2 issues
ZeroLeaks PassLOW ·1 finding · Score: 82/100

SKILL.md

The instructions your agent reads when the skill is triggered.

Document to Markdown

Convert PDF, images, Office docs, and more to clean Markdown using the MinerU Open API CLI. No API key needed for basic use.

Language Rule

Reply to the user in the SAME language they use. This is non-negotiable.

Core Workflow

Extraction is often just the first step. The typical flow is:

  1. Extract — Use mineru-open-api to convert the document to Markdown
  2. Read & Process — Help the user with what they actually need

MinerU outputs raw Markdown — it doesn't interpret or restructure the content. If the user asks to "extract the tables", "summarize the paper", or "find the key findings", you need to read the output and do that work yourself. MinerU handles the OCR and layout; you handle the understanding.

Use -o to save to a file when the user wants persistent output (conversion, batch processing). Skip -o and read stdout directly when the content is consumed immediately (summarization, Q&A).

For example:

  • "帮我把这个PDF转成markdown" → use -o to save to file, done
  • "提取这篇论文里的表格" → use -o to save, then read the file and pull out the tables
  • "这篇论文讲了什么" → stdout is fine, read the output directly and summarize
  • "把PDF里的参考文献整理出来" → stdout or -o, then parse the references section

Page Range Extraction Rule

When --pages is used with -o pointing to a directory, the CLI derives the output filename solely from the input file name. This means multiple page-range extracts of the same file will overwrite each other.

CRITICAL: You MUST avoid this by converting the output path to an explicit file path that includes the page range.

# ❌ WRONG — same file overwrites itself
mineru-open-api flash-extract report.pdf --pages 1-20  -o ./out/
mineru-open-api flash-extract report.pdf --pages 21-40 -o ./out/

# ✅ CORRECT — unique filenames per chunk
mineru-open-api flash-extract report.pdf --pages 1-20  -o ./out/report_p1-20.md
mineru-open-api flash-extract report.pdf --pages 21-40 -o ./out/report_p21-40.md

Whenever the user asks to split a document by page ranges (e.g., "extract pages 1-20", "split into chunks"), always generate -o as an exact file path with the _p{range} suffix.

User saysYou generate
"把 report.pdf 每20页拆分成多个文件"-o ./out/report_p1-20.md, -o ./out/report_p21-40.md...
"extract pages 1-10 and 11-20"-o ./out/report_p1-10.md, -o ./out/report_p11-20.md

Two Extraction Modes

flash-extract — Fast, no auth

Best for quick reads. No API key, no setup.

mineru-open-api flash-extract report.pdf                               # to stdout (for immediate consumption)
mineru-open-api flash-extract report.pdf -o ./output/                  # save to file
mineru-open-api flash-extract report.pdf -o ./output/report_p1-10.md   # page range (explicit file path)
mineru-open-api flash-extract report.pdf -o ./output/ --language en    # language hint
mineru-open-api flash-extract https://example.com/paper.pdf            # URL input

Supports: PDF, images (PNG, JPG, WebP...), DOCX, PPTX, Excel (XLS, XLSX) Limits: 10 MB / 20 pages per document Output: Markdown only — images, tables, and formulas may become placeholders

Use flash-extract as the default unless the user needs more.

extract — Precision, auth required

Use when the user needs full-fidelity output: preserved images, accurate tables, LaTeX formulas, or non-Markdown formats. Requires a token via mineru-open-api auth.

mineru-open-api extract report.pdf                              # to stdout
mineru-open-api extract report.pdf -o ./out/                    # save with all assets
mineru-open-api extract report.pdf -o ./out/ -f md,docx         # multiple output formats
mineru-open-api extract report.pdf -o ./out/report_p1-20.md --pages 1-20  # page range (explicit file path)
mineru-open-api extract report.pdf -o ./out/ --ocr          # force OCR for scanned docs
mineru-open-api extract *.pdf -o ./results/                 # batch processing
mineru-open-api extract --list files.txt -o ./results/      # batch from file list

Supports: PDF, images, DOC, DOCX, PPT, PPTX, HTML Limits: 200 MB / 600 pages per document Output formats: md, json, html, latex, docx (comma-separated with -f) Features: formula recognition (on by default), table recognition (on by default), OCR toggle, batch mode, model selection (vlm, pipeline, html)

If the user hasn't authenticated yet, guide them to run mineru-open-api auth first.

When to Use Which

SituationMode
"What does this PDF say?"flash-extract
Quick summary or content scanflash-extract
Need images/tables/formulas preservedextract
Document > 10 MB or > 20 pagesextract
Batch converting multiple filesextract
Need DOCX/LaTeX/HTML outputextract
Scanned document needs OCRextract with --ocr

Language Support

Default is ch (Chinese + English). Use --language to specify others. Common codes:

LanguageCodeLanguageCode
Chinese + EnglishchJapanesejapan
EnglishenKoreankorean
FrenchfrChinese Traditionalchinese_cht
GermandeSpanishes
RussianruArabicar
PortugueseptHindihi
ItalianitVietnamesevi
ThaithTurkishtr

80+ languages supported in total — use the PaddleOCR language code for any language not listed above.

Data Flow

Both commands send the document to MinerU's API (mineru.net) for processing. This is a stateless API call with no persistent storage. MinerU is open-source by OpenDataLab (Shanghai AI Lab): https://github.com/opendatalab/MinerU

Troubleshooting

  • Debug API requests: Add -v flag to see HTTP request/response details (e.g., mineru-open-api flash-extract report.pdf -v)
  • CLI not found: Install via one of:
    • npm i -g mineru-open-api (Node.js)
    • uv tool install mineru-open-api (Python/uv)
    • macOS/Linux: curl -fsSL https://cdn-mineru.openxlab.org.cn/open-api-cli/install.sh | sh
    • Windows: irm https://cdn-mineru.openxlab.org.cn/open-api-cli/install.ps1 | iex
  • Auth error on extract: Run mineru-open-api auth to set up your token
  • Timeout on large files: Increase with --timeout 600 (seconds)
  • Wrong language output: Set --language explicitly (e.g., --language en for English docs)

FAQ

What does the pdf-converter skill do?

PDF converter powered by MinerU — convert PDF to Word, Markdown, HTML, LaTeX, or plain text. Also handles image-to-text OCR, scanned document recognition, and Office formats (DOCX, PPTX, Excel). Supports 80+ languages. Use this skill when the user wants to convert, extract, read, parse, or summarize any PDF or document. Also applies when the user shares a PDF file or link and asks about its content, needs tables or formulas extracted, wants PDF OCR, or says things like 'turn this into a doc' or 'what does this paper say'.

How do I install pdf-converter?

Run npx skills add https://github.com/tanis90/pdf-converter-mineru --skill pdf-converter in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/pdf-converter/ (personal) or .claude/skills/pdf-converter/ (project).

Which AI agents can use pdf-converter?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is pdf-converter safe to install?

Security partners have reviewed it: Gen Agent Trust Hub flagged risks; Socket passed; Snyk flagged risks; ZeroLeaks passed. As with any skill, read the SKILL.md and bundled scripts before installing.

Who maintains pdf-converter?

It is published by tanis90 in tanis90/pdf-converter-mineru. It has 9,605 recorded installs.

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs