# Regex Tester API

> Regex Tester API is a paid MCP server for developer tools. Pay-per-call MCP server that tests regex patterns against strings and explains them. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Repository:** https://github.com/br0ski777/regex-generator-x402
- **MCP Registry name:** io.github.Br0ski777/regex-generator
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README says this server runs regex tests on demand: you send a pattern, optional flags, and an array of strings, and it returns every match with its position, capture groups, and a plain-English explanation of the pattern. It is exposed over MCP (SSE) and also as a plain HTTP endpoint, so an AI client can call it directly without a local regex runtime.

Payment is per call through the x402 protocol, using USDC on Base L2. The listing describes no API key, account signup, or rate-limit tiers; each request is charged at the listed per-call price of $0.003 for the single text_test_regex tool.

It suits developers and agents that want to check a pattern before putting it into code, or that need to pull structured matches out of text. The README points users to other tools in the same marketplace for classification, PII detection and text diffing rather than handling those here.

## Features

- **Full match results:** Returns every match with its value, index position and capture groups for each input string.
- **Plain-English explanations:** Describes what a pattern matches in ordinary language to help review unfamiliar expressions.
- **Configurable flags:** Accepts the g, i, m, s and u regex flags, defaulting to global matching.
- **Pay-per-call access:** Charged per request via x402 in USDC on Base, with no signup or API key required.
- **MCP and HTTP endpoints:** Reachable as an MCP server over SSE or as a direct HTTP POST endpoint.

## Good for

- Check a regex against sample inputs before shipping it in production code
- Debug why a pattern fails to match a given string
- Extract structured values such as phone numbers or codes from text inside an agent workflow
- Get a plain-language summary of an existing regular expression during code review

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport sse regex-generator https://regex-generator.api.klymax402.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://regex-generator.api.klymax402.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "regex-generator": {
      "url": "https://regex-generator.api.klymax402.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "regex-generator": {
      "type": "sse",
      "url": "https://regex-generator.api.klymax402.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "regex-generator": {
      "serverUrl": "https://regex-generator.api.klymax402.com/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "regex-generator": {
      "type": "sse",
      "url": "https://regex-generator.api.klymax402.com/mcp"
    }
  }
}
```

## Tools

- `text_test_regex`: Test a regex pattern against input strings

## FAQ

### Does it require an API key or account?

The README says no API key, no signup and no rate-limit wall; payment is made per call via x402 in USDC on Base.

### How much does a call cost?

The README lists $0.003 per call for the text_test_regex tool.

### Which regex flags are supported?

The flags g, i, m, s and u are accepted, with g as the default.

### What does the response contain?

Each result includes the input string, whether it matched, the matched values with their indexes and groups, a total match count and a pattern explanation.

### Is Regex Tester API free?

No. Regex Tester API is a paid product.

### How do I add Regex Tester API to Claude Code?

Run this command in your terminal: claude mcp add --transport sse regex-generator https://regex-generator.api.klymax402.com/mcp

### What are the best alternatives to Regex Tester API?

The closest alternatives to Regex Tester API are Regex Test MCP, Regex Lab MCP, Regex Ai MCP, Regex Lab and Rexact.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Regex Test MCP](https://ai-powered.com/mcp/regex-test-mcp): Regex Test MCP is an open-source MCP server for developer tools.
- [Regex Lab MCP](https://ai-powered.com/mcp/regex-lab-mcp): Regex Lab MCP is an open-source MCP server for developer tools.
- [Regex Ai MCP](https://ai-powered.com/mcp/regex-ai-mcp): Regex Ai MCP is an open-source MCP server for developer tools.
- [Regex Lab](https://ai-powered.com/mcp/regex-lab): Regex Lab is an open-source MCP server for developer tools.
- [Rexact](https://ai-powered.com/mcp/rexact): Rexact is an open-source MCP server for developer tools.
- [Webhook Tester API](https://ai-powered.com/mcp/webhook-tester-api): Webhook Tester API is a paid MCP server for developer tools.
- [x402 Tool Shop](https://ai-powered.com/mcp/x402-tool-shop): x402 Tool Shop is a paid MCP server for developer tools.
- [Surface Contract: platform API behavior and x402 pre-payment checks](https://ai-powered.com/mcp/surface-contract-platform-api-behavior-and-x402-pre-payment): Surface Contract: platform API behavior and x402 pre-payment checks is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/regex-tester-api
