Skip to main content
ClaudeWave
tylerscomic-lab avatar
tylerscomic-lab

regex-safety-audit-mcp

Ver en GitHub

ReDoS / catastrophic-backtracking detector MCP server, via real AST parsing — never executes the pattern itself

MCP ServersRegistry oficial0 estrellas0 forksJavaScriptMITActualizado today
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/tylerscomic-lab/regex-safety-audit-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "regex-safety-audit-mcp": {
      "command": "node",
      "args": ["/path/to/regex-safety-audit-mcp/dist/index.js"]
    }
  }
}
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.
💡 Clone https://github.com/tylerscomic-lab/regex-safety-audit-mcp and follow its README for install instructions.
Casos de uso

Resumen de MCP Servers

# regex-safety-audit-mcp

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Live on MCPize](https://img.shields.io/badge/Live%20on-MCPize-6d28d9)](https://mcpize.com/mcp/regex-safety-audit-mcp)

An MCP server that parses a regex into a real hand-written AST to detect catastrophic-backtracking (ReDoS) risk —
**without ever executing the pattern itself.** A ReDoS scanner that runs the regex it's scanning would be able to
hang itself; this one never calls `new RegExp(...).test()` on anything.

## What it catches

Nested unbounded quantifiers (`(a+)+`), ambiguous alternation inside a repeated group (`(a|ab)+`), and
backreferences — the three shapes behind almost every real-world ReDoS incident. Detection is structural (a real
parser, not regex-on-regex string heuristics), verified against the canonical literature examples during testing.

## The JS-specific trap

Generic ReDoS advice tells you to wrap the offending group in an atomic group or use a possessive quantifier.
**JavaScript has neither.** `analyze_redos_risk` says so explicitly, and `suggest_safe_rewrite` gives the actual
JS-safe fix (collapsing redundant nesting, or restructuring with a negated character class) instead of advice that
would 400 as a syntax error if you tried it.

## Tools

### `analyze_redos_risk`
Full structural analysis. Returns a risk level, every finding with its exact reason, and the JS atomic-group/
possessive-quantifier caveat.

### `generate_attack_string`
For a flagged pattern, generates candidate proof-of-concept inputs at a few sizes, plus a ready-to-run Node
snippet that times the match with a **hard OS-level subprocess timeout** — so testing a genuinely catastrophic
regex can't hang your own test process either.

### `suggest_safe_rewrite`
Concrete rewritten pattern for the mechanically-fixable shapes; honest "no mechanical fix, here's what to change by
hand" for the ones that aren't.

## Use it

**Hosted (recommended):** [MCPize](https://mcpize.com/mcp/regex-safety-audit-mcp) — free tier, $7/mo Pro.

**Self-host:**
```bash
npm install
node server.js
```

## Part of a small suite

[mcp-schema-audit-mcp](https://github.com/tylerscomic-lab/mcp-schema-audit-mcp),
[cron-schedule-audit-mcp](https://github.com/tylerscomic-lab/cron-schedule-audit-mcp),
[claude-cost-audit-mcp](https://github.com/tylerscomic-lab/claude-cost-audit-mcp).

## License

MIT
claudemcpmcp-servermodel-context-protocolredosregexsecurity

Lo que la gente pregunta sobre regex-safety-audit-mcp

¿Qué es tylerscomic-lab/regex-safety-audit-mcp?

+

tylerscomic-lab/regex-safety-audit-mcp es mcp servers para el ecosistema de Claude AI. ReDoS / catastrophic-backtracking detector MCP server, via real AST parsing — never executes the pattern itself Tiene 0 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala regex-safety-audit-mcp?

+

Puedes instalar regex-safety-audit-mcp clonando el repositorio (https://github.com/tylerscomic-lab/regex-safety-audit-mcp) 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 tylerscomic-lab/regex-safety-audit-mcp?

+

tylerscomic-lab/regex-safety-audit-mcp aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene tylerscomic-lab/regex-safety-audit-mcp?

+

tylerscomic-lab/regex-safety-audit-mcp es mantenido por tylerscomic-lab. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a regex-safety-audit-mcp?

+

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

Despliega regex-safety-audit-mcp 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: tylerscomic-lab/regex-safety-audit-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/tylerscomic-lab-regex-safety-audit-mcp)](https://claudewave.com/repo/tylerscomic-lab-regex-safety-audit-mcp)
<a href="https://claudewave.com/repo/tylerscomic-lab-regex-safety-audit-mcp"><img src="https://claudewave.com/api/badge/tylerscomic-lab-regex-safety-audit-mcp" alt="Featured on ClaudeWave: tylerscomic-lab/regex-safety-audit-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a regex-safety-audit-mcp