
PromptAudit MCP – Local, reversible masking of PII and API keys
Stop leaking API keys and personal data into AI agents.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Stop leaking API keys and personal data into AI agents. A local MCP server + CLI that masks secrets and PII before text reaches Claude, Cursor, Windsurf or any LLM — and restores them afterwards.
Deploy with sk-proj-9fK2mQ...Xw and notify jane.doe@acme.com, IBAN CH93 0076 2011 6238 5295 7 Deploy with [API_KEY_1] and notify [EMAIL_1], IBAN [IBAN_1]
Use with Claude Desktop / Cursor / Windsurf
{ "mcpServers": { "promptaudit": { "command": "npx", "args": ["-y", "@promptaudit/mcp"] } } }
Tool What it does
mask_text Replaces sensitive values with placeholders, returns session_id
scan_text Counts categories only — never returns values
restore_text Restores originals for a session (result is visible to the client)
Placeholder maps live only in the server process memory and expire after 60 minutes.
npx @promptaudit/mcp mask prompt.txt # print masked text cat diff.txt | npx @promptaudit/mcp scan # JSON counts; exit code 1 if anything found
Detects
API keys (OpenAI, Anthropic, AWS, GitHub, Slack), private-key blocks, JWTs, IBAN, credit cards, US SSN, ABA routing numbers, e-mail, international phone numbers, names after titles (Mr/Mrs/Dr …).
Pattern-based: it does not understand context and will miss names without titles, free-form addresses or new key formats. An MCP tool only protects text the client actually sends through it — it is a safety layer, not a guarantee. For audit trails, policies and team rollout see promptaudit.ch.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。