Skip to main content

MCP server for MinerU - Parse PDFs and images (OCR) with MLX acceleration on Apple Silicon

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_mineru-0.1.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_mineru-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_mineru-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_mineru-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mcp_mineru-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84bbde355c92e32df8052fb0a748b2d02c80ebabacf6efaf8fd75cb956d933c4
MD5 f9b37fffda0af83ca92673bd6650ea6e
BLAKE2b-256 7b62ff9cbd8b7d74bd5bd10e30e1538fdd939244921a8be962c70b6ed8f55178

See more details on using hashes here.

File details

Details for the file mcp_mineru-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_mineru-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mcp_mineru-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4886667e50f42ba8ac4f7acbf625d8010748df2ea47857986b8fadc7daadce9
MD5 fa0f34aa74c8d1beeef2406c059cea6c
BLAKE2b-256 1d942ef92648a56f0a76f74a68b5622efb21e2b8612a480f291ff635c7bd63a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page