Feedback

PDF2MD MCP Server

@gavinhuang Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
gavinhuang
Submitted by
Community
Quality
20
Stars
1

About PDF2MD MCP Server

Convert PDF to Markdown quickly with PDF2MD — incremental processing that resumes from page markers.

PDF2MD is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by gavinhuang. It exposes 1 tool, including convert_pdf_to_markdown. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, community, markdown-converter, pdf-converter, pdf2md.

Setup

{
    "mcpServers": {
        "pdf2md": {
            "command": "uvx",
            "args": [
                "pdf2md-mcp"
            ]
        }
    }
}

PDF2MD MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "pdf2md": {
            "command": "uvx",
            "args": [
                "pdf2md-mcp"
            ]
        }
    }
}

PDF2MD MCP Server tools

  • convert_pdf_to_markdown — Convert a PDF file to Markdown format using AI sampling. Args: file_path: Local file path or URL to the PDF file output_dir: Optional output directory. Defaults to same directory as input file (for local files) or current working directory (for URLs) Returns: Dictionary containing: - output_file: Path to the generated markdown file - summary: Summary of the conversion task - pages_processed: Number of pages processed

Overview

What is PDF2MD?

Pdf2md is an MCP-based high-performance PDF to Markdown conversion service powered by MinerU API. It supports batch processing for local files and URL links with structured output.

How to use PDF2MD?

Clone the repository, create a virtual environment with uv, install dependencies with uv pip install -e ., configure environment variables (MINERU_API_BASE, MINERU_BATCH_API, MINERU_BATCH_RESULTS_API, MINERU_API_KEY) in a .env file, then start the service with uv run pdf2md. For Claude Desktop integration, add the provided JSON configuration specifying the server command, arguments, and API key.

Key features of PDF2MD

  • Convert PDF files to structured Markdown format.
  • Process local PDF files and URL links.
  • Automatically select the best processing method.
  • Support for multiple file batch conversion.
  • Optional OCR to improve recognition rate.
  • Seamless integration with LLM clients like Claude Desktop.

Use cases of PDF2MD

  • Convert PDF documents to Markdown for use with LLM clients.
  • Batch process multiple PDFs from local files or URLs.
  • Extract text from scanned PDFs using optional OCR.

Frequently asked questions

1 What are the system requirements for Pdf2md?

Python 3.10 or higher is required.

2 How do I get a MinerU API key?

Register for an account at MinerU’s website (mineru.net), apply for API testing qualification, and once approved, generate a token from the API Management page.

3 How can I configure the API key for Pdf2md?

Set the API key in the .env file (for development) or in the Claude Desktop configuration under env.MINERU_API_KEY (for regular use). The Claude Desktop config takes precedence.

4 What sources does Pdf2md support for conversion?

It supports both PDF URLs (via the convert_pdf_url tool) and local PDF files (via the convert_pdf_file tool).

5 Does Pdf2md support batch conversion?

Yes, the service supports batch processing of multiple PDF files for efficient large-volume conversion.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬