Skip to main content
Glama

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

mineru_parse

Parse a document URL

mineru_status

Check task progress, get download URL

mineru_batch

Parse multiple URLs (max 200)

mineru_batch_status

Get batch results with pagination

mineru_upload_batch

Upload local files for batch parsing

mineru_download_results

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-mcp

Claude Desktop

Add to your claude_desktop_config.json:

OS

Config path

macOS

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

Linux

~/.config/Claude/claude_desktop_config.json

{
  "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-mcp

ChatGPT

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

MINERU_API_KEY

(required)

Your MinerU API Bearer token

MINERU_BASE_URL

https://mineru.net/api/v4

API base URL

MINERU_DEFAULT_MODEL

pipeline

Default model: pipeline or vlm

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_results

Supported 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

Available Tools

4 tools
mineru_batchC

Parse multiple URLs in one batch (max 200).

ParametersJSON Schema
NameRequiredDescriptionDefault
urlsYesArray of document URLs
modelNopipeline=fast, vlm=90% accuracy
ocrNoEnable OCR (pipeline only)
formulaNoFormula recognition
tableNoTable recognition
languageNoLanguage code: ch, en, etc
formatsNoExtra export formats

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
batch_idYesBatch ID from mineru_batch
limitNoMax results to return
offsetNoSkip first N results
formatNoOutput formatconcise

TDQS

A3.5/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesDocument URL (PDF, DOC, PPT, images)
modelNopipeline=fast, vlm=90% accuracy
pagesNoPage range: 1-10,15 or 2--2
ocrNoEnable OCR (pipeline only)
formulaNoFormula recognition
tableNoTable recognition
languageNoLanguage code: ch, en, etc
formatsNoExtra export formats

TDQS

B3.3/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
task_idYesTask ID from mineru_parse
formatNoOutput formatconcise

TDQS

B3.3/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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.

  1. 4 tool updatesv1.0.0
    • First observedmineru_batch
    • First observedmineru_batch_status
    • First observedmineru_parse
    • First observedmineru_status

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness5/5

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

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables 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.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    -