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
| Name | What it is | Required |
|---|---|---|
PDF_MCP_CACHE_DIR | Directory for storing PDF cache (default: ~/.cache/pdf-mcp) | No |
PDF_MCP_CACHE_TTL | Cache 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 detectionpdf_search: keyword and semantic search with excerptspdf_read_pages: read specific pages, with OCR and tablespdf_read_all: read a whole document, with a size cappdf_render_pages: render pages as imagespdf_extract_chart: chart data as (x, y) tablespdf_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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
pdf-officialHelps your agent read, merge, split, rotate, fill and create PDF files, and pull out text or tables, including OCR for scanned pages.pdf-officialHelps your agent read, create, split, merge, fill, and protect PDF files, including text extraction, form filling, and OCR for scanned pages.pdf-anthropicHelps your agent handle most PDF tasks: read text and tables, merge or split files, rotate pages, fill forms, add watermarks and run OCR.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.