MCP server · Audited from source
PDF MCP server
by jztan/pdf-mcpMIT licenceAudited 7 Oct 2026 · source 7648662eb779
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.
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 →
- i-can-hack/pdf-mcp Org-owned★ 79✓SAFE
- jztan/pdf-mcp★ 148✕BLOCK
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
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
LOWCode injectioncode.deserialize · tests/test_corpus.py:1689
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
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
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
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
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
const PAGES_DIR = resolve(HERE, "../../pages");
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · scripts/demo-recorder/record.mjs:27
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
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
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
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
- **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
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
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
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
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
"$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
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
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
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
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.
| Tool | What it does | Risk |
|---|---|---|
pdf_cache_clear | No description in the source | destructive |
pdf_info | Page count. | read |
pdf_search | Search. | read |
Safer alternatives
All files & storage servers →pspdfkit/nutrient-dws-mcp-server
A Model Context Protocol (MCP) server implementation that integrates with the Nutrient Document Web Service (DWS) Processor API, providing powerful PDF processing capabilities for AI assistants.
tele-ai/doc-ops-mcp
MCP server for seamless document format conversion and processing
aeternalabshq/pullmd
Self-hosted URL- and file-to-Markdown service for humans and AI agents - web pages, documents, images, audio, YouTube. PWA + REST + MCP + Claude Code skill, Reddit-aware, refreshable share links.
Audit history
- ✕BLOCK D 63 / 100
First audit ·
7648662eb779
README badge
Badges show the current verdict, BLOCK included
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?
What tools does PDF expose?
Is PDF safe to connect to an agent?
What credentials does PDF need?
How does PDF run?
How current is this page?
Which PDF MCP server is the right one?
I already installed PDF. What should I do?
Can the verdict change?
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.
- What is the PDF MCP server?
- What tools does PDF expose?
- Is PDF safe to connect to an agent?