mineru-docparse-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mineru-docparse-mcp Convert this PDF to Markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mineru-docparse-mcp
MCP Server that converts Word / PDF / PPT / Excel to Markdown, powered by the MinerU DocParse API.
This project is a protocol wrapper — it does not parse documents itself. You need a running MinerU DocParse service, defaulting to
http://localhost:8000. See the MinerU repository for deployment instructions.
Installation
pip install mineru-docparse-mcpRelated MCP server: MCP Document Parse Tool
Setup with Claude Code
The output directory is a server-side setting (not a per-request parameter), so MINERU_OUTPUT_DIR must be configured in advance:
{
"mcpServers": {
"mineru": {
"command": "uvx",
"args": ["mineru-docparse-mcp"],
"env": {
"MINERU_API_URL": "http://localhost:8000",
"MINERU_OUTPUT_DIR": "/Users/yourname/Documents/mineru-output"
}
}
}
}Once configured, Claude will automatically invoke the tools below. All parsed results are saved to MINERU_OUTPUT_DIR.
Tools
Tool | Description |
| Convert PDF/Word/PPT/Excel to Markdown, saved to disk |
| Check MinerU service health |
Output format: Results are saved exactly as returned by MinerU. When response_format_zip=true (the default) output is saved as .zip; when false as .json. File name matches the source file — if a file with the same name already exists, a timestamp is appended to avoid overwriting.
API Parameters
mineru_parse_document mirrors the MinerU /file_parse endpoint:
Parameter | Type | Default | Description |
| string | required | Local document path (absolute or relative) |
| enum |
| Parsing backend, see "backend options" below |
| string[] |
| OCR language list, only for |
|
|
|
|
|
|
| PDF parsing method for |
| bool |
| Enable formula parsing (LaTeX) |
| bool |
| Enable table parsing |
| bool |
| Enable image/chart analysis (VLM/hybrid backends only) |
| string | null |
| OpenAI-compatible server URL, required for |
| bool |
| Include Markdown content in response |
| bool |
| Include intermediate JSON in response |
| bool |
| Include raw model output JSON in response |
| bool |
| Include content list JSON in response |
| bool |
| Include extracted images in response |
| bool |
| Return results as ZIP (false returns JSON) |
| bool |
| Include processed original file in ZIP ( |
| bool |
| Defer final Markdown/content-list generation to the client |
| int |
| Starting page (0-indexed) |
| int |
| Ending page (0-indexed) |
Backend Options
Value | Description |
| General-purpose, multilingual, no hallucination |
| Local compute, high accuracy, Chinese/English only |
| Remote compute (OpenAI-compatible), high accuracy, Chinese/English only |
| Local compute, hybrid parsing, multilingual, tune with |
| Primarily remote compute + light local, hybrid parsing, multilingual |
Language Options (lang_list)
ch (Chinese/English/Japanese/Traditional/Latin), ch_server, korean, ta (Tamil), te (Telugu), ka (Kannada), th (Thai), el (Greek), arabic, east_slavic, cyrillic, devanagari. Only applies to the pipeline backend; ignored by others.
Server Configuration (Environment Variables)
These are server startup settings — configure them in the env field of your MCP config, not as per-request parameters.
Variable | Default | Description |
|
| MinerU service URL |
| none (required) | Directory for parsed results (absolute or relative paths) |
|
| Request timeout in seconds — increase for large files |
|
| Transport mode: |
|
| Listen address (HTTP mode only); set to |
|
| Listen port (HTTP mode only) |
Remote Deployment (Optional)
To run the MCP server on a dedicated machine accessible by multiple clients, use HTTP mode:
MCP_TRANSPORT=streamable-http MCP_PORT=8001 MINERU_OUTPUT_DIR=/data/mineru-output uvx mineru-docparse-mcpClients connect via URL:
{
"mcpServers": {
"mineru": {
"type": "streamableHttp",
"url": "http://<server-address>:8001/mcp"
}
}
}Omitting MCP_TRANSPORT defaults to local stdio mode (the "Setup with Claude Code" flow above), which is sufficient for personal use.
FAQ
"MINERU_OUTPUT_DIR environment variable not configured" — This is a required server setting, not an API parameter. Set it in the env field of your MCP config and restart the MCP connection.
"Cannot connect to MinerU service" — Verify MINERU_API_URL is reachable: curl $MINERU_API_URL/health. In stdio mode, environment variables must be set in the MCP config env field; shell export won't work.
Large files timeout — Increase MINERU_API_TIMEOUT or narrow the start_page_id/end_page_id range to parse in batches.
Want JSON instead of ZIP — Set response_format_zip to false; results will be saved as .json instead of .zip.
License
MIT
Available Tools
2 toolsmineru_health_checkA
检查 MinerU DocParse API 服务是否正常运行。
Inputs: no named parameters. Returns: object
mineru_parse_documentC
将 PDF · DOCX · PPTX · XLSX · 图片 · 网页转为结构化 Markdown / JSON
上传文件到 MinerU DocParse API 进行内容提取
Inputs: params (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools serve completely distinct purposes: one checks API health, the other parses documents. There is no overlap or ambiguity.
Both tools follow a consistent 'mineru_verb_noun' pattern using snake_case, which is clear and predictable.
Only two tools exist, which is borderline low for a typical server. However, for a focused document parsing service with a health check, it may be acceptable.
The set covers the essential operations for the server's purpose: health check and document parsing. Minor gaps like format listing or status checking are absent but workable.
Maintenance
Related MCP Connectors
Parse PDF/Word/PPT/HTML to Markdown; tables as JSON, image extraction, RAG chunking, page ranges.
Document to Markdown MCP server: PDF, Word, PowerPoint, Excel and HTML, with OCR for large files.
Convert PDF, DOCX, XLSX and 25 other formats to clean Markdown for LLMs and RAG. No key or account.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables document parsing through the Mineru API with support for multiple formats (PDF, DOC, DOCX, PPT, images), OCR, formula recognition, and table extraction in multiple languages.1ISC
- AlicenseAqualityDmaintenanceEnables parsing and extraction of content from various document formats (PDF, Word, Excel, PowerPoint) into Markdown format using the Niutrans document API.15MIT
- AlicenseAqualityDmaintenanceParses various document formats (PDF, Word, Excel, PowerPoint) into Markdown content using NiuTrans API, enabling extraction and reading of document text through natural language interactions.19MIT
- AlicenseAqualityDmaintenanceExposes the MinerU document-to-markdown API as MCP tools for converting PDF, Word, PPT, and images into Markdown. It supports both local and remote file processing with integrated OCR capabilities for multiple languages.214 PyPI10MIT