Skip to content
jztan avatar

Pdf Mcp

jztan/pdf-mcp

Agentic RAG over PDFs, with page-level evidence to verify each answer.

CCM score
84 of 100
GitHub stars
176
tools
13
transport
STDIO
env vars
3
last updated
Nov 28, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Searches with pdf_search, pdf_corpus_search, and pdf_corpus_overview, returning excerpts and source pages across one file or a folder
  • Reads pages with pdf_read_pages, pdf_read_all, and pdf_get_toc, including OCR for scans, tables, and embedded images
  • Renders pages as PNG with pdf_render_pages and extracts chart data as (x, y) tables with pdf_extract_chart
  • Designed for research and document review over large PDFs, folders of scanned or multi-column files, and checking answers against printed pages

Tools

13 tools

Public tool metadata for what this MCP can expose to an agent.

pdf_infoPage count, metadata, TOC summary, scanned-page detection. Call first.

Page count, metadata, TOC summary, scanned-page detection. Call first.

No parameter schema in public metadata yet.

pdf_searchHybrid search (keyword + semantic) by page or section; hits carry an excerpt, source coordinates, the enclosing outline section and a table's lead-in sentence

Hybrid search (keyword + semantic) by page or section; hits carry an excerpt, source coordinates, the enclosing outline section and a table's lead-in sentence

No parameter schema in public metadata yet.

pdf_read_pagesRead specific pages or ranges, with OCR on demand, tables, and embedded images

Read specific pages or ranges, with OCR on demand, tables, and embedded images

No parameter schema in public metadata yet.

pdf_read_allRead a whole document in one call, byte-capped

Read a whole document in one call, byte-capped

No parameter schema in public metadata yet.

pdf_get_tocFull table of contents for documents with many bookmarks

Full table of contents for documents with many bookmarks

No parameter schema in public metadata yet.

pdf_render_pagesRender pages as PNG for vision models: diagrams, handwriting, scans

Render pages as PNG for vision models: diagrams, handwriting, scans

No parameter schema in public metadata yet.

pdf_extract_chartChart data as exact (x, y) tables, read from plot geometry

Chart data as exact (x, y) tables, read from plot geometry

No parameter schema in public metadata yet.

pdf_corpus_warmWarm a folder of PDFs into the cache within a time budget

Warm a folder of PDFs into the cache within a time budget

No parameter schema in public metadata yet.

pdf_corpus_overviewPer-document triage cards for a folder

Per-document triage cards for a folder

No parameter schema in public metadata yet.

pdf_corpus_searchSearch across a folder; hits carry document and page provenance

Search across a folder; hits carry document and page provenance

No parameter schema in public metadata yet.

pdf_cache_statsPer-document cache breakdown and total size

Per-document cache breakdown and total size

No parameter schema in public metadata yet.

pdf_cache_clearClear expired or all cache entries

Clear expired or all cache entries

No parameter schema in public metadata yet.

server_infoWhich optional features and config are active

Which optional features and config are active

No parameter schema in public metadata yet.

Configuration

PDF_MCP_CACHE_DIR

Directory for storing PDF cache (default: ~/.cache/pdf-mcp)

PDF_MCP_CACHE_TTL

Optional time expiry in hours; unset keeps a document while its PDF exists

PDF_MCP_CACHE_MAX_MB

Cache size cap in MB, least recently used evicted first (default: 2048; 0 = no cap)

Readme

pdf-mcp

PyPI version Python 3.11 to 3.14 License: MIT GitHub Issues CI codecov Downloads

Agentic RAG over your PDFs, with the evidence to check every answer.


View the full README on GitHub

Details

Repository
github.com/jztan/pdf-mcp
Categories
Docs & Knowledge Bases, AI Agents & LLM Apps, Research & Academic
Package
pdf-mcp
Transport
STDIO
Registry
MCP registry, active

More from jztan

All 2

Similar to Pdf Mcp

More Docs & Knowledge Bases