MCP-PDF2MD
About
A high-performance service to convert PDFs from local files or URLs into Markdown using the Mistral AI OCR API.
Details
- Author
- zicez
- Categories
- Productivity
Jump to
Setup
Install MCP-PDF2MD in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/zicez/mcp-pdf2md
Follow the installation instructions in the repository README, then restart your MCP client.
An MCP-based high-performance PDF to Markdown conversion service powered by the Mistral AI OCR API, supporting batch processing for local files and URL links with structured output.
- Format Conversion: Convert PDF files to structured Markdown format.
- Multi-source Support: Process both local PDF files and remote PDF URLs.
- MCP Integration: Seamlessly integrates with LLM clients like Claude Desktop.
- Structure Preservation: Aims to maintain the original document structure, including headings, paragraphs, and lists.
- Image Extraction: Automatically extracts images from the PDF and saves them locally.
- High-Quality Extraction: Leverages Mistral AI's state-of-the-art OCR for high-quality text and layout information extraction.
- Python 3.10+
- uvfor environment and package management (recommended)
-
Clone the repository and enter the directory:
git clone https://github.com/zicez/mcp-pdf2md.git cd mcp-pdf2md
Create a.envfile in the project root directory and set your Mistral AI API key:
MISTRAL_API_KEY=your_mistral_api_key_here
The server supports the following command line arguments:
- --output-dir: Specify the directory to save converted Markdown files and images. Defaults to./downloads.
uv run pdf2md --output-dir /path/to/my/output
Add the following configuration in Claude Desktop:
{ "mcpServers": { "pdf2md": { "command": "uv", "args": [ "--directory", "C:\\path\\to\\mcp-pdf2md", "run", "pdf2md", "--output-dir", "C:\\path\\to\\output" ], "env": { "MISTRAL_API_KEY": "your_mistral_api_key_here" } } } }
{ "mcpServers": { "pdf2md": { "command": "uv", "args": [ "--directory", "/path/to/mcp-pdf2md", "run", "pdf2md", "--output-dir", "/path/to/output" ], "env": { "MISTRAL_API_KEY": "your_mistral_api_key_here" } } } }
Note about API Key Configuration:You can set the API key in two ways:
- In the.envfile within the project directory (recommended for development).
- In the Claude Desktop configuration as shown above (recommended for regular use).
If you set the API key in both places, the one in the Claude Desktop configuration will take precedence.
The server provides the following MCP tools:
- convert_pdf_url(url: str): Converts a PDF from a URL to Markdown. Supports single URLs or multiple URLs separated by spaces, commas, or newlines.
- convert_pdf_file(file_path: str): Converts a local PDF file to Markdown. Supports single or multiple file paths separated by spaces, commas, or newlines.
This project relies on the Mistral AI API for PDF content extraction. To obtain an API key:
- Visit theMistral AI Platformand create an account.
- Navigate to the "API Keys" section in your workspace.
- Create a new secret key.
- Copy the generated API key.
- Use this key as the value forMISTRAL_API_KEY.
MIT License - see theLICENSEfile for details.
This project uses theMistral AI OCR API.
The 1Password MCP server creates a bridge that allows MCP clients such as Codex and Kiro to manage your 1Password Environments with secure authorization prompts.
This is the 1st, easiest, and cheapest PPT, slides, presentation AI generation MCP Server in the world.
Persistent memory for any AI assistant. Zero token cost until recall. Stores memories in local SQLite, ranks by 6-factor scoring, returns results 79% smaller than JSON. Works with Claude, ChatGPT, Grok, Cursor, Windsurf, and any MCP client.
A MCP server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
Enables LLM clients to interact with macOS applications through AppleScript. Built using the @beyondbetter/bb-mcp-server library, this server provides safe, controlled execution of predefined scripts with optional support for arbitrary script execution.
An MCP server for WordPress plugin audits
Turn your AI assistant into a digital marketing hub that creates, organizes, and analyzes links and QR Codes on demand.
Connect AI clients to Cal.com scheduling through the Model Context Protocol using the hosted server at mcp.cal.com or a local instance.
Sync Calendars, Scheduling Links, AI Executive Scheduling Assistant, Unified Calendar
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



