PDF2MD MCP Server
Allows development and contributions through GitHub, with the repository available at github.com/shuminghuang/pdf2md-mcp.
Converts PDF files to Markdown format, extracting content using AI sampling. Supports both local file paths and URLs with incremental conversion capabilities.
Supports testing through Pytest, enabling quality assurance for the PDF to Markdown conversion functionality.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PDF2MD MCP Serverconvert this PDF from https://example.com/report.pdf to markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PDF2MD MCP Server
An MCP (Model Context Protocol) server that converts PDF files to Markdown format using AI sampling capabilities.
Features
Convert PDF files to Markdown using AI content extraction
Support for both local file paths and URLs
Incremental conversion - resume from where you left off
Configurable output directory
Built with FastMCP for high performance
Related MCP server: MD-PDF MCP Server
Installation
pip install pdf2md-mcpUsage
As an MCP Server
Start the server:
pdf2md-mcpThe server will expose MCP tools for PDF to Markdown conversion.
Available Tools
convert_pdf_to_markdown
Converts a PDF file to Markdown format using AI sampling.
Parameters:
file_path(string): Local file path or URL to the PDF fileoutput_dir(string, optional): Output directory for the markdown file. Defaults to the same directory as input file (for local files) or current working directory (for URLs)
Returns:
output_file: Path to the generated markdown filesummary: Summary of the conversion taskpages_processed: Number of pages processed
Requirements
Python 3.10+
An MCP-compatible client with AI sampling capabilities
Network access for URL-based PDF files
Development
Setup
git clone https://github.com/shuminghuang/pdf2md-mcp.git
cd pdf2md-mcp
pip install -e ".[dev]"Running Tests
pytestCode Formatting
black .
isort .License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Available Tools
1 toolconvert_pdf_to_markdownA
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
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_dir | No |
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 provided, the description carries the full burden and does well by disclosing key behavioral traits: it specifies the conversion uses 'AI sampling', describes default output directory behavior for local files vs. URLs, and outlines the return structure. However, it misses details like error handling, performance limits, or authentication needs.
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 front-loaded with the core purpose, followed by structured sections for Args and Returns. Every sentence adds value without waste, making it easy to scan and understand quickly. The formatting enhances readability without verbosity.
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 tool's moderate complexity (2 params, no annotations, but with output schema), the description is largely complete: it covers purpose, parameters, and return values. The output schema handles return structure, so the description doesn't need to duplicate that. It could improve by mentioning potential errors or limitations.
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 description coverage is 0%, so the description must compensate. It adds meaningful context for both parameters: 'file_path' clarifies it accepts local paths or URLs, and 'output_dir' explains default behaviors based on input type. This goes beyond the bare schema, though it could detail format constraints (e.g., URL protocols).
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 specific action (convert), resource (PDF file), and target format (Markdown) using 'AI sampling'. It distinguishes the tool's purpose with technical detail about the conversion method, making it immediately understandable without redundancy.
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 implies usage for PDF-to-Markdown conversion but provides no explicit guidance on when to use this tool versus alternatives (e.g., other conversion methods or tools). Since there are no sibling tools, the lack of comparative guidance is less critical, but it still doesn't offer context like prerequisites or typical scenarios.
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. Dates show when Glama detected each change.
1 tool update
- First observed
convert_pdf_to_markdown
TDQS
With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is singular and clearly defined as converting PDFs to Markdown, leaving no room for misselection.
The single tool name follows a clear verb_noun pattern (convert_pdf_to_markdown), which is consistent with itself. Since there are no other tools, there is no inconsistency to evaluate, making it perfectly consistent by default.
A single tool is too few for most server purposes, as it limits functionality and may indicate an incomplete or overly narrow scope. For a PDF conversion server, one tool is minimal and could benefit from additional related operations, such as batch processing or format validation.
The tool covers the core conversion task well, but there are notable gaps in the surface, such as no tools for handling errors, validating input formats, or managing multiple files. While the main function is present, the lack of supporting operations makes the set incomplete for robust PDF-to-Markdown workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.
MCP server for detecting and redacting PII (Personally Identifiable Information) in PDF documents.
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseAqualityFmaintenanceAn MCP server that exports PDF documents to markdown format optimized for LLM processing.11BSD 3-Clause
- FlicenseAqualityDmaintenanceAn MCP server that enables bidirectional conversion between Markdown and PDF formats, including text extraction from specific pages and metadata retrieval. It supports customizable PDF output sizes and document processing through standard MCP tools.51-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that downloads PDF files from URLs and converts them to Markdown format. Supports custom file names and directories, with security measures like SSRF protection.-

huoshui-pdf-converterofficial
AlicenseAqualityDmaintenanceAn MCP server for high-quality bidirectional PDF ↔ Markdown conversion with full Unicode/CJK character support, enabling users to convert files via natural language commands.4MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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