Skip to main content

MCP bridge for a self-hosted MinerU API

Project description

mineru-selfhosted-mcp

mineru-selfhosted-mcp exposes a self-hosted MinerU service as an MCP server.

It is designed for setups where:

  • MinerU is deployed on a remote GPU server
  • Claude Desktop / Cursor / other MCP clients run elsewhere
  • The client should only run a lightweight MCP bridge locally

Environment variables

  • MINERU_BASE_URL: Optional. Base URL of your self-hosted MinerU API. Defaults to http://42.51.34.112:8191
  • MINERU_API_TOKEN: Optional token sent to the MinerU API as Authorization: Bearer <token>
  • MINERU_TIMEOUT: Optional request timeout in seconds. Default: 1800
  • MINERU_TRUST_ENV: Optional. Set to true only if you want the bridge to inherit local proxy variables. Default: disabled.
  • MINERU_LOG_DIR: Optional. Directory used by clean_logs. Defaults to ~/.mineru-selfhosted-mcp/logs

Exposed tools

  • mineru_health: check the remote MinerU API
  • parse_document: parse a local file through the remote MinerU API
  • get_ocr_languages: list common OCR language codes supported by MinerU
  • clean_logs: remove local MCP log files older than a chosen number of days

Example MCP config

{
  "mcpServers": {
    "mineru-selfhosted": {
      "command": "uvx",
      "args": ["mineru-selfhosted-mcp"],
      "env": {
        "MINERU_API_TOKEN": "your_token"
      }
    }
  }
}

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

mineru_selfhosted_mcp-0.1.3.tar.gz (83.1 kB view details)

Uploaded Source

Built Distribution

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

mineru_selfhosted_mcp-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file mineru_selfhosted_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: mineru_selfhosted_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 83.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for mineru_selfhosted_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5ccfc38793533e181636054105a59ef6931cb6cf9931231cd5b5cbacfc3c3773
MD5 1420ed9884ea55788e5595ce214af644
BLAKE2b-256 2d32a088adafcc4cace8e4a06c7f53a52992e3bf04d416957ba318991e4a579c

See more details on using hashes here.

File details

Details for the file mineru_selfhosted_mcp-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mineru_selfhosted_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 96242f8f0df5c1f61c88432037ea8bd98e7d3c92a6ed9f3444fbf568e8a32aab
MD5 01003852ff3238ae938953c7d66f22cc
BLAKE2b-256 abf4f0c7e956f5cd80a1c1a17ee29b7913ee4052cebe12a27e96db77379d186d

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