pymupdf4llm-mcp
Este paquete se ha fusionado con el repositorio oficial; utilice el repositorio oficial en su lugar.
https://github.com/pymupdf/pymupdf4llm-mcp
pymupdf4llm-mcp
Servidor MCP para pymupdf4llm, ideal para exportar PDF a Markdown para LLM.
Repositorio de Github : https://github.com/ai-zerolab/pymupdf4llm-mcp/
Documentación https://ai-zerolab.github.io/pymupdf4llm-mcp/
Inicio rápido
Ejecute el siguiente comando para ejecutar el servidor MCP:
uvx pymupdf4llm-mcp@latest stdio # stdio mode
# or
uvx pymupdf4llm-mcp@latest sse # sse modeConfigure su cursor/windsurf/... y otros clientes MCP en este servidor:
{
"mcpServers": {
"pymupdf4llm-mcp": {
"command": "uvx",
"args": [
"pymupdf4llm-mcp@latest",
"stdio"
],
"env": {}
}
}
}Available Tools
1 toolconvert_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.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the PDF file to convert | |
| image_path | No | Optional. Absolute path to the directory to save the images. If not provided, the images will be saved in the same directory as the PDF file. | |
| save_path | No | Optional. Absolute path to the directory to save the markdown file. If provided, will return the path to the markdown file. If not provided, will return the markdown string. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the transparency burden. It discloses that the tool also converts PDF to images and saves them, and that absolute paths are required. However, it does not mention side effects (e.g., overwriting existing files), error handling, or permissions. It provides adequate but not comprehensive behavioral insight.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is fairly concise with 3-4 sentences. It front-loads the main purpose and then provides details. The full URL is slightly lengthy but appropriate for reference. It earns its sentences.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the presence of an output schema (context signal), the description covers the essential conversion behavior, image generation, and practical usage tips for large files. It does not address edge cases like encrypted PDFs or invalid paths, but is sufficient for typical use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so each parameter has a description. The description reinforces the absolute path requirement and adds context: image_path is optional with default behavior, save_path controls whether output is a string or file path, and advice for large files. This adds value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool converts a PDF file to markdown format using a specific library (pymupdf4llm). It specifies the verb 'converts' and the resource 'PDF file to markdown', and also mentions additional behavior like converting to images. With no sibling tools, it is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit guidance: use absolute paths for all parameters, and for larger PDF files use save_path to save the markdown file and read it partially. It does not discuss alternatives (none exist) but gives practical usage context.
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 tool update
- First observed
convert_pdf_to_markdown
TDQS
Scored across 1 tool
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.
The single tool name follows a consistent verb_noun pattern in snake_case. There are no other tools to introduce inconsistency.
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.
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
Related MCP Connectors
Hosted MCP server: convert PDFs to clean, LLM-ready Markdown with tables, formulas and OCR.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Convert PDF documents to Markdown for AI agents through an authenticated remote MCP server.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that converts PDF files to Markdown format using AI sampling capabilities, supporting both local files and URLs with incremental conversion features.11MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that reads PDFs and exposes them as structured Markdown, metadata, outlines, images, and tables to LLM consumers via tools like pdf_read_markdown and pdf_info.Apache 2.0

pymupdf4llm-mcpofficial
AlicenseNot gradedqualityCmaintenanceMCP server for exporting PDF to markdown, optimized for LLM consumption.718 PyPI73AGPL 3.0- AlicenseNot gradedqualityDmaintenanceMCP server that gives LLMs the power to convert PDFs to Markdown on the fly using a local Ollama vision model.Apache 2.0