pdf-mcp
Provides optional Gemini API integration for enhanced OCR of complex tables, inline math, and forms using Google's language models.
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., "@pdf-mcpconvert 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.
pdf-mcp
An MCP server that exposes Marker — high-quality PDF OCR and conversion — as a tool for MCP clients like Claude Code and Claude Desktop.
One tool: convert_pdf(path, output_dir?, page_range?, output_format?, use_llm?).
It writes the converted markdown/JSON/HTML plus extracted images to a folder
(default: <name>_marker/ next to the PDF) and returns the output path with
stats. Results are never returned inline — read the output file.
Requirements
Python ≥ 3.10 and uv
~5GB disk: Marker's models (~3GB, downloaded from HuggingFace on first conversion) plus torch. First conversion of a session takes 30+ seconds while models load; later conversions are much faster.
Related MCP server: PDF2MD MCP Server
Install
git clone https://github.com/Xander-git/pdf-mcp && cd pdf-mcp
uv syncClaude Code
claude mcp add pdf-mcp -- uv --directory /absolute/path/to/pdf-mcp run pdf-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"pdf-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/pdf-mcp", "run", "pdf-mcp"]
}
}
}LLM-enhanced mode (optional)
Pass use_llm=true to improve complex tables, inline math, and forms using
Gemini. Requires GOOGLE_API_KEY in the server's environment, costs API
credits, and sends page content to Google. Everything else runs fully local.
Setting up a Gemini API key
Create an API key at Google AI Studio (free tier available).
Provide it to the server as the
GOOGLE_API_KEYenvironment variable:
Claude Code — pass it when registering the server:
claude mcp add pdf-mcp --env GOOGLE_API_KEY=your-key-here -- uv --directory /absolute/path/to/pdf-mcp run pdf-mcpClaude Desktop — add an env block to the server entry:
{
"mcpServers": {
"pdf-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/pdf-mcp", "run", "pdf-mcp"],
"env": { "GOOGLE_API_KEY": "your-key-here" }
}
}
}Licensing
This package is licensed GPL-3.0-or-later. It links against marker-pdf, which is GPL-3.0-or-later; as a derivative work, pdf-mcp carries the same license.
Model weights (Surya/Marker models, downloaded at runtime from HuggingFace — never redistributed by this repo) are licensed by Datalab under a modified OpenRAIL-M: free for research, personal use, and startups under $2M funding/revenue. Broader commercial use requires a Datalab license.
This project is intended for personal use. If you fork it for commercial use, review both licenses above.
This server cannot be installed
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 Servers
- AlicenseAqualityFmaintenanceAn MCP server that exports PDF documents to markdown format optimized for LLM processing.Last updated11BSD 3-Clause
- AlicenseAqualityDmaintenanceAn MCP server that converts PDF files to Markdown format using AI sampling capabilities, supporting both local files and URLs with incremental conversion features.Last updated11MIT
- 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.Last updated51
- Alicense-qualityAmaintenanceMCP 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.Last updatedApache 2.0
Related MCP Connectors
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
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/Xander-git/pdf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server