Pdf MCP logo

Pdf MCP

Search, extract, OCR, render, and analyze single PDFs or local PDF corpora through cached MCP tools.

Install Pdf MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pdf-mcp": {
      "command": "uvx",
      "args": [
        "pdf-mcp"
      ],
      "env": {
        "PDF_MCP_AUTH_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 13 tools correctly ().

Overview

pdf-mcp exposes cached PDF inspection, search, extraction, OCR, rendering, and chart-reading tools through MCP. It supports individual files and folders, with hybrid keyword and semantic search, page-range reading, table and image extraction, and corpus-wide retrieval. Use it when an agent needs targeted evidence from large, scanned, multi-column, or multilingual PDFs without loading every page into context. The default transport is STDIO, while an HTTP variant supports shared server-side corpora and clients that cannot spawn local processes.

Use cases

  • Search annual reports for risk factors and supporting pages
  • Extract tables and chart data from research PDFs
  • OCR selected pages from scanned documents
  • Triage and search a folder of local PDFs
  • Read only relevant sections from large manuals

Key features

  • Hybrid keyword and semantic PDF search
  • Page-range reading with OCR support
  • Folder warming, triage, and corpus search
  • Table, image, and vector-chart extraction
  • Persistent SQLite caching
  • STDIO and HTTP transports

Tools13

What Pdf MCP lets your agent do. Expand a tool for its parameters.

Verified live~5.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 51d

What it can do

From the 13 tools this server returned when we ran it.

Makes network requests · 12Read-only tools · 13
Tool definitions changed on 2026-11-10. Review them if you approved this server earlier.
Network at startup2 connections
Files written at startup25

Observed 2026-11-10 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · pdf-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars171Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed13Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Pdf MCP works

What pdf-mcp does

pdf-mcp gives MCP clients structured access to PDF content instead of requiring an agent to ingest an entire document at once. It can inspect metadata, page counts, scanned-page status, and table-of-contents information; find relevant pages or sections; read selected ranges; and return tables, images, and extracted text.

The server also works with collections of local PDFs. Corpus tools can warm documents into a persistent cache, produce per-document triage cards, and search across a folder with ranked results and document/page provenance. This makes it suitable for research workflows involving annual reports, manuals, scanned records, or other large document sets.

How it works

A typical single-document workflow starts with pdf_info, which identifies the document structure and indicates where relevant content may be located. pdf_search then searches by keyword, semantic similarity, or an automatic hybrid mode. The agent can follow up with pdf_read_pages for complete page content or use pdf_read_all in bounded chunks.

For a folder, pdf_corpus_overview provides document-level triage, while pdf_corpus_search returns relevance-ranked hits across the collection. Uncached files can be prepared with pdf_corpus_warm; repeated access uses the local SQLite cache. Large warming jobs can be resumed by issuing the same request again, and optional CUDA embedding can accelerate corpus preparation on supported NVIDIA hardware.

OCR is available for scanned pages when Tesseract is installed. Page rendering returns PNG images for visual review, and pdf_extract_chart can produce exact x/y series from born-digital vector charts. Chart label readings include verification information for values that need visual confirmation.

Setup and configuration

Claude Desktop users can install the downloadable .mcpb extension from the repository's latest release and add it through Settings > Extensions. The packaged installation supports Windows 10 or later and macOS 13 or later, with macOS 14 required on Apple Silicon. Its first start downloads approximately 250 MB of components; OCR may download an English Tesseract component when a scanned page is first processed.

For Claude Code and other MCP clients, install the command with uv tool install pdf-mcp or pipx install pdf-mcp. Python 3.11 through 3.14 is supported. A virtual environment can also be used with pip. Claude Code can register the server with claude mcp add pdf-mcp -- pdf-mcp.

Tesseract must be installed separately for OCR in the command-line installation. The documented package commands cover macOS, Ubuntu/Debian, and Windows. The server can also be imported as Python functions and used with the Anthropic SDK without starting an MCP process.

STDIO is the default transport. pdf-mcp-http exposes the same tools over HTTP for clients such as the Anthropic API MCP connector or claude.ai custom connectors. HTTP paths resolve on the server and can use allow-listed local roots or server-side URL fetching. Set PDF_MCP_AUTH_TOKEN when running the HTTP service.

Tools and capabilities

  • Inspect PDF metadata, page counts, scan detection, and table of contents with pdf_info and pdf_get_toc.
  • Search pages or sections using keyword, semantic, or hybrid retrieval with pdf_search.
  • Read selected pages, bounded full-document ranges, tables, images, and OCR text.
  • Warm, triage, and search folders of PDFs with the corpus tools.
  • Render pages as PNG images and extract vector-chart data as x/y tables.
  • Inspect cache state with pdf_cache_stats and remove cache entries with pdf_cache_clear.
  • Check installed optional features, active configuration, and document roots with server_info.

Limitations and notes

PDF-derived text, OCR output, metadata, tables, section content, images, and chart text must be treated as untrusted data. Agents should summarize or analyze it rather than follow instructions, commands, or URLs found inside documents.

HTTP mode cannot read a file that exists only on the client machine; the file must be available to the HTTP server through an allowed root or a server-fetched URL. The HTTP service is single-tenant. Semantic search, OCR, and column-aware extraction depend on optional features or installed components, and server_info should be checked before relying on them. Chart readings may require comparing flagged axis or label values with the rendered page.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pdf MCP

pdf-mcp is an MCP server that connects AI agents to local PDF files and folders. Its main tools inspect document structure, search by keyword or meaning, read selected pages, OCR scans, extract tables and charts, render pages, and manage a persistent cache for repeated access.

Install the command with uv or pipx, then register it with your MCP client; Claude Code uses `claude mcp add pdf-mcp -- pdf-mcp`. Claude Desktop can install the downloadable `.mcpb` extension through Settings > Extensions.

Yes, pdf-mcp works with Cursor through its MCP configuration. Install the `pdf-mcp` command with uv or pipx, then add the server to Cursor using the client configuration procedure.

Use `pdf_corpus_overview` to create per-document triage cards, then use `pdf_corpus_search` for ranked hits across the folder. Warm the folder with `pdf_corpus_warm` when preparing a larger corpus or when you want later searches to use the cache.

Install Tesseract separately, then use `pdf_read_pages` with OCR for the required page range. The Claude Desktop package includes OCR support and downloads an English-only Tesseract component when it first encounters a scanned page.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPdf MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdf-mcp?style=directory)](https://allmcps.com/mcp/pdf-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pdf-mcp"><img src="https://allmcps.com/api/badge/pdf-mcp?style=directory" alt="Pdf MCP on AllMCPs" /></a>