Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyData and databases

pdf-mcp

Lets your AI agent search and read large PDFs or whole folders of PDFs, including tables, scans and charts.

166 stars on GitHubby jztanLicense MITUpdated 21 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add pdf -- uvx pdf-mcp

What to fill in

NameWhat it isRequired
PDF_MCP_CACHE_DIRDirectory for storing PDF cache (default: ~/.cache/pdf-mcp)No
PDF_MCP_CACHE_TTLCache time-to-live in hours (default: 24)No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Summarize the risk factors in this annual report.
Which pages in this folder of PDFs discuss supply chain risks?

What it is

This server lets your AI agent work with PDFs without loading everything into its context. The agent can search one file or a folder by meaning or keyword, read only the pages it needs, and pull out tables, images and scanned text. It keeps a local cache so repeated access is fast.

What it can do

  • pdf_info: page count, metadata, table of contents, scan detection
  • pdf_search: keyword and semantic search with excerpts
  • pdf_read_pages: read specific pages, with OCR and tables
  • pdf_read_all: read a whole document, with a size cap
  • pdf_render_pages: render pages as images
  • pdf_extract_chart: chart data as (x, y) tables
  • pdf_corpus_overview, pdf_corpus_search: triage and search a folder

When to use

  • β€ΊWhen you have a 200-page report and want the agent to find only the relevant pages
  • β€ΊWhen you need to search across a whole folder of PDFs at once
  • β€ΊWhen a PDF is scanned and you need its text through OCR

What you need

Python 3.11 to 3.14 (uv tool install pdf-mcp), or the Claude Desktop extension file. OCR needs Tesseract installed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

Yes. It is MIT licensed.

How do I install it in Claude Desktop?

Download the pdf-mcp.mcpb file from the latest release and drag it onto Settings, Extensions. The first start downloads about 250 MB of components.

How do I install it for Claude Code?

Run uv tool install pdf-mcp, then claude mcp add pdf-mcp -- pdf-mcp.

Does it work on scanned PDFs?

Yes, with OCR through Tesseract.

Is PDF text safe to trust?

The readme says text from a PDF is untrusted content, and it flags hidden text that a human cannot see.

Can it run over HTTP?

Yes. pdf-mcp-http serves the same tools and needs an auth token.

If it does not work

  • β€ΊIf OCR fails, install Tesseract (brew, apt or winget as shown in the readme).
  • β€ΊUse Python 3.11 to 3.14. Python 3.15 falls back to a very old release.
  • β€ΊThe first start can take a few minutes while components download.

5 new skills a week. 1 minute to read.