Atlas / MCP servers / jztan / PDF

PDFBLOCK

mcp/jztan/pdf-1

MCP server that lets Claude Code and other AI agents read and search large PDFs, one file or a whole folder: agentic RAG with hybrid semantic + keyword search, selective page reads, tables, images, OCR, chart data, and multi-column/CJK layouts.

Verdict
BLOCK
Grade
D
Trust score
63 /100
Exposed tools
3 2r · 0w · 1d
Transport
stdio
License
MIT
Stars
148
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/pdf-mcp/) [](https://www.python.org/downloads/) [](https://opensource.org/licenses/MIT) [](https://github.com/jztan/pdf-mcp/issues) [](https://github.com/jztan/pdf-mcp/actions/workflows/ci.yml) [](https://codecov.io/gh/jztan/pdf-mcp) [](https://pepy.tech/project/pdf-mcp)

Agentic RAG over your PDFs, one file or a whole folder, as a single MCP tool.

The agent decides when to search; pdf-mcp does the retrieval and hands back excerpts. It is an MCP server that lets Claude Code and other AI agents search one PDF or a whole folder by meaning or keyword, read only the pages that matter, and cleanly pull out tables, images, and scanned text, even from multi-column and Japanese layouts, with optional CUDA acceleration for warming large corpora.

mcp-name: io.github.jztan/pdf-mcp

Try it in your browser

[See what your AI agent sees →](https://pdf-mcp.jztan.com/)

Drop in any PDF, or a whole folder of them, and watch an agent triage the corpus, search across every document at once, and read only the pages that matter, using a fraction of the tokens. 100% client-side, no install required.

##

Read from source at commit 7648662eb779OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (pypi)
claude mcp add pdf-mcp -- None pdf-mcp==3.5.0
03

Exposed tools (3)

2 read · 0 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
pdf_cache_cleardestructive
pdf_inforeadPage count.
pdf_searchreadSearch.
04

Trust audit

BLOCKgrade D · trust 63/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (8 observation(s))
Network
declared (7 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
scripts/check_demo_fusion_parity.mjs:10
const F = new Function(`${m[1]}\nreturn corpusFusion;`)();
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/test_remote_embedder.py:306
secret = "sk-super-secret-value"
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
pdf_cache_clear
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.flake8
.flake8
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packaging/mcpb/.mcpbignore
.mcpbignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
tests/test_corpus.py:1689
clone = pickle.loads(pickle.dumps(_warm_extract_worker))
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/benchmark_semantic_excerpts.py:97
return hashlib.sha1(text.encode("utf-8")).hexdigest()[:12]
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/recheck_production_tiebreak.py:88
else (lambda d: hashlib.sha1(f"{seed}:{d}".encode()).hexdigest()[:12])
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/recheck_tiebreak_permutation.py:62
return hashlib.sha1(f"{seed}:{doc_id}".encode()).hexdigest()[:12]
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/pdf_mcp/chart_extractor.py:46
return hashlib.sha1(json.dumps(hints or {}, sort_keys=True).encode()).hexdigest()[
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
scripts/demo-recorder/record.mjs:26
const PAGES_DIR = resolve(HERE, "../../pages");
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
scripts/demo-recorder/record.mjs:27
const OUT = process.env.OUT_GIF || resolve(HERE, "../../docs/images/demo.gif");
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/launcher/launcher.test.js:13
const L = require('../../packaging/mcpb/server/launcher.js');
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/launcher/launcher.test.js:51
const pins = require('../../packaging/mcpb/server/uv-pins.json');
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/launcher/launcher.test.js:300
const launcher = path.resolve(__dirname, '../../packaging/mcpb/server/launcher.js');
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
SECURITY.md:44
- **SSRF via URL fetch.** A prompt-injected PDF can instruct the agent to fetch attacker-chosen URLs (`http://169.254.169.254/...`, DNS-rebinding hosts, IPv6 link-local, etc.). In scope: local-network
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
tests/test_url_fetcher.py:477
return_value=[(2, 1, 6, "", ("169.254.169.254", 0))],
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
tests/test_url_fetcher.py:634
redirect_url = "https://169.254.169.254/latest/meta-data/"
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
tests/test_url_fetcher.py:645
if "169.254" in hostname or hostname == "169.254.169.254":
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
tests/test_url_fetcher.py:646
return [(2, 1, 6, "", ("169.254.169.254", 0))]
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
.github/workflows/ci.yml:368
"$py" scripts/smoke_mcpb.py bundle-smoke/unpacked --expect-fallback --timeout 120 --extra-env "PDF_MCP_CACHE_DIR=$RUNNER_TEMP/pdfmcp-blocked" --extra-env "PDF_MCP_UV_DOWNLOAD_BASE=https://127.0.0.1:9/
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
.github/workflows/publish-pypi.yml:226
if curl -fsS http://127.0.0.1:8802/health >/dev/null 2>&1; then
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
.github/workflows/publish-pypi.yml:243
MCP=http://127.0.0.1:8802/mcp
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
.github/workflows/publish-pypi.yml:272
http://127.0.0.1:8802/mcp \

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 7648662eb779full audit observations/trust-audit/mcp-server/jztan__pdf-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-077648662eb779BLOCKD63first audit
06

Questions

What is the PDF MCP server?

MCP server that lets Claude Code and other AI agents read and search large PDFs, one file or a whole folder: agentic RAG with hybrid semantic + keyword search, selective page reads, tables, images, OCR, chart data, and multi-column/CJK layouts.

What tools does PDF expose?

3 in total: 2 read-only, 0 that write, and 1 that can delete or overwrite (pdf_cache_clear). Every one is listed on this page with its risk.

Is PDF safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (63/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does PDF need?

It reads PDF_MCP_AUTH_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does PDF run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as pdf-mcp-demo-recorder at 3.5.0.

How current is this page?

The grade is for one exact copy of the source (7648662eb779), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement