Regex test, explain, replace patterns for AI agents
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Regex and text processing tools for AI agents via the Model Context Protocol (MCP).
| Tool | Description |
|---|---|
regex_test | Test a regex pattern against text. Returns all matches with indices, captured groups, and named groups. |
regex_replace | Find and replace using regex with support for capture group references ($1, $2, $&, $<name>). |
regex_extract | Extract all matches of a pattern from text as a structured array. Optionally return only a specific capture group. |
regex_explain | Parse a regex pattern and return a human-readable explanation of each component and flag. |
text_transform | Apply common text transformations: camelCase, snake_case, kebab-case, PascalCase, UPPER, lower, title case, reverse, trim, deduplicate lines, sort lines, remove blank lines, count words/chars/lines. Chain multiple transforms in one call. |
Add this to your Claude Desktop config file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonOr add to your .mcp.json:
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/regex)<a href="https://allmcps.com/mcp/regex"><img src="https://allmcps.com/api/badge/regex?style=directory" alt="Regex on AllMCPs" /></a>