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 tohttp://42.51.34.112:8191MINERU_API_TOKEN: Optional token sent to the MinerU API asAuthorization: Bearer <token>MINERU_TIMEOUT: Optional request timeout in seconds. Default:1800MINERU_TRUST_ENV: Optional. Set totrueonly if you want the bridge to inherit local proxy variables. Default: disabled.MINERU_LOG_DIR: Optional. Directory used byclean_logs. Defaults to~/.mineru-selfhosted-mcp/logs
Exposed tools
mineru_health: check the remote MinerU APIparse_document: parse a single local file through the remote MinerU APIparse_documents: parse one or more local files through the remote MinerU APIparse_directory: parse all matching files in a directory through the remote MinerU APIget_ocr_languages: list common OCR language codes supported by MinerUclean_logs: remove local MCP log files older than a chosen number of days
Parsing result metadata
Parsing tools also return:
elapsed_secondsfile_countcompleted_countfailed_countprogress
progress is a stable completion summary for the current call rather than a live streaming progress feed.
Notes
- To get only
middle_json, setmiddle_json_only=truein parsing tools. middle_json_only=trueautomatically disables markdown in the MCP request wrapper.
Example MCP config
{
"mcpServers": {
"mineru-selfhosted": {
"command": "uvx",
"args": ["-y", "mineru-selfhosted-mcp"],
"env": {
"MINERU_API_TOKEN": "your_token"
}
}
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mineru_selfhosted_mcp-0.1.8.tar.gz.
File metadata
- Download URL: mineru_selfhosted_mcp-0.1.8.tar.gz
- Upload date:
- Size: 87.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56add97e79c62f57e59517207aedf9ae7fb2dabbb4ead0d1ed34b18a4fab3c04
|
|
| MD5 |
c91d5caeedf6b2f94c1a2c4bd7a7d3a7
|
|
| BLAKE2b-256 |
024ca5b4df26ff86e8aae438c255989a8129c8fdc523d146084a7df2597871b5
|
File details
Details for the file mineru_selfhosted_mcp-0.1.8-py3-none-any.whl.
File metadata
- Download URL: mineru_selfhosted_mcp-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1004a406ac2b77651f0ed9d24c130fa5296733198a1209bcc4e321f8c3f3504d
|
|
| MD5 |
2bed2aeca492fe254ca9d9f102aa9ef2
|
|
| BLAKE2b-256 |
b35bbc100a6d56478d21ac9918c35ed3e0183a9a42f80dc7a727795c339207dd
|