1. Conduid
  2. Developer Tools
  3. io.github.rog0x/regex
MCP server · Developer Tools

io.github.rog0x/regex

Regex test, explain, replace patterns for AI agents

Unclaimed last commit 7 months ago devtools
37Low

Scored 6 months ago · breakdown

About io.github.rog0x/regex

io.github.rog0x/regex is an MCP server published by rog0x in the Developer Tools category: regex test, explain, replace patterns for AI agents.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

Claude Code
claude mcp add io-github-rog0x-regex -- npx -y @rog0x/mcp-regex-tools
npx
npx -y @rog0x/mcp-regex-tools

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

regex_explainParse a regex pattern and return a human-readable explanation of each component and flag.

Parameters not published.

regex_extractExtract all matches of a pattern from text as a structured array. Optionally return only a specific capture group.

Parameters not published.

regex_replaceFind and replace using regex with support for capture group references (`$1`, `$2`, `$&`, `$<name>`).

Parameters not published.

regex_testTest a regex pattern against text. Returns all matches with indices, captured groups, and named groups.

Parameters not published.

text_transformApply 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.

Parameters not published.

Ask AI

✦

Ask AI about io.github.rog0x/regex

Powered by Claude · Grounded in docs

I know everything about io.github.rog0x/regex. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

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

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About io.github.rog0x/regex

How do I install io.github.rog0x/regex?

Run claude mcp add io-github-rog0x-regex -- npx -y @rog0x/mcp-regex-tools, then add the server to your MCP client's configuration.

Is io.github.rog0x/regex safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.rog0x/regex still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.