pdfvault-mcp
pdfvault-mcp — Offline PDF Fake-Redaction Forensic Auditor, Metadata Scrubber & Clean %PDF-1.7 MCP Server + GitHub Action
Zero-dependency, 100% offline Model Context Protocol (MCP) Server, CLI, and GitHub Action enabling AI coding agents (Claude Desktop, Cursor, Windsurf, Antigravity) and CI pipelines to audit PDF fake black-box redactions, incremental %%EOF ghost revisions, /Info + XMP workstation path leaks, reviewer /Annots, and hidden /JavaScript payloads — and rebuild clean %PDF-1.7 documents with 0% cloud upload.
Why PdfVault Exists
Fake Black-Box Redactions (
0 0 0 rg ... re f): Drawing dark rectangles over text in Preview, Word, or basic PDF editors hides characters visually while the underlyingBT ... Tj / TJ ... ETstream stays 100% copy-pasteable.Incremental-Save
%%EOFGhost Revisions: Saving edits incrementally appends a newxrefand%%EOFwhile leaving deleted drafts and sensitive numbers intact before earlier%%EOFmarkers.Forensic Metadata & Script Leaks:
/Info(UTF-16BEBOM<FEFF...>and octal\dddstrings),/MetadataXMPstRef:filePathworkstation paths,/PieceInfoIllustrator blocks, unapplied/Subtype /Redactannotations, and/OpenAction/JavaScriptbeacons routinely leak author identities and deal terms.
Related MCP server: quillpdf-mcp
MCP Tools Exposed (stdio)
Tool | Purpose | Safety Annotations |
| Decompresses |
|
| Losslessly rewrites a single-revision |
|
| Compiles baseline JPEG ( |
|
| Deterministically synthesizes multi-revision Flate-compressed PDF fixtures ( |
|
Quick Start (MCP Client & Local CLI)
# Start MCP server over stdio (supports both NDJSON and Content-Length framing)
npx -y github:z121245017-ai/pdfvault-mcp
# List MCP tool schemas from terminal
npx -y github:z121245017-ai/pdfvault-mcp --list
# Audit a local PDF file from terminal
npx -y github:z121245017-ai/pdfvault-mcp --cli audit_pdf_forensics '{"filePath":"./contract.pdf","targetTerms":["$4,850,000"]}'Claude Desktop / Cursor / Windsurf / Antigravity Config
{
"mcpServers": {
"pdfvault": {
"command": "npx",
"args": ["-y", "github:z121245017-ai/pdfvault-mcp"]
}
}
}Docker (node:22-alpine, non-root USER node)
docker build -t pdfvault-mcp .
docker run -i --rm pdfvault-mcpGitHub Action (z121245017-ai/pdfvault-mcp@v1)
Block pull requests that commit .pdf fixtures, docs, or legal attachments containing fake black-box redactions, surviving target secrets, incremental %%EOF ghost revisions, workstation OS paths, unapplied /Redact boxes, or hidden /JavaScript:
name: PdfVault PDF Leak & Fake-Redaction Gate
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
pdf-forensic-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit repository PDFs for fake redactions & metadata leaks
uses: z121245017-ai/pdfvault-mcp@v1
with:
paths: '.'
fail-on-leaks: 'true'Action Inputs & Outputs
Name | Kind | Default | Description |
| Input |
| Newline-, comma-, or space-separated PDF files or directories to scan. |
| Input |
| Optional comma-separated confidential terms that must not survive inside any |
| Input |
| Exit |
| Input |
| Comma-separated directory names skipped during recursive workspace scan. |
| Output | — | Total number of |
| Output | — | Total count of |
| Output | — | Structured JSON summary of findings. |
Verification
npm testLicense
MIT License — 0 external npm dependencies, 0 network calls, 100% local execution.
Available Tools
4 toolsaudit_pdf_forensicsARead-onlyIdempotent
Audit a local PDF file path or Base64-encoded PDF binary to detect fake black-box redactions (dark 0 0 0 rg ... re f rectangles over copyable BT...Tj/TJ text streams), incremental %%EOF ghost revisions, UTF-16BE/octal /Info fields, XMP workstation paths, unapplied /Subtype /Redact boxes, reviewer /Annots, /JavaScript triggers, and surviving target secrets.
Inputs: filePath, pdfBase64, targetTerms.
compile_clean_burned_pdfBIdempotent
Compile a brand-new zero-text-stream %PDF-1.7 binary from Base64 JPEG (DCTDecode) page frames or rendered page specs with solid pixel burn-in redaction boxes and optional watermark, then re-scan the output bytes to issue a cryptographic SHA-256 Zero-Surviving-Leak Receipt.
Inputs: burnBoxes, outputPath, targetTerms, returnBase64, +3 more.
generate_forensic_pdf_fixtureAIdempotent
Deterministically generate a synthetic multi-revision Flate-compressed PDF fixture containing fake black-box redactions, 2 %%EOF ghost revisions, UTF-16BE /Info, XMP workstation paths, /Annots, and /JavaScript for security regression testing.
Inputs: preset, outputPath, returnBase64.
scrub_pdf_metadataAIdempotent
Losslessly rewrite a clean single-revision %PDF-1.7 file (collapsing multiple %%EOF saves into 1 %%EOF with a fresh xref table), stripping /Info, XMP /Metadata, /PieceInfo, /JavaScript, /OpenAction, /EmbeddedFiles, and optional /Annots or /AcroForm while preserving active vector page content.
Inputs: filePath, pdfBase64, outputPath, stripAnnots, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct role in a PDF forensics pipeline: audit, scrub, compile clean output, and generate test fixtures. The only possible overlap is that compile and generate both produce PDFs, but their descriptions clearly separate clean production output from synthetic malicious fixtures.
All tools use snake_case with verb-first names, following a predictable action-oriented convention. Longer names like compile_clean_burned_pdf and generate_forensic_pdf_fixture remain readable and consistent with the set.
Four tools is a tight, well-scoped surface for a specialized PDF security server. Each tool covers a distinct stage of detection, sanitization, clean generation, and regression testing.
The surface covers the core lifecycle: audit for leaks, scrub existing PDFs, compile a clean replacement with a receipt, and generate forensic fixtures. Minor gaps exist, such as no explicit standalone verification tool for scrubbed output or batch-processing operation, but the main workflows are covered.
Maintenance
Related MCP Connectors
Inspect and remove PDF/DOCX author metadata and comments; approve tracked changes before cleaning.
Privacy-first PDF tools over MCP: merge, split, rotate, delete, compress, protect, inspect.
Work on PDF files: compress, merge, split, convert, read scans, redact and check signatures.
PDF tools + QR over MCP: merge, split, rotate, text, metadata, malicious-content scan.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceDetects whether sensitive data like emails, SSNs, and phone numbers survive in supposedly redacted PDFs, running entirely locally via WebAssembly.-
- AlicenseAqualityBmaintenanceA local-first PDF tool for merging, splitting, rotating, watermarking, Bates-numbering, cleaning metadata, and counting pages — all operations happen on your machine with no network transmission.1513 npm1MIT

omitly-mcpofficial
FlicenseAqualityBmaintenanceMCP server for local, verifiable PDF redaction. Enables AI agents to find sensitive regions, locate text, redact PDFs on-device, verify redaction and tamper-evidence seals, and generate PDFs—without uploading confidential documents.8788 npm-- FlicenseBqualityBmaintenanceEnables local, offline document extraction and manipulation—PDF first but also HTML, DOCX, XLSX, PPTX, EML, EPUB, Markdown, and plain text—through tools for probing, locating, extracting, converting, assembling, OCR, protecting, and redacting documents, with nothing leaving the machine.7-