io.github.rog0x/regex — MCP Server
This MCP server provides Regex test, explain, and replace capabilities for AI agents via the Model Context Protocol. It exposes tools to test patterns, perform replacements, extract matches, and explain patterns, all designed for integration with MCP-enabled agents and model contexts.
🛠️ Key Features
- Tools: regex_test, regex_replace, regex_extract, regex_explain
- Returns matches with indices, groups, and named captures
- Supports capture group references in replacements
- Structured extraction of matches as arrays
- TypeScript-friendly interfaces for integration
🚀 Use Cases
- Validate and debug regex patterns within MCP-driven workflows
- Text processing: extraction and replacement in agent prompts
- Explain and decompose complex patterns for model contexts
- Prepare structured data for downstream MCP tools
⚡ Developer Benefits
- Clear MCP tooling for regex and text processing
- Rich match data: indices, groups, named groups
- Consistent, explainable pattern analysis
- Easy integration with TypeScript projects and MCP servers
⚠️ Limitations
- Based on readme excerpt; ensure full tool docs for complete capabilities
- Output formats depend on MCP implementation and tooling support