pdf-mcp
MCP server by jztan Community
pdf-mcp is an MCP server that lets AI agents search one PDF or a whole folder by meaning or keyword. It reads only the pages that matter and pulls out tables, charts and scanned text.
Install pdf-mcp
Built from the published package, never by AI.
claude mcp add pdf-mcp -- uvx pdf-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pdf-mcp": {
"args": [
"pdf-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pdf-mcp": {
"args": [
"pdf-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pdf-mcp": {
"args": [
"pdf-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pdf-mcp -- uvx pdf-mcp{
"mcpServers": {
"pdf-mcp": {
"args": [
"pdf-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pdf-mcp uvx pdf-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pdf-mcp block.
About
pdf-mcp is an MCP server that gives AI agents such as Claude Code retrieval over PDFs. An agent can search one file or a whole folder by meaning or keyword, using hybrid BM25 keyword and semantic search, and then read only the pages it needs. It can extract tables, images and scanned text, including multi-column and Japanese layouts.
The server provides 13 tools, and the source suggests calling pdf_info first. Parsed results are kept in a SQLite cache that survives restarts. Optional CUDA acceleration can speed up warming large folders. It is aimed at people and agents who work with long or numerous PDFs and want to avoid loading whole documents into context. It is MIT licensed and its tools can also be called from Python.
Written from the project's README and checked against it.
Tools it gives your assistant
pdf_infoReturns page count, metadata, TOC summary and scanned-page detection. Meant to be called first.pdf_searchHybrid keyword and semantic search by page or section, returning excerpts with source coordinates.pdf_read_pagesReads specific pages or ranges, with OCR on demand, tables and embedded images.pdf_read_allReads a whole document in one call, capped by size in bytes.pdf_get_tocReturns the full table of contents for documents with many bookmarks.pdf_render_pagesRenders pages as PNG for vision models, such as diagrams, handwriting and scans.pdf_extract_chartReturns chart data as (x, y) tables read from plot geometry.pdf_corpus_warmWarms a folder of PDFs into the cache within a time budget.pdf_corpus_overviewReturns per-document triage cards for a folder.pdf_corpus_searchSearches across a folder, with document and page provenance on each hit.
What you need
- Python 3.11 to 3.14 for the uv, pipx or pip install
- Claude Desktop on Windows 10 or later, or macOS 13 or later (14 on Apple Silicon), for the .mcpb extension
- Tesseract for OCR on scanned pages
- NVIDIA card with CUDA for optional GPU embedding
| Setting | Needed | What it is |
|---|---|---|
PDF_Environment variable | Optional | Directory for storing PDF cache (default: ~/.cache/pdf-mcp) |
PDF_Environment variable | Optional | Optional time expiry in hours; unset keeps a document while its PDF exists |
PDF_Environment variable | Optional | Cache size cap in MB, least recently used evicted first (default: 2048; 0 = no cap) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Read the PDF at /path/to/document.pdf
- Which pages discuss supply chain risks?
- OCR pages 3-5 of the scanned PDF
Good to know
- Over HTTP, paths resolve on the server, so a client cannot send a file from its own machine.
- The HTTP transport is single-tenant and exits without an auth token and path allow list.
- The Claude Desktop bundle includes only an English Tesseract model for OCR.
- On Python 3.15 the installer falls back to a very old release.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pdf-mcp
All alternatives →Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.
Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.
Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.
Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.
Compare with MR Office, kordoc or Desktop Commander
pdf-mcp: common questions
Can pdf-mcp search a whole folder of PDFs?
Yes. The corpus tools warm a folder into the cache, give per-document overviews, and search across all documents with page provenance.
Does pdf-mcp work with scanned PDFs?
Yes. It uses OCR through Tesseract, run in parallel across pages, and pdf_info detects scanned pages.
Can I use pdf-mcp without an MCP client?
The source says its tools are plain Python functions that can be imported, and it links examples that pass a PDF to the Anthropic SDK.
How do I install pdf-mcp?
In Claude Code run claude mcp add pdf-mcp -- uvx pdf-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is pdf-mcp the official server?
pdf-mcp is a community project by jztan, not verified by a company domain.
Is pdf-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pdf-mcp safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pdf-mcp?
Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.
Does pdf-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
