Skip to main content

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: an http:, https:, file:, or data: 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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hhc-doc-mineru-mcp 0.1.0
File Size Uploaded Provenance Actions
hhc_doc_mineru_mcp-0.1.0.tar.gz 5.2 kB Without provenance Details for hhc_doc_mineru_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hhc-doc-mineru-mcp 0.1.0
File Interpreter ABI Platform Actions
hhc_doc_mineru_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for hhc_doc_mineru_mcp-0.1.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / hhc_doc_mineru_mcp-0.1.0.tar.gz

Download URL hhc_doc_mineru_mcp-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
49b9994776cfc9d7601da824f2c7c452befb9de60a123b570aea37989f306882
BLAKE2b-256 checksum
How to use checksums
9fde4e7a77a07258d251d190729910c3f5b8536198771d00ef71795fa38670fe
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.1.0-py3-none-any.whl

Download URL hhc_doc_mineru_mcp-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
562e4d1be2e7084d86e800156e9354ba4f053dbf2b528fab5d7a5cfeb3b7cf19
BLAKE2b-256 checksum
How to use checksums
260874f3ff24ebd57e0a2f0ffb7e5cc79e6d26da2d3f8346eb2ba58879d6d686
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.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page