Skip to main content

MCP-MinerU

PyPI version Python 3.10+ License

MCP server for document and image parsing via MinerU. Extract text, tables, and formulas from PDFs, screenshots, and scanned documents with MLX acceleration on Apple Silicon.

Installation

claude mcp add --transport stdio --scope user mineru -- \
  uvx --from mcp-mineru python -m mcp_mineru.server

This command installs and configures the server for all your Claude Code projects using uvx (no manual installation required).

Alternative methods: See Installation Guide for PyPI, source installation, and Claude Desktop configuration.

Features

  • Multiple format support: PDF, JPEG, PNG, and other image formats
  • OCR capabilities: Built-in text extraction from screenshots and photos
  • Table recognition: Preserves structure when extracting tables
  • Formula extraction: Converts mathematical equations to LaTeX
  • MLX acceleration: Optimized for Apple Silicon (M1/M2/M3/M4)
  • Multiple backends: Choose speed vs quality tradeoffs

Quick Start

Parse a PDF document

User: "Analyze the tables in research_paper.pdf"
Claude: [Calls parse_pdf tool] "The paper contains 3 tables..."

Extract text from a screenshot

User: "What does this screenshot say? image.png"
Claude: [Calls parse_pdf tool] "The screenshot contains..."

Check system capabilities

User: "Which backend should I use?"
Claude: [Calls list_backends tool] "Your system has Apple Silicon M4..."

For more examples, see Usage Examples.

Tools

parse_pdf

Parse PDF and image files to extract structured content as Markdown.

Parameters:

  • file_path (required): Absolute path to file (PDF, JPEG, PNG, etc.)
  • backend (optional): pipeline | vlm-mlx-engine | vlm-transformers
  • formula_enable (optional): Enable formula recognition (default: true)
  • table_enable (optional): Enable table recognition (default: true)
  • start_page (optional): Starting page for PDFs (default: 0)
  • end_page (optional): Ending page for PDFs (default: -1)

list_backends

Check system capabilities and get backend recommendations.

Returns: System information, available backends, and performance recommendations.

Supported Formats

  • PDF documents (.pdf)
  • JPEG images (.jpg, .jpeg)
  • PNG images (.png)
  • Other image formats (WebP, GIF, etc.)

Performance

Benchmarked on Apple Silicon M4 (16GB RAM):

  • pipeline: ~32s/page, CPU-only, good quality
  • vlm-mlx-engine: ~38s/page, Apple Silicon optimized, excellent quality
  • vlm-transformers: ~148s/page, highest quality, slowest

Documentation

Development

git clone https://github.com/TINKPA/mcp-mineru.git
cd mcp-mineru
uv pip install -e ".[dev]"

# Run tests
pytest

# Format code
black src/
ruff check src/

License

Apache License 2.0 - see LICENSE file for details.

Acknowledgments

Built on top of MinerU by OpenDataLab.

Metadata

Release files for mcp-mineru 0.1.3

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

Source distribution (sdist)

Source distribution for mcp-mineru 0.1.3
File Size Uploaded
mcp_mineru-0.1.3.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-mineru 0.1.3
File Interpreter ABI Platform
mcp_mineru-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / mcp_mineru-0.1.3.tar.gz

Download URL mcp_mineru-0.1.3.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bfe4eae7dc6b61ddfb64c71e1678efe3af1b85b6d8b447541cb5710ef06f30e1
BLAKE2b-256 checksum
How to use checksums
b92880cce0de08c2120903426fa899b40f5ba72b3509de1b203792ae6c7d2428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / mcp_mineru-0.1.3-py3-none-any.whl

Download URL mcp_mineru-0.1.3-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96ef14b2b487049ed35107907489d888bf46f4093e8942e305a3e195737ca340
BLAKE2b-256 checksum
How to use checksums
c49901580b0b89c92fa9a77121bfa9e144b4c5d8c444e4b5c1c10e3878794798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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