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 分

    請在儲存庫或註冊中心條目中宣告授權條款。