Skip to main content
Glama

pymupdf4llm-mcp

by ai-zerolab

convert_pdf_to_markdown

Convert PDF files to markdown format while extracting and saving images. Handles large files by saving markdown to a specified path. Ideal for LLM processing and structured document conversion.

Instructions

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.

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the PDF file to convert
image_pathNoOptional. 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_pathNoOptional. 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.

Input Schema (JSON Schema)

{ "properties": { "file_path": { "description": "Absolute path to the PDF file to convert", "title": "File Path", "type": "string" }, "image_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "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.", "title": "Image Path" }, "save_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "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.", "title": "Save Path" } }, "required": [ "file_path" ], "title": "convert_pdf_to_markdownArguments", "type": "object" }
Install Server

Other Tools from pymupdf4llm-mcp

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ai-zerolab/pymupdf4llm-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server