Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Regex Toolkit Api

БесплатноНе проверен

Enables regex testing, replacement, splitting, validation, explanation, escaping, common patterns, and benchmarking through an MCP server.

GitHubEmbed

Описание

Enables regex testing, replacement, splitting, validation, explanation, escaping, common patterns, and benchmarking through an MCP server.

README

logo

lazymac API Store Gumroad MCPize

regex-toolkit-api

Building in public from $0 MRR. Star if you want to follow the journey — lazymac-mcp (42 tools, one MCP install) · lazymac-k-mcp (Korean wedge) · lazymac-sdk (TS client) · api.lazy-mac.com · Pro $29/mo.

npm Smithery lazymac Pro api.lazy-mac.com

🚀 Want all 42 lazymac tools through ONE MCP install? npx -y @lazymac/mcp · Pro $29/mo for unlimited calls.

Regex testing, explanation, and generation REST API + MCP server. No external APIs required.

Quick Start

npm install
npm start          # REST API on http://localhost:4200
npm run mcp        # MCP server (stdin/stdout)

REST API Endpoints

Method Endpoint Description
GET / Health check / API info
POST /api/v1/test Test regex against text (matches, groups, indices)
POST /api/v1/replace Replace using regex
POST /api/v1/split Split text with regex
POST /api/v1/validate Validate regex syntax
GET /api/v1/patterns List common regex patterns
GET /api/v1/patterns/:name Get specific pattern (email, url, phone, ipv4, etc.)
POST /api/v1/explain Explain regex in plain English
POST /api/v1/escape Escape special regex characters
POST /api/v1/benchmark Benchmark regex performance

Examples

Test a regex

curl -X POST http://localhost:4200/api/v1/test \
  -H 'Content-Type: application/json' \
  -d '{"pattern": "(\\d+)", "text": "abc 123 def 456", "flags": "g"}'

Explain a regex

curl -X POST http://localhost:4200/api/v1/explain \
  -H 'Content-Type: application/json' \
  -d '{"pattern": "^[a-z]+\\d{2,4}$", "flags": "i"}'

Get a common pattern

curl http://localhost:4200/api/v1/patterns/email

Common Patterns Library

email, url, phone, ipv4, ipv6, date_iso, date_us, credit_card, hex_color, uuid, mac_address, slug, semver, jwt, html_tag, username, strong_password

MCP Server

Add to your Claude Desktop config:

{
  "mcpServers": {
    "regex-toolkit": {
      "command": "node",
      "args": ["/path/to/regex-toolkit-api/src/mcp-server.js"]
    }
  }
}

MCP Tools

  • regex_test — Test regex with full match details
  • regex_replace — Regex replace
  • regex_split — Split by regex
  • regex_validate — Validate syntax
  • regex_explain — Plain English explanation
  • regex_escape — Escape special characters
  • regex_patterns — Common patterns library
  • regex_benchmark — Performance benchmark

Docker

docker build -t regex-toolkit-api .
docker run -p 4200:4200 regex-toolkit-api

License

MIT

💡 Host your own stack? Get $200 DigitalOcean credit via lazymac referral link.

from github.com/lazymac2x/regex-toolkit-api

Установка Regex Toolkit Api

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/lazymac2x/regex-toolkit-api

FAQ

Regex Toolkit Api MCP бесплатный?

Да, Regex Toolkit Api MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Regex Toolkit Api?

Нет, Regex Toolkit Api работает без API-ключей и переменных окружения.

Regex Toolkit Api — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Regex Toolkit Api в Claude Desktop, Claude Code или Cursor?

Открой Regex Toolkit Api на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Regex Toolkit Api with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development