MinerU MCP Server
The MinerU MCP Server enables document parsing and content extraction (text, tables, formulas) from various file formats using the MinerU API.
Core Capabilities:
Parse single documents (
mineru_parse): Submit PDFs, DOC/DOCX, PPT/PPTX, or images (PNG, JPG, JPEG) via URL, with options for model selection (pipelinefor speed orvlmfor 90%+ accuracy), page ranges, OCR (109 languages), formula/table recognition, and extra export formats (Markdown, DOCX, HTML, LaTeX)Batch processing (
mineru_batch): Submit up to 200 document URLs or local files in a single request with the same parsing optionsLocal file support: Upload files from disk for parsing, with original filenames preserved (spaces converted to underscores)
Monitor single task status (
mineru_status): Poll parsing progress by task ID and retrieve the download URL on completion; supports concise or detailed outputMonitor batch status (
mineru_batch_status): Track batch job results with pagination (limit/offset) and concise or detailed outputDownload results: Retrieve parsed content as named Markdown files
Limits: 200MB max file size, 600 pages max per file, up to 200 files per batch request.
Provides document parsing capabilities for JPEG images (along with PNG, PDF, DOC, DOCX, PPT, PPTX formats) through the MinerU API, with support for OCR, formula recognition, table recognition, and page range selection across 109 languages.
Click on "Install 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 MCP Serverparse this PDF from pages 1-5 using VLM model with OCR enabled"
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-mcp
MCP server for MinerU document parsing API — extract text, tables, and formulas from PDFs, DOCs, and images.
Features
VLM model — 90%+ accuracy for complex documents
Pipeline model — Fast processing for simple documents
Local file upload — Upload files from disk for batch parsing
Batch processing — Parse up to 200 documents at once
Download & rename — Extract markdown with original filenames
Page ranges — Extract specific pages only
109 language OCR support
Optimized for Claude Code — 73% token reduction vs alternatives
Related MCP server: LandingAI ADE MCP Server
Tools
Tool | Description |
| Parse a document URL |
| Check task progress, get download URL |
| Parse multiple URLs (max 200) |
| Get batch results with pagination |
| Upload local files for batch parsing |
| Download results as named markdown files |
Installation
Requires Node.js 18+ and a MinerU API key.
CLI Install (one-liner)
# Claude Code
claude mcp add mineru-mcp -e MINERU_API_KEY=your-api-key -- npx -y mineru-mcp
# Codex CLI (OpenAI)
codex mcp add mineru --env MINERU_API_KEY=your-api-key -- npx -y mineru-mcp
# Gemini CLI (Google)
gemini mcp add -e MINERU_API_KEY=your-api-key mineru npx -y mineru-mcpClaude Desktop
Add to your claude_desktop_config.json:
OS | Config path |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"mineru": {
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}
}
}VS Code
Add to .vscode/mcp.json (workspace) or open Command Palette > MCP: Open User Configuration (global):
{
"servers": {
"mineru": {
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}
}
}Note: VS Code uses
"servers"as the top-level key, not"mcpServers". Other VS Code forks (Trae, Void, PearAI, etc.) typically use this same format.
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"mineru": {
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json (Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json):
{
"mcpServers": {
"mineru": {
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}
}
}Cline
Open MCP Servers icon in Cline panel > Configure > Advanced MCP Settings, then add:
{
"mcpServers": {
"mineru": {
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}
}
}Cherry Studio
In Settings > MCP Servers > Add Server, set Type to STDIO, Command to npx, Args to -y mineru-mcp, and add environment variable MINERU_API_KEY. Or paste in JSON/Code mode:
{
"mineru": {
"name": "MinerU",
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
},
"isActive": true
}
}Witsy
In Settings > MCP Servers, add a new server with Type: stdio, Command: npx, Args: -y mineru-mcp, and set environment variable MINERU_API_KEY to your API key.
Codex CLI (TOML config)
Alternatively, edit ~/.codex/config.toml directly:
[mcp_servers.mineru]
command = "npx"
args = ["-y", "mineru-mcp"]
[mcp_servers.mineru.env]
MINERU_API_KEY = "your-api-key"Gemini CLI (JSON config)
Alternatively, edit ~/.gemini/settings.json directly:
{
"mcpServers": {
"mineru": {
"command": "npx",
"args": ["-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}
}
}Windows
On Windows, npx requires a shell wrapper. Replace "command": "npx" with:
{
"command": "cmd",
"args": ["/c", "npx", "-y", "mineru-mcp"],
"env": {
"MINERU_API_KEY": "your-api-key"
}
}For CLI tools on Windows:
claude mcp add mineru-mcp -e MINERU_API_KEY=your-api-key -- cmd /c npx -y mineru-mcp
codex mcp add mineru --env MINERU_API_KEY=your-api-key -- cmd /c npx -y mineru-mcpChatGPT
ChatGPT only supports remote MCP servers over HTTPS — local stdio servers like this one are not directly supported. You would need to deploy behind a public URL with HTTP transport.
Configuration
Environment Variable | Default | Description |
| (required) | Your MinerU API Bearer token |
|
| API base URL |
|
| Default model: |
Get your API key at mineru.net
Usage
Parse a single URL
mineru_parse({
url: "https://example.com/document.pdf",
model: "vlm", // optional: "pipeline" (default) or "vlm" (90% accuracy)
pages: "1-10,15", // optional: page ranges
ocr: true, // optional: enable OCR (pipeline only)
formula: true, // optional: formula recognition
table: true, // optional: table recognition
language: "en", // optional: language code
formats: ["html"] // optional: extra export formats
})Check task progress
mineru_status({
task_id: "abc-123",
format: "concise" // optional: "concise" (default) or "detailed"
})Concise output: done | abc-123 | https://cdn-mineru.../result.zip
Batch parse URLs
mineru_batch({
urls: ["https://example.com/doc1.pdf", "https://example.com/doc2.pdf"],
model: "vlm"
})Check batch progress
mineru_batch_status({
batch_id: "batch-123",
limit: 10, // optional: max results (default: 10)
offset: 0, // optional: skip first N results
format: "concise" // optional: "concise" or "detailed"
})Upload local files
mineru_upload_batch({
directory: "/path/to/pdfs", // scan directory for supported files
// OR
files: ["/path/to/doc1.pdf", "/path/to/doc2.pdf"], // explicit file list
model: "vlm", // optional
formula: true, // optional
table: true, // optional
language: "en", // optional
formats: ["html"] // optional
})Returns batch_id for tracking. Each file's original name is preserved via data_id (spaces become underscores).
Download results as markdown
mineru_download_results({
batch_id: "batch-123", // from mineru_upload_batch or mineru_batch
output_dir: "/path/to/output",
overwrite: false // optional: overwrite existing files
})Output filenames are derived from data_id (e.g., my_paper_title.md). Spaces in original filenames become underscores.
Typical local file workflow
mineru_upload_batch → mineru_batch_status (poll) → mineru_download_resultsSupported Formats
PDF, DOC, DOCX, PPT, PPTX
PNG, JPG, JPEG
Limits
Single file: 200MB max, 600 pages max
Daily quota: 2000 pages at high priority
Batch: max 200 files per request
License
MIT
Links
MinerU — Document parsing service
MinerU GitHub — Open source version
MCP Specification — Model Context Protocol
Available Tools
4 toolsmineru_batchC
Parse multiple URLs in one batch (max 200).
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | Array of document URLs | |
| model | No | pipeline=fast, vlm=90% accuracy | |
| ocr | No | Enable OCR (pipeline only) | |
| formula | No | Formula recognition | |
| table | No | Table recognition | |
| language | No | Language code: ch, en, etc | |
| formats | No | Extra export formats |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the batch size limit (max 200 URLs), which is useful, but fails to describe other critical behaviors such as rate limits, authentication needs, error handling, or what the output looks like (e.g., parsed content format). For a batch processing tool with no annotation coverage, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise—a single sentence that efficiently conveys the core functionality and a key constraint (max 200 URLs). It's front-loaded with the main action and has zero wasted words, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (7 parameters, batch processing) and lack of annotations or output schema, the description is incomplete. It doesn't explain the output format, error conditions, or behavioral nuances like processing order or concurrency. For a tool with no structured output guidance, more context is needed to help the agent use it effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, meaning all parameters are documented in the schema itself. The description adds no additional parameter information beyond what's in the schema (e.g., it doesn't explain URL formats, model trade-offs beyond schema hints, or format details). With high schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate but doesn't detract either.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: parsing multiple URLs in a batch with a maximum limit of 200. It specifies the verb ('parse') and resource ('URLs'), but doesn't explicitly differentiate from sibling tools like mineru_parse (which might handle single URLs) or mineru_batch_status (which likely checks batch status). This makes it clear but not fully sibling-distinct.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It mentions a batch size limit but doesn't compare it to mineru_parse (for single URLs) or mineru_batch_status (for status checks), nor does it specify prerequisites or exclusions. This leaves the agent without clear usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
mineru_batch_statusA
Get batch results. Supports pagination for large batches.
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | Batch ID from mineru_batch | |
| limit | No | Max results to return | |
| offset | No | Skip first N results | |
| format | No | Output format | concise |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions pagination support, which is a key behavioral trait, but lacks details on rate limits, authentication needs, error handling, or what the results contain. The description doesn't contradict any annotations, but it's insufficient for a mutation or complex read operation without more context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the core purpose and followed by a key behavioral note on pagination. Every word earns its place with zero waste, making it highly efficient and easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description is incomplete for a tool with 4 parameters and potential complexity in batch processing. It covers the basic purpose and pagination but misses details on return values, error cases, or integration with sibling tools. This is adequate as a minimum viable description but has clear gaps for effective agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all parameters. The description adds no additional meaning beyond implying that 'batch_id' comes from 'mineru_batch' and that pagination is supported via 'limit' and 'offset'. This matches the baseline score of 3 when the schema does the heavy lifting, with minimal value added by the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and resource 'batch results', making the purpose understandable. However, it doesn't explicitly differentiate from sibling tools like 'mineru_status' or 'mineru_batch', which might have overlapping functionality. The mention of 'pagination for large batches' adds useful context but doesn't fully distinguish it from potential alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for retrieving results from batches, particularly large ones requiring pagination, but doesn't provide explicit guidance on when to use this tool versus siblings like 'mineru_status' or 'mineru_batch'. No alternatives, prerequisites, or exclusions are mentioned, leaving the agent to infer context from tool names alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
mineru_parseB
Parse a document URL. Returns task_id to check status.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Document URL (PDF, DOC, PPT, images) | |
| model | No | pipeline=fast, vlm=90% accuracy | |
| pages | No | Page range: 1-10,15 or 2--2 | |
| ocr | No | Enable OCR (pipeline only) | |
| formula | No | Formula recognition | |
| table | No | Table recognition | |
| language | No | Language code: ch, en, etc | |
| formats | No | Extra export formats |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that the tool returns a 'task_id to check status', which indicates asynchronous processing and hints at a follow-up step, adding some context beyond basic parsing. However, it lacks details on rate limits, authentication needs, error handling, or what the parsing output entails (e.g., structured data, text extraction), leaving gaps in behavioral understanding.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with just two sentences: 'Parse a document URL. Returns task_id to check status.' It is front-loaded with the core purpose and efficiently conveys key behavioral information (asynchronous nature) without any wasted words, making it highly effective for its length.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of 8 parameters and no output schema, the description is minimally complete. It states the purpose and hints at asynchronous behavior, but lacks details on output format (e.g., what parsing yields), error cases, or integration with sibling tools. With no annotations and an output schema missing, it provides basic context but leaves significant gaps for a tool with multiple configuration options.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, providing detailed explanations for all 8 parameters (e.g., 'url' for document URL, 'model' with enum values and speed/accuracy trade-offs). The description adds no additional parameter semantics beyond what the schema already documents, so it meets the baseline of 3 for high schema coverage without compensating value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Parse a document URL') and the resource ('document'), which provides a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'mineru_batch' or 'mineru_status', which likely handle batch processing or status checking respectively, so it misses full sibling differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It mentions returning a 'task_id to check status', which implies asynchronous processing, but doesn't specify when to choose this over 'mineru_batch' for multiple documents or how it relates to 'mineru_status' for checking results. No explicit when/when-not or alternative usage is stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
mineru_statusB
Check task progress. Returns download URL when done.
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID from mineru_parse | |
| format | No | Output format | concise |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the tool returns a download URL when done, which adds some context about output behavior. However, it lacks details on error handling, rate limits, authentication needs, or what happens during task processing (e.g., polling frequency, timeout). For a status-checking tool with zero annotation coverage, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise and front-loaded with two clear sentences: 'Check task progress. Returns download URL when done.' Every word earns its place, with no wasted information, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (status checking with two parameters) and no output schema, the description provides basic purpose and outcome but lacks completeness. It doesn't cover error cases, return formats beyond the URL, or detailed behavioral traits. With no annotations and incomplete behavioral context, it's adequate but has clear gaps for effective agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters (task_id and format) with descriptions and enum values. The description adds no additional meaning beyond what the schema provides, such as explaining parameter interactions or usage nuances. Baseline 3 is appropriate when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose as 'Check task progress' with the specific outcome 'Returns download URL when done.' It uses a specific verb ('Check') and identifies the resource ('task progress'), but doesn't explicitly differentiate from sibling tools like mineru_batch_status, which might have similar functionality.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by mentioning 'Task ID from mineru_parse,' suggesting this tool follows mineru_parse. However, it doesn't provide explicit guidance on when to use this vs. alternatives like mineru_batch_status or mineru_batch, nor does it specify exclusions or prerequisites beyond the task_id parameter.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v1.0.0- First observed
mineru_batch - First observed
mineru_batch_status - First observed
mineru_parse - First observed
mineru_status
TDQS
Scored across 4 tools
Each tool has a distinct and clear purpose: mineru_batch initiates batch parsing, mineru_batch_status checks batch results, mineru_parse initiates single URL parsing, and mineru_status checks single task progress. There is no overlap in functionality, making it easy for an agent to select the correct tool.
All tool names follow a consistent 'mineru_' prefix with descriptive suffixes (batch, batch_status, parse, status) in snake_case. This pattern is uniform across all tools, enhancing predictability and readability.
With 4 tools, the server is well-scoped for its purpose of parsing URLs and checking statuses. Each tool serves a specific role in the workflow, and there are no extraneous or missing tools for this focused domain.
The tool set provides complete coverage for the URL parsing domain: initiation of single and batch parsing, and status checking for both. There are no gaps in the CRUD/lifecycle, allowing agents to handle all necessary operations without dead ends.
Maintenance
Related MCP Connectors
Parse PDF/Word/PPT/HTML to Markdown; tables as JSON, image extraction, RAG chunking, page ranges.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Turn PDFs and images into typed fields — invoices, receipts, IDs and custom models — via Mindee OCR.
Turn documents into structured data: parse, extract, classify, split, and fill PDF forms.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables batch conversion of PDF files to HTML format using Mineru's official PDF parsing API. Supports automatic file scanning, customizable parsing parameters, and organized output with renamed image assets.-
- FlicenseNot gradedqualityDmaintenanceEnables extraction of text, tables, and structured data from PDFs, images, and office documents using LandingAI's Agentic Document Extraction API. Supports both direct parsing and background job processing for large files with privacy-focused processing.-
- FlicenseNot 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.1-
- 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.210MIT