Skip to main content
Glama

This package has been merged into official repo, please use the official repo instead.

https://github.com/pymupdf/pymupdf4llm-mcp

pymupdf4llm-mcp

Release Build status codecov Commit activity License

MCP Server for pymupdf4llm, best for export PDF to markdown for LLM.

Quick Start

Run the following command to run the MCP server:

uvx pymupdf4llm-mcp@latest stdio # stdio mode
# or
uvx pymupdf4llm-mcp@latest sse # sse mode

Configure your cursor/windsurf/... and other MCP client to this server:

{
  "mcpServers": {
    "pymupdf4llm-mcp": {
      "command": "uvx",
      "args": [
        "pymupdf4llm-mcp@latest",
        "stdio"
      ],
      "env": {}
    }
  }
}

Available Tools

1 tool
convert_pdf_to_markdownA

Converts a PDF file to markdown format via pymupdf4llm. See pymupdf.readthedocs.io/en/latest/pymupdf4llm for more. The file_path, image_path, and save_path parameters should be the absolute path to the PDF file, not a relative path. This tool will also convert the PDF to images and save them in the image_path directory. For larger PDF files, use save_path to save the markdown file then read it partially.

Inputs: file_path (required), image_path, save_path. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity. The tool's purpose is clearly described, and an agent will have no difficulty selecting it.

    Naming Consistency5/5

    The single tool name follows a consistent verb_noun pattern in snake_case. There are no other tools to introduce inconsistency.

    Tool Count3/5

    The server has only one tool, which feels thin for a PDF conversion service. While it covers the core conversion task, a slightly richer set (e.g., 3-5 tools) would be more appropriate.

    Completeness2/5

    The tool converts PDF to markdown with optional image extraction, but lacks other common operations like text extraction without conversion, page range selection, or batch processing. Significant gaps exist.

    Related MCP Connectors

    Related MCP Servers