Skip to main content
Glama

PDF2MD MCP Server

by gavinHuang

convert_pdf_to_markdown

Transform PDF files into Markdown format with AI sampling. Supports local files and URLs. Generates a Markdown file, conversion summary, and page count.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
file_pathYes
output_dirNo

Input Schema (JSON Schema)

{ "properties": { "file_path": { "title": "File Path", "type": "string" }, "output_dir": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Output Dir" } }, "required": [ "file_path" ], "type": "object" }
Install Server

Other Tools from PDF2MD MCP Server

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/gavinHuang/pdf2md-mcp'

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