verified-regex-generator
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@verified-regex-generatorcreate a regex for a valid email address"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Verified Regex Generator
MCP → Verified Regex Generator. The user describes a pattern in plain English. An LLM generates the regex. An agent generates real sample strings (positive + negative examples), tests the regex against them with the actual
reengine, and iterates if it's wrong. Regex is infamous for looking right while being subtly wrong — verification is the whole value here, not the generation.
Runs on Groq (openai/gpt-oss-120b by default) — fast and free-tier
friendly, so it's cheap to demo publicly.
This isn't "ask an LLM for a regex and hope." It's a closed verification loop:
description ──► LLM writes a candidate regex
│
description ──► LLM writes real test strings (incl. tricky near-misses)
│
▼
Python's `re` engine checks the candidate
against every test string — ground truth,
not the model's opinion of itself
│
┌─────────┴─────────┐
all pass something failed
│ │
▼ ▼
done feed the exact failures
back to the model, try againDemo
A real run: "US phone number" → the agent writes 16 test strings, proposes a candidate regex,
checks it against Python's real re engine, and converges on a verified pattern in 2 iterations.


Related MCP server: EvalView
What's in here
regex_agent/core.py— the actual agent loop (model-agnostic of transport). Everything else is a thin wrapper around this.mcp_server/— a real MCP server exposinggenerate_verified_regexas a tool, so it can be used directly from Claude Desktop or Claude Code.web/— a FastAPI + vanilla-JS demo with two parts:A live, animated view of the agent's reasoning: test cases, each candidate regex, and the pass/fail table per iteration.
A regex101-style live tester underneath — an editable pattern field with flags (
g/i/m/s/full-match), live match highlighting against your own test string, a match list with capture groups, and a plain-English token-by-token breakdown of the regex (all client-side, no API calls). It auto-fills with whatever the agent just verified, but works standalone for any regex you paste in — useful even if you already know regex and just want to test one.
No MCP client required — runs in a browser.
Setup
pip install -r requirements.txt
cp .env.example .env # then add your GROQ_API_KEYRun the web demo
cd web
python server.pyOpen http://127.0.0.1:8000.
Run the MCP server
Add this to your MCP client config (e.g. Claude Desktop's claude_desktop_config.json,
or .claude/settings.json for Claude Code):
{
"mcpServers": {
"verified-regex-generator": {
"command": "python",
"args": ["/absolute/path/to/2 project/mcp_server/server.py"]
}
}
}Then ask Claude something like "Use the verified regex generator to build me a regex for a US phone number." — it will call the tool, which runs the full generate → test → verify loop server-side and returns a JSON report.
Why this is a good showcase
Most "AI writes code" demos stop at generation. This one treats the LLM's first answer as a
hypothesis, not an answer — and only claims success once it's checked against ground truth
(the real regex engine, on real strings, including adversarial near-misses the model itself
proposes). That loop — generate → verify → revise — is the core pattern behind reliable
agentic tools, and it's small enough to read end-to-end in regex_agent/core.py.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceDynamically generates MCP tools from OpenAPI specifications, enabling AI assistants to interact with any REST API through natural language. Supports multiple APIs with authentication, parameter validation, and integration with Claude Desktop and LangChain.1MIT
- AlicenseAqualityAmaintenanceMCP server that lets coding agents test AI agents. Create YAML test cases, snapshot golden baselines, check for regressions, and generate visual reports all from inside Claude Code or any MCP-compatible tool. Works with LangGraph, CrewAI, OpenAI, Claude, Mistral, and any HTTP API.1029128Apache 2.0
- FlicenseNot gradedqualityDmaintenanceTransforms single-attempt coding into a multi-attempt, test-validated refinement loop by running your actual test suite and feeding failures back to the LLM as structured directives.3
- FlicenseAqualityDmaintenanceAuto-generates and manages test cases for any project from feature descriptions, with tools for adding, listing, updating, and exporting test cases via Claude.8
Related MCP Connectors
Deterministic regex synthesis from labeled examples. Zero LLM, proof matrix, backtracking audit.
Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zeelShah-12/verified-regex-generator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server