Regex Explainer
Server Details
Explain a regex in plain English and detect catastrophic backtracking risk.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusing it with another. The tool's purpose is clearly singular: explaining regular expressions.
The sole tool name 'explain_regex' follows the standard and predictable verb_noun convention. Without additional tools, there are no inconsistencies to penalize.
A single tool feels thin for a server, even though it is a well-designed and appropriately scoped explainer. This falls on the borderline low end of the typical 3-15 tool range.
For the stated domain of explaining regexes, the tool is comprehensive: it parses patterns, explains steps, flags catastrophic backtracking and other dangerous issues, and reports parsing errors. There are no obvious missing operations within the server's singular purpose.
Available Tools
1 toolexplain_regexExplain a regular expressionARead-onlyInspect
Explain a regular expression in plain English and detect the failure modes that make patterns dangerous rather than merely wrong.
Use this whenever a regex needs to be read, reviewed, or verified — and ALWAYS before putting a pattern somewhere it will run against untrusted input. The critical check is catastrophic backtracking: a pattern like (a+)+$ is three characters longer than a safe equivalent, looks harmless, and takes minutes of CPU on a 30-character input that almost matches. That makes it a denial-of-service vector. Whether a pattern is vulnerable depends on whether nested quantifiers can match the same characters in more than one way, which is a structural property that is unreliable to judge by reading.
It also flags: missing anchors (an unanchored validator accepts any string that merely CONTAINS a valid value), unescaped dots, character ranges like [A-z] that span punctuation, alternation precedence mistakes where an anchor applies to only one branch, and constructs JavaScript does not support.
Input: pattern accepts either a bare pattern or a full /pattern/flags literal. JavaScript syntax; PCRE-only constructs are reported as unsupported rather than guessed at.
Returns: summary (one sentence), steps (an ordered walkthrough), warnings (each with a code, severity, detail, and fix), flagNotes, capture group counts and names, and hasBlockingIssue — check that flag first. If the pattern cannot be parsed it returns an error naming the position, rather than a plausible-looking explanation of something else.
Inputs: pattern (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Detects catastrophic-backtracking (ReDoS) regex risk via AST parsing, with JS-safe rewrites.
Run regexes on real engines (JavaScript, RE2/Go) against test strings, and prove ReDoS safety.
Validate and explain cron expressions; list next/previous run times in any time zone, DST-aware.
Deterministic regex synthesis from labeled examples. Zero LLM, proof matrix, backtracking audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to statically analyze regular expressions for catastrophic-backtracking (ReDoS) risk through real AST parsing rather than executing the pattern, flagging nested quantifiers, ambiguous alternation, and backreferences. It also generates candidate proof-of-concept attack strings with a timeout-guarded test snippet and suggests JavaScript-safe rewrites.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to explain regex patterns in plain English and statically assess ReDoS risk before shipping, without executing the pattern or requiring an API key.2MIT
- AlicenseAqualityDmaintenanceProvides tools to test regex patterns for correctness, performance (ReDoS), and memory usage, and suggests safe rewrites. Enables LLMs to iterate on regex generation with verifiable feedback.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to verify, explain, and audit regular expressions entirely offline, including detection of ReDoS vulnerabilities and compatibility across different regex engines.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.