What it does
The tool detects API keys, tokens, private keys and passwords using 64 detectors, including base64-encoded values. It scans raw text, files, directories, staged changes, commit ranges and git history, and audits MCP client configs and agent instruction files. Every finding is redacted, so the full secret value does not appear in output or in the conversation transcript.
It suits developers who use AI coding agents such as Claude Code, Codex or Cursor and want checks before a secret is written to a tracked file, pasted into a prompt, printed by a tool or published in a commit or push. Agent hooks can deny tool calls or prompts that contain secrets and redact tool output, while a pre-commit hook and a GitHub Action cover commits. The redact_text tool masks secrets in logs or other output before they are shared.
Installation options include a Claude Code plugin, an MCP server for any MCP client, a CLI installable with pipx or pip, and an agent skill in SKILL.md format. Hooks run on Python 3.10 or later using only the standard library, and the MCP server starts with uv. By default, hooks block high and critical findings and allow medium ones such as JWTs; a stricter threshold can be set.
Limitations and requirements
Hooks require Python 3.10 or later, and the MCP server starts with uv. Git-based tools require a git repository. scan_file skips binary files and files over 5 MB. If a hook encounters an unexpected error, such as bad JSON or a broken config, it fails open and does not block the agent.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
Secret Sentinel
Local secret guardrails: scan code, git changes and MCP configs for API keys; redact text
v0.3.0As shown on registry.modelcontextprotocol.io when we last read it