Regex Tools
FreeMaintainedProvides a suite of regex and text processing tools for AI agents, including pattern testing, extraction, and replacement with capture group support. It also en
About
Provides a suite of regex and text processing tools for AI agents, including pattern testing, extraction, and replacement with capture group support. It also enables various text transformations like case conversion, line sorting, and deduplication through the Model Context Protocol.
README
Regex and text processing tools for AI agents via the Model Context Protocol (MCP).
Tools
| 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. |
Setup
npm install
npm run build
Usage with Claude Desktop
Add this to your Claude Desktop config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"regex-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-regex-tools/dist/index.js"]
}
}
}
Usage with Claude Code
claude mcp add regex-tools node D:/products/mcp-servers/mcp-regex-tools/dist/index.js
Or add to your .mcp.json:
{
"mcpServers": {
"regex-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-regex-tools/dist/index.js"]
}
}
}
Examples
Test a regex
regex_test({ pattern: "(\\d{4})-(\\d{2})-(\\d{2})", text: "Today is 2026-03-19 and tomorrow is 2026-03-20" })
Replace with capture groups
regex_replace({ pattern: "(\\w+)\\s(\\w+)", replacement: "$2 $1", text: "hello world" })
Extract matches
regex_extract({ pattern: "[\\w.]+@[\\w.]+", text: "Contact us at [email protected] or [email protected]" })
Explain a regex
regex_explain({ pattern: "^(?:https?://)?(?:www\\.)?([\\w-]+)\\.\\w{2,}$", flags: "i" })
Transform text
text_transform({ text: "hello world example", transforms: ["PascalCase"] })
text_transform({ text: "some text\nwith\nlines\nwith\nduplicates\nlines", transforms: ["deduplicate_lines", "sort_lines"] })
License
MIT
Install Regex Tools in Claude Desktop, Claude Code & Cursor
unyly install mcp-regex-toolsInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-regex-tools -- npx -y @rog0x/mcp-regex-toolsStep-by-step: how to install Regex Tools
FAQ
Is Regex Tools MCP free?
Yes, Regex Tools MCP is free — one-click install via Unyly at no cost.
Does Regex Tools need an API key?
No, Regex Tools runs without API keys or environment variables.
Is Regex Tools hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Regex Tools in Claude Desktop, Claude Code or Cursor?
Open Regex Tools on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
- New version published
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Regex Tools with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
