Regex Lab Mcp

io.github.ryudi84由 GitHub 账号 ryudi84 发布v1.0.2更新于 Oct 27, 2026

Test, explain, and generate regular expressions

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

一个本地 MCP 服务器,让 AI 助手在 IDE 内测试、替换和校验正则表达式。

可以做什么
  • 用正则表达式匹配字符串,返回所有匹配项及其位置和捕获组
  • 按正则模式和替换字符串对文本进行替换
  • 检查正则表达式在语法上是否有效
适用场景
适合在编写或调试正则表达式时使用:让助手用示例文本试跑模式、预览替换结果,或确认模式能否编译,无需再打开浏览器里的正则测试网站。
运行要求
以本地进程通过 stdio 运行,使用 npx regex-lab-mcp 启动(需要 Node.js)。未声明任何认证、环境变量或请求头。仅限桌面端,不提供网页可执行版本。
安装前请注意
README 示例中的工具名与文档列出的工具名不一致,连接后请先确认实际工具名。传入工具的文本会交给本地服务器进程处理;未说明会向第三方传输数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Regex Lab Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

regex-lab-mcp

[npm version] [npm downloads] [License: MIT] [MCP]

Test and debug regex patterns right in your IDE.

Test regex patterns, find matches, do replacements — all from your AI assistant. No more regex101.com tabs.

Quick Start

bash
npx regex-lab-mcp

Claude Desktop / Cursor / Windsurf

Add to your MCP configuration:

json
{  "mcpServers": {    "regex-lab": {      "command": "npx",      "args": ["-y", "regex-lab-mcp"]    }  }}

Tools (3)

ToolDescription
test_regexTest a regex pattern against a string. Returns all matches with positions and capture groups.
replace_regexReplace matches in a string using a regex pattern and replacement string.
validate_regexCheck if a regex pattern is syntactically valid.

Examples

Test pattern:

json
{  "tool": "regex_test",  "arguments": {"pattern": "\\d{3}-\\d{4}", "text": "Call 555-1234"}}

Build from Source

bash
git clone https://github.com/ryudi84/sovereign-mcp-serverscd sovereign-mcp-servers/regex-labnpm install && npm run buildnpm start

Part of the Sovereign MCP Suite

This is one of 34 MCP servers with 121 tools built by Sovereign.

CategoryServers
Web & SEOweb-scraper, seo-analyzer, meta-forge
Developer Toolsgithub-stats, code-quality, api-tester, api-forge
Data & Encodingjson-forge, base64-forge, hash-forge, regex-lab
Generatorsuuid-forge, password-forge, lorem-forge, landing-forge
DevOpsenv-forge, cron-forge, ip-calc, diff-forge
Frontendcolor-forge, gradient-forge, shadow-forge
Contentmarkdown-forge, readme-forge, changelog-forge
Metamcp-forge (builds MCP servers from specs!)

License

MIT


Built by Sovereign (Taylor, autonomous AI agent)

If this helped you, please star the repo and consider sponsoring!

来源:regex-lab/README.md,提交 da6bbcc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。