Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

PDF MCP server

by jztan/pdf-mcpMIT licenceAudited 7 Oct 2026 · source 7648662eb779

npm pdf-mcp-demo-recorder 3.5.0stdio★ 148
✕BLOCKGrade D · 63/100 · 7 Oct 2026 · 7648662

Is it safe? No — BLOCK, grade D (63/100). It exposes 3 tools: 2 read, 0 write and 1 destructive. The audit recorded 40 findings (0 critical, 1 high, 2 medium, 34 low). Maintainer's description: 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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “PDF MCP server (jztan/pdf-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/jztan/pdf-1

Why this is BLOCK. The audit found 0 critical and 1 high findings; the most severe is Code injection at scripts/check_demo_fusion_parity.mjs:10. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

2 MCP servers are called PDF. You are viewing jztan/pdf-mcp. Compare all 2 →

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score63/100✕BLOCK D
0 critical1 high2 medium34 low3 info

40 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared8 observations
  • NetworkDeclared7 observations
  • ShellDeclared1 observation
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

Findings (40)

Sorted by severity · the 25 most severe of 40 are listed

HIGHCode injectioncode.eval_exec · scripts/check_demo_fusion_parity.mjs:10
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const F = new Function(`${m[1]}\nreturn corpusFusion;`)();
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
MEDIUMHard-coded secretssecret.generic · tests/test_remote_embedder.py:306
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
pdf_cache_clear
Why
1 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.hidden_file · .flake8
F-13 Inventory / provenanceCWE-1104Layer L0
.flake8
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .pre-commit-config.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.pre-commit-config.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · packaging/mcpb/.mcpbignore
F-13 Inventory / provenanceCWE-1104Layer L0
.mcpbignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWCode injectioncode.deserialize · tests/test_corpus.py:1689
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
clone = pickle.loads(pickle.dumps(_warm_extract_worker))
Why
deserialises untrusted bytes into live objects
Fix
use json or yaml.safe_load
LOWInsecure cryptocrypto.weak_hash · scripts/benchmark_semantic_excerpts.py:97
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return hashlib.sha1(text.encode("utf-8")).hexdigest()[:12]
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · scripts/recheck_production_tiebreak.py:88
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
else (lambda d: hashlib.sha1(f"{seed}:{d}".encode()).hexdigest()[:12])
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · scripts/recheck_tiebreak_permutation.py:62
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return hashlib.sha1(f"{seed}:{doc_id}".encode()).hexdigest()[:12]
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/pdf_mcp/chart_extractor.py:46
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return hashlib.sha1(json.dumps(hints or {}, sort_keys=True).encode()).hexdigest()[
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/demo-recorder/record.mjs:26
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const PAGES_DIR = resolve(HERE, "../../pages");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/demo-recorder/record.mjs:27
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const OUT = process.env.OUT_GIF || resolve(HERE, "../../docs/images/demo.gif");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/launcher/launcher.test.js:13
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const L = require('../../packaging/mcpb/server/launcher.js');
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/launcher/launcher.test.js:51
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const pins = require('../../packaging/mcpb/server/uv-pins.json');
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/launcher/launcher.test.js:300
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const launcher = path.resolve(__dirname, '../../packaging/mcpb/server/launcher.js');
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.metadata_ip · SECURITY.md:44
F-04 Network egressCWE-200 · CWE-319Layer L1
- **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
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · tests/test_url_fetcher.py:477
F-04 Network egressCWE-200 · CWE-319Layer L1
return_value=[(2, 1, 6, "", ("169.254.169.254", 0))],
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · tests/test_url_fetcher.py:634
F-04 Network egressCWE-200 · CWE-319Layer L1
redirect_url = "https://169.254.169.254/latest/meta-data/"
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · tests/test_url_fetcher.py:645
F-04 Network egressCWE-200 · CWE-319Layer L1
if "169.254" in hostname or hostname == "169.254.169.254":
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · tests/test_url_fetcher.py:646
F-04 Network egressCWE-200 · CWE-319Layer L1
return [(2, 1, 6, "", ("169.254.169.254", 0))]
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:368
F-04 Network egressCWE-200 · CWE-319Layer L1
"$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/
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/publish-pypi.yml:226
F-04 Network egressCWE-200 · CWE-319Layer L1
if curl -fsS http://127.0.0.1:8802/health >/dev/null 2>&1; then
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/publish-pypi.yml:243
F-04 Network egressCWE-200 · CWE-319Layer L1
MCP=http://127.0.0.1:8802/mcp
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/publish-pypi.yml:272
F-04 Network egressCWE-200 · CWE-319Layer L1
http://127.0.0.1:8802/mcp \
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

3 declared in source · 1 destructive

2 read0 write1 destructive

1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolWhat it doesRisk
pdf_cache_clearNo description in the sourcedestructive
pdf_infoPage count.read
pdf_searchSearch.read

Audit history

  1. ✕BLOCK D 63 / 100

    First audit · 7648662eb779

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about PDF MCP server

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.
Which PDF MCP server is the right one?
i-can-hack/pdf-mcp. 2 servers share the name; see the side-by-side comparison.
I already installed PDF. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • jztan/pdf-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit 7648662eb779Observed · 7 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.