
Redactpdf
io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026
從本機PDF中永久塗除SSN、銀行卡、電子郵件、電話和自訂詞條,並驗證已徹底清除。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Permanently redact SSNs, cards, emails, phones and custom terms from local PDFs, verified gone.
概覽
Redactpdf 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Redactpdf,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
redactpdf
Sharing a PDF usually means trusting that whatever you blacked out on screen is actually gone. Often it is not: the text is still sitting in the file, ready to be copied out. redactpdf takes the opposite approach. It looks for sensitive text in a local PDF's text layer, writes a copy in which every matched character has been physically replaced, and then re-reads its own output to prove that nothing it was asked to remove can still be extracted. If the proof fails, you get an error instead of a file.
Four kinds of sensitive text are detected. Social Security
numbers must satisfy the SSA's own validity rules (area
001-899 except 666, group 01-99, serial 0001-9999), so
random digit groups in that shape are not flagged.
Payment-card numbers are digit runs of 13 to 19 digits,
allowing single spaces or dashes between digits, and must
pass the Luhn check. Email addresses and North-American
phone numbers — (ddd) ddd-dddd, ddd-ddd-dddd,
ddd.ddd.dddd, or ddd ddd dddd, with an optional +1
prefix — round out the built-in categories. On top of
those, terms lets you name literal strings of your own,
matched case-insensitively and counted under their own
key. Omit detect to run all four categories.
Detection runs per extracted string — the string operands
of Tj and TJ show operators, in plain or FlateDecode
content streams — so a match that is split across two
string operands is not seen. That is a stated limitation
of the text-layer model this tool uses, not a silent one.
check_pdf reports what would be removed without writing
anything. redact_pdf writes the redacted copy — the
input file is never modified — replacing each matched
character with # while preserving string lengths, then
verifies the result. Documents run to 10 pages free; past
that, both tools ask for a licence. The licence check in
this build is a format check — a token of 16 to 512
characters from [A-Za-z0-9_-] plus . separators counts
as well-formed, supplied via the license argument or
the BLACKOUT_LICENSE environment variable — and the
over-limit error distinguishes a missing licence
(LICENSE_REQUIRED) from a malformed one
(LICENSE_INVALID). Encrypted PDFs, PDFs built on xref
or object streams, and malformed files are reported as
unsupported rather than passed over in silence.
Both tools answer with a one-line summary, a blank line,
and a fenced JSON block carrying path, outputPath
(null for check_pdf), pages, counts,
extractableChars — for check_pdf, the characters that
fall inside a detected match in the input; for a
successful redact_pdf, 0 by construction — and
licenseState.
CLI
redact_pdf writes <input>-redacted.pdf (the input
path with its .pdf suffix replaced) unless
output_path says otherwise; the output may not be the
input itself, and an existing output is only replaced
when overwrite is true.
Exit codes: 0 on success, 1 on a runtime error (the
tool's error text is printed), 2 on a usage error.
MCP server
MCP client config:
Tools
check_pdf— Report what would be redacted from a local PDF — per-category match counts — without writing anything.path(string, required) — absolute path to a PDF on this machinedetect(string array, optional) — any ofssn,card,email,phone; omit for allterms(string array, optional) — literal strings to match, case-insensitive
redact_pdf— Write a redacted copy of a local PDF with detected sensitive text permanently removed and verified gone. Never modifies the input.path(string, required) — absolute path to a PDF on this machineoutput_path(string, optional) — defaults to<input>-redacted.pdf; must not be the inputdetect(string array, optional) — any ofssn,card,email,phone; omit for allterms(string array, optional) — literal strings to match, case-insensitiveoverwrite(boolean, optional, default false) — allow replacing an existing outputlicense(string, optional) — Pro licence token; falls back toBLACKOUT_LICENSE
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
來源:README.md,提交 76cbe72
工具
0版本歷史
1- v0.1.0最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分