Skip to main content
ClaudeWave
sudo-ai-git avatar
sudo-ai-git

mcp-secret-scrub

Ver en GitHub

Deterministic no-LLM MCP server that scrubs secrets from text/logs before agent context. Redact/mask/hash, never leaks the value.

MCP ServersRegistry oficial0 estrellas0 forksPythonMITActualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/28/2026
Install in Claude Code / Claude Desktop
Method: pip / Python · mcp-secret-scrub
Claude Code CLI
claude mcp add mcp-secret-scrub -- python -m mcp-secret-scrub
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-secret-scrub": {
      "command": "python",
      "args": ["-m", "mcp-secret-scrub"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install first: pip install mcp-secret-scrub
Casos de uso

Resumen de MCP Servers

# mcp-secret-scrub

> `mcp-name: io.github.sudo-ai-git/mcp-secret-scrub`

**Deterministic, no-LLM MCP server that scrubs secrets from text, logs, and
transcripts before they enter agent context — and never leaks the value.**

No LLM. No network. Pure structural detection. MIT. Crown-jewel-free.

---

## The problem it solves

Before you hand raw text to an agent (or store it, or pass it to a tool), you
often don't know whether it contains a live secret. Platform scrubbers miss
patterns all the time — a private key, an `nvapi-` token, a `github_pat_`
token, an `api_key=` assignment mid-log. If that text reaches an LLM context
or a persisted transcript, the secret is effectively exfiltrated.

This server answers, deterministically:
> *Which secrets are in this text, and can you redact them safely before it
> goes anywhere?*

## Detection coverage (deterministic profiles)

| family | examples |
|---|---|
| **AI provider keys** | `sk-proj-…`, `sk-ant-api…`, `sk-or-v1-…`, `sk-…`, `nvapi-…` |
| **Cloud / GitHub** | `AKIA…`, `aws_secret_access_key=`, `ghp_…`, `gho_…`, `ghu_…`, `ghs_…`, `ghr_…`, `github_pat_…` |
| **Identity / auth** | JWTs (`eyJ…`), PEM private keys, `Bearer …`, `Basic …`, OAuth client secrets |
| **Assignments** | `api_key=`, `token=`, `secret=`, `password=`, `client_secret=`, `webhook_secret=` |
| **Endpoints / DSNs** | Discord webhooks, Slack `xox…`, SQL/Redis/Mongo/AMQP connection strings |

The scan **never returns the secret value** — only its type, count, and
position. That is a hard safety contract, enforced by test.

## Tools (MCP)

| tool | purpose |
|---|---|
| `scrub_text(text, mode, keep_label)` | redact / mask / hash secrets; returns scrubbed text (never the value) |
| `scan_text(text)` | detect which secret types are present (no mutation) |
| `report_full(text)` | scan + redact in one call, scrubbed preview + findings |
| `secret_profiles()` | list all supported detection profiles |

Modes:
- **`redact`** (default) → `[REDACTED:TYPE]`
- **`mask`** → shows first 4 + last 2 chars
- **`hash`** → deterministic SHA-256 prefix (reproducible across calls)

## Quick start (stdio)

```bash
pip install mcp-secret-scrub
mcp-secret-scrub          # stdio (default)
```

Or via uv/pipx for an installable console entry:
```bash
pipx install mcp-secret-scrub
```

MCP client config:
```json
{ "mcpServers": {
    "secret-scrub": { "command": "mcp-secret-scrub" }
}}
```

## Streamable HTTP (remote / Smithery-publishable)

```bash
python3 mcp_server.py --http --port 8138   # serves on http://<host>:8138/mcp/
```

## Determinism & safety guarantees

- **Deterministic**: same input → identical output in every mode, every call.
- **Never leaks**: `scan_text` and `scrub_text` never emit the original token;
  `_deterministic_hash` is SHA-256 (no salt) so output is reproducible.
- **No LLM, no network**: pure regex + reachable structure detection.
- **Input-safe**: non-string input returns a clean error, not a traceback.

## Verification

- `python3 test_detector.py` — 14/14 core checks (detection, redaction,
  determinism, no-leak contract, benign/unicode/empty input, bad-mode)
- `python3 test_e2e.py` — drives the real MCP stdio transport and asserts
  the secret does NOT cross the wire

## License & provenance

MIT. Part of the sudo-ai-git deterministic no-LLM agent-trust MCP family
(`mcp-skill-sec` · `mcp-verify-claim` · `mcp-benchmark-hygiene` ·
`mcp-secret-scrub`).
ai-safetydeterministicllm-agentsmcpmcp-serverredactionsecretssecuritysupply-chain

Lo que la gente pregunta sobre mcp-secret-scrub

¿Qué es sudo-ai-git/mcp-secret-scrub?

+

sudo-ai-git/mcp-secret-scrub es mcp servers para el ecosistema de Claude AI. Deterministic no-LLM MCP server that scrubs secrets from text/logs before agent context. Redact/mask/hash, never leaks the value. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-08-28.

¿Cómo se instala mcp-secret-scrub?

+

Puedes instalar mcp-secret-scrub clonando el repositorio (https://github.com/sudo-ai-git/mcp-secret-scrub) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar sudo-ai-git/mcp-secret-scrub?

+

Nuestro agente de seguridad ha analizado sudo-ai-git/mcp-secret-scrub y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene sudo-ai-git/mcp-secret-scrub?

+

sudo-ai-git/mcp-secret-scrub es mantenido por sudo-ai-git. La última actividad registrada en GitHub es del 2026-08-28, con 0 issues abiertos.

¿Hay alternativas a mcp-secret-scrub?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega mcp-secret-scrub en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: sudo-ai-git/mcp-secret-scrub
[![Featured on ClaudeWave](https://claudewave.com/api/badge/sudo-ai-git-mcp-secret-scrub)](https://claudewave.com/repo/sudo-ai-git-mcp-secret-scrub)
<a href="https://claudewave.com/repo/sudo-ai-git-mcp-secret-scrub"><img src="https://claudewave.com/api/badge/sudo-ai-git-mcp-secret-scrub" alt="Featured on ClaudeWave: sudo-ai-git/mcp-secret-scrub" width="320" height="64" /></a>

Más MCP Servers

Alternativas a mcp-secret-scrub