# io.github.rog0x/regex (npm · @rog0x/mcp-regex-tools)

Regex test, explain, replace patterns for AI agents

- Trust score: 65/100 (medium)
- Change this week: +19
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@rog0x/mcp-regex-tools`: 65/100 (this document), [markdown](https://verifymcp.io/servers/rog0x-regex/rog0x-mcp-regex-tools.md), [page](https://verifymcp.io/servers/rog0x-regex/rog0x-mcp-regex-tools)

## Channel facts

- Registry: `npm`
- Package: `@rog0x/mcp-regex-tools`
- Version: `1.0.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 86/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 133 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 77/100
  - AI-judged instruction clarity (excellent).
  - Tool/resource definitions use about 458 tokens (~91/item across 5 items; 5 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add rog0x-regex -- npx -y @rog0x/mcp-regex-tools
```

### Codex

```bash
codex mcp add rog0x-regex -- npx -y @rog0x/mcp-regex-tools
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rog0x-regex": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@rog0x/mcp-regex-tools"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add rog0x-regex --command npx --arg -y --arg @rog0x/mcp-regex-tools
```

### Hermes

```yaml
mcp_servers:
  rog0x-regex:
    command: "npx"
    args: ["-y", "@rog0x/mcp-regex-tools"]
```

### Other

```json
{
  "mcpServers": {
    "rog0x-regex": {
      "command": "npx",
      "args": [
        "-y",
        "@rog0x/mcp-regex-tools"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 65, +60)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → excellent
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-08-01 (score 5, −23)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-31 (score 28, +4)

- [security regression] Malware scan: pass → unverified
- [functional improvement] Tool coverage: unverified → 100

### 2026-07-30 (score 24, −22)

- [functional regression] Tool coverage: 100 → unverified
- [functional] First check of Schema quality: unverified

### 2026-07-27 (score 46)

First indexed and scored.

## MCP tools (5)

### `regex_test` (~81 tokens)

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

Input parameters:

- `flags` (string): Regex flags (e.g. 'gi' for global case-insensitive). Defaults to 'g'
- `pattern` (string, required): The regular expression pattern to test
- `text` (string, required): The text to test the pattern against

### `regex_replace` (~122 tokens)

Find and replace using a regex pattern. Supports capture group references ($1, $2, $&, etc.) in the replacement string.

Input parameters:

- `flags` (string): Regex flags (e.g. 'gi'). Defaults to 'g'
- `pattern` (string, required): The regular expression pattern to match
- `replacement` (string, required): The replacement string. Use $1, $2 for captured groups, $& for full match, $` for text before match, $' for text after match
- `text` (string, required): The input text to perform replacements on

### `regex_extract` (~107 tokens)

Extract all matches of a regex pattern from text. Returns a structured array of match objects with full match text, captured groups, and named groups.

Input parameters:

- `captureGroup` (number): If set, return only the value of this capture group number from each match (0 = full match)
- `flags` (string): Regex flags. Defaults to 'g'
- `pattern` (string, required): The regular expression pattern to extract matches for
- `text` (string, required): The text to extract matches from

### `regex_explain` (~56 tokens)

Take a regex pattern and return a human-readable explanation of each component, including flags.

Input parameters:

- `flags` (string): Regex flags to explain (e.g. 'gi')
- `pattern` (string, required): The regular expression pattern to explain

### `text_transform` (~92 tokens)

Apply common text transformations. Available transforms: camelCase, snake_case, kebab-case, PascalCase, UPPER, lower, title, reverse, trim, deduplicate_lines, sort_lines, remove_blank_lines, count. Multiple transforms can be chained and will be applied in order.

Input parameters:

- `text` (string, required): The input text to transform
- `transforms` (array, required): One or more transformations to apply in order

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/rog0x-regex/rog0x-mcp-regex-tools#diagnostics

## Score history

- 2026-08-03: 65
- 2026-08-02: 65
- 2026-08-01: 5
- 2026-07-31: 28
- 2026-07-30: 24
- 2026-07-28: 46
- 2026-07-27: 46

## Links

- npm package: https://www.npmjs.com/package/@rog0x/mcp-regex-tools
- Socket report: https://socket.dev/npm/package/@rog0x/mcp-regex-tools
- Repository: https://github.com/rog0x/mcp-regex-tools
- Changelog RSS feed: https://verifymcp.io/servers/rog0x-regex/rog0x-mcp-regex-tools/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/rog0x-regex/rog0x-mcp-regex-tools/changelog.json
- HTML version of this page: https://verifymcp.io/servers/rog0x-regex/rog0x-mcp-regex-tools
