Skip to main content

MinerU MCP Server for PDF to Markdown conversion

Project description

中文文档

MinerU Open MCP

An Official Mineru MCP server that exposes MinerU's document parsing as MCP tools. Connect any MCP-compatible AI client to convert PDFs, Word docs, PowerPoint files, spreadsheets, and images into Markdown, Word (docx), HTML, or LaTeX.

No API key required — Flash mode works out of the box, free with no sign-up, for files up to 20 pages / 10 MB. Set MINERU_API_TOKEN to unlock higher limits and extra output formats.


⚡ Quickest Way to Run — uvx (no install needed)

mineru-open-mcp is on PyPI. With uv installed, you can run it directly — no separate install step.

Configure your MCP client

stdio — Claude Desktop, Cursor, Windsurf

The MCP client launches mineru-open-mcp as a subprocess automatically.

Using uvx (recommended — always runs the latest version):

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

No API key? The server runs in Flash mode — free, markdown-only, 20 pages / 10 MB per file (PDF, images, Docx, PPTx, xls, xlsx).

mineru-open-mcp not on PATH? Use the full path: "/Users/you/.local/bin/mineru-open-mcp", or use the uvx approach above which handles this automatically.

streamable-http — web-based MCP clients

Start the server manually, then point your client at it:

MINERU_API_TOKEN=your_key mineru-open-mcp --transport streamable-http --port 8001
{
  "mcpServers": {
    "mineru": {
      "type": "streamableHttp",
      "url": "http://127.0.0.1:8001/mcp"
    }
  }
}

Features

  • parse_documents — convert local files and/or remote URLs to Markdown; supports PDF, DOCX, PPTX, JPG, PNG, HTML; optional extra output formats (Word, HTML, LaTeX). Flash Mode also supports xls and xlsx.
  • get_ocr_languages — list all OCR languages supported by MinerU
  • clean_logs — delete old server log files (only available when ENABLE_LOG=true)
  • Flash mode — works without an API key (free, markdown-only, 20 pages / 10 MB per file, supports PDF/images/Docx/PPTx/xls/xlsx); For full features, please provide MINERU_API_TOKEN, which will quit flash mode.
  • Three transport modesstdio, sse, streamable-http

Run from Source (Development)

git clone <repository-url>
cd mineru-mcp-server

uv pip install -e .

# stdio
uv run mineru-open-mcp

# streamable-http
uv run mineru-open-mcp --transport streamable-http --port 8001

Environment Variables

Variable Description Default
MINERU_API_TOKEN MinerU cloud API token
OUTPUT_DIR Directory for saved Markdown (and extra format) output ~/mineru-downloads
ENABLE_LOG Set to true to write timestamped log files disabled
MINERU_LOG_DIR Override directory for log files workspace logs/ or ~/.mineru-open-mcp/logs/

Log file location: when ENABLE_LOG=true, logs are written to ~/.mineru-open-mcp/logs/log_<timestamp>.txt (when installed) or logs/ in the workspace root (when running from source). Override with MINERU_LOG_DIR:

{
  "mcpServers": {
    "mineru": {
      "command": "mineru-open-mcp",
      "env": {
        "MINERU_API_TOKEN": "your_key_here",
        "ENABLE_LOG": "true",
        "MINERU_LOG_DIR": "/Users/you/mineru-logs"
      }
    }
  }
}

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_open_mcp-1.0.15.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

mineru_open_mcp-1.0.15-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file mineru_open_mcp-1.0.15.tar.gz.

File metadata

  • Download URL: mineru_open_mcp-1.0.15.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mineru_open_mcp-1.0.15.tar.gz
Algorithm Hash digest
SHA256 cf27891fd012312e0b0ad52f3c45c4d3bf3015624b2aeb072d7470136287fc53
MD5 de2d439d946c93cb6663136a9704e16c
BLAKE2b-256 610e6c030f054d5a6e2becf0a89fd419438f4ae156a66817a98e98dbc14ae85f

See more details on using hashes here.

File details

Details for the file mineru_open_mcp-1.0.15-py3-none-any.whl.

File metadata

  • Download URL: mineru_open_mcp-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mineru_open_mcp-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 2021c53c3be3bdd91d5dc1402a371f958211c136d8c3b2d4855ec9e21fb53ab2
MD5 358b5e21191e2bc159645c59d86c88e4
BLAKE2b-256 e8b9c71273d8656d49fb91aa1214a860c1d224a99b8e7f416bff9ecccb385c89

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