hhc-doc-mineru-mcp
An MCP server that converts documents to LLM-ready markdown using MinerU — with LaTeX formulas, tables, and extracted images.
Unlike lighter converters (e.g. MarkItDown), MinerU runs a real parsing pipeline (layout detection + OCR + formula recognition), so it handles formulas and scanned/image content properly.
Provenance. This is a thin MCP wrapper around OpenDataLab MinerU (MinerU Open Source License, based on Apache 2.0). It does not repackage MinerU's code — MinerU is a runtime dependency.
Install
pip install hhc-doc-mineru-mcp
Requires Python 3.11–3.14. The first parse downloads MinerU's models (~1–2 GB, from ModelScope) and caches them.
Run the STDIO server (default):
hhc-doc-mineru-mcp
Tool
convert_to_markdown(uri, tier="standard")uri: anhttp:,https:,file:, ordata:URI, or a local file path.tier:flash(fast, no OCR) |basic(CPU, light) |standard(recommended) |advanced(best, uses a VLM).- Returns markdown. Formulas become LaTeX, tables become markdown/HTML, and embedded images are saved to files and referenced (not inlined as base64).
Extracted images are saved under ~/.cache/hhc-doc-mineru-mcp/ (override with
$HH_DOC_MINERU_OUT).
Use via npx (no uvx needed)
The companion npm package hhc-doc-mineru-mcp is a thin launcher: it finds a
local Python 3.11+, builds a cached venv, installs this package, and runs the
server. Register with:
{
"mcpServers": {
"hhc-doc-mineru": {
"command": "npx",
"args": ["-y", "hhc-doc-mineru-mcp"]
}
}
}
Requirements: Node.js + a local Python 3.11+. First run is slow (installs MinerU + downloads models); later runs are fast.
Tiers (MinerU)
| Tier | Best for |
|---|---|
flash |
quick extraction, born-digital docs, no OCR |
basic |
CPU-friendly baseline |
standard |
recommended — best quality/cost balance, good formulas |
advanced |
hard cases (uses a VLM) |
License
MIT (this wrapper). See LICENSE. MinerU is under its own license.
Metadata
Release files for hhc-doc-mineru-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hhc_doc_mineru_mcp-0.2.0.tar.gz | 5.7 kB | Without provenance | Details for hhc_doc_mineru_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hhc_doc_mineru_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for hhc_doc_mineru_mcp-0.2.0-py3-none-any.whl |
Total release size: 12.8 kB
Release files / hhc_doc_mineru_mcp-0.2.0.tar.gz
| Download URL | hhc_doc_mineru_mcp-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0955f530ad055c6fd3fffe84de1000a12e3142d9bdfa167d68bfb68f4ce8108
|
|
BLAKE2b-256 checksum How to use checksums |
243cd5321397889047327a386eddd15d59784013fe4e3217029662bcd6cc7416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / hhc_doc_mineru_mcp-0.2.0-py3-none-any.whl
| Download URL | hhc_doc_mineru_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
875f790a651c897b3f0d1f3c0a65dbb2cf3ab5d57306a19091328477c5b33f15
|
|
BLAKE2b-256 checksum How to use checksums |
a5f922c5d339997d0813b618005e5d30175cfb6c0894c4a5bf2c67fb4394d7ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for hhc-doc-mineru-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.