Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 80
  • 177 stars
  • MIT
  • Updated

Install pdf-mcp

Built from the published package, never by AI.

claude mcp add pdf-mcp -- uvx pdf-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install pdf-mcp in Claude Code

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
SettingNeededWhat it is
PDF_MCP_CACHE_DIREnvironment variableOptionalDirectory for storing PDF cache (default: ~/.cache/pdf-mcp)
PDF_MCP_CACHE_TTLEnvironment variableOptionalOptional time expiry in hours; unset keeps a document while its PDF exists
PDF_MCP_CACHE_MAX_MBEnvironment variableOptionalCache 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

A

No 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 →
MR Office XinaTian
98

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.

ACA Local and remote 5.8k
kordocchrisryugj
94

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.

AAA Local 129k/wk
Desktop Commanderwonderwhy-er
94

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.

AAA Local 1.4M/wk
MCP Linear tacticlaunch
94

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.

AAB Local 69k/wk
Pptx Viewer MCP ChristopherVR
94

pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.

AAB Local 50k/wk
Dsh Plugin Reactive Resume amruthpillai
94

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.

AAA Local 46k

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.

pdf-mcp Install

Add to stack

Loading.