regex MCP Server
Regex test, explain, replace patterns for AI agents
regex scores 51 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 44 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
51 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
85/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 51 comes from
22 + 5 + 0 + 10 + 4 + 10 = 51. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rog0x-mcp-regex-tools": { "command": "npx", "args": [ "-y", "@rog0x/mcp-regex-tools@1.0.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools5Tool docs quality grade C
All capabilitiesregex_explaintoolParse a regex pattern and return a human-readable explanation of each component and flag.
regex_extracttoolExtract all matches of a pattern from text as a structured array. Optionally return only a specific capture group.
regex_replacetoolFind and replace using regex with support for capture group references ($1, $2, $&, $<name>).
regex_testtoolTest a regex pattern against text. Returns all matches with indices, captured groups, and named groups.
text_transformtoolApply common text transformations: camelCase, snakecase, 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.
About
mcp-regex-tools
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 info@example.com or support@example.com" })
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
Frequently asked questions
What is regex MCP Server?
Regex test, explain, replace patterns for AI agents
How do I install regex MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. regex MCP Server runs locally from the npm package @rog0x/mcp-regex-tools with the command npx -y @rog0x/mcp-regex-tools@1.0.1.
Is regex MCP Server free and open source?
Yes. regex MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does regex MCP Server support remote (HTTP) connections?
No remote endpoint is listed for regex MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does regex MCP Server provide?
regex MCP Server provides 5 tools, including regex_explain, regex_extract, regex_replace, and regex_test. See the full tool list for descriptions and parameters.
How is regex MCP Server's trust score calculated?
regex MCP Server scores 51 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.