Skip to main content
Glama

该软件包已合并到官方仓库,请使用官方仓库。

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

pymupdf4llm-mcp

发布 构建状态 代码验证 提交活动 执照

pymupdf4llm 的 MCP 服务器,最适合将 PDF 导出为 LLM 的 markdown。

快速入门

运行以下命令运行 MCP 服务器:

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

将你的光标/风帆冲浪/...和其他 MCP 客户端配置到此服务器:

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

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers