Sieve
Runs regexes on JavaScript or RE2 engines and checks them for ReDoS backtracking
Answered our tool-list check 6 of 6 times in the last 7 days; last seen working 21 hours ago.
Sieve is a free MCP server for developer tools. It runs as a hosted remote server, so there is nothing to install locally.
- Pricing
- Free
- Platforms
- Web, API, CLI
- Runs
- Remotely
- What it can do
- Read-only
- Version
- 1.0.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add --transport http sieve https://sieve.clawhard.com/mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"sieve": {
"type": "http",
"url": "https://sieve.clawhard.com/mcp"
}
}
}In Customize → Connectors → Add → Add custom connector
https://sieve.clawhard.com/mcpPaste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sieve": {
"url": "https://sieve.clawhard.com/mcp"
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"sieve": {
"type": "http",
"url": "https://sieve.clawhard.com/mcp"
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
In chatgpt.com → Plugins → + → Add custom MCP server
https://sieve.clawhard.com/mcpPaste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.
Add with the CLI
Run in a terminal
codex mcp add sieve --url https://sieve.clawhard.com/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.sieve]
url = "https://sieve.clawhard.com/mcp"Add to Grok Bot desktop app → Connect apps → Add a custom connector
https://sieve.clawhard.com/mcpEnter a Name (for example "Sieve"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.
Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sieve": {
"type": "http",
"url": "https://sieve.clawhard.com/mcp"
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "sieve": { "httpUrl": "https://sieve.clawhard.com/mcp" } } }Or run: gemini mcp add -s user --transport http sieve https://sieve.clawhard.com/mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "sieve": { "serverUrl": "https://sieve.clawhard.com/mcp" } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "sieve": { "url": "https://sieve.clawhard.com/mcp", "transport": "http" } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "sieve": { "type": "streamableHttp", "url": "https://sieve.clawhard.com/mcp" } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "sieve": { "url": "https://sieve.clawhard.com/mcp" } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "sieve": { "url": "https://sieve.clawhard.com/mcp" } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "sieve": { "url": "https://sieve.clawhard.com/mcp" } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "sieve": { "url": "https://sieve.clawhard.com/mcp" } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Sieve
Sieve tests a regular expression against the strings it should match and the strings it should reject, using either V8's JavaScript RegExp or RE2 for Go. Each line is marked pass or fail, with the matched text and capture groups shown, which makes it easy to spot a pattern that is missing its anchors and matches part of a longer string.
Beyond matching, it runs a recheck analysis that classifies a pattern as linear or as exponential or polynomial in its backtracking. When a pattern is risky, it returns a working attack string and points to the part of the pattern that needs changing. Python, PCRE and Ruby syntax is not executed directly, but the tool explains the usual differences from JavaScript and RE2.
The service is aimed at developers checking validators before shipping them, and at AI assistants that need to verify a pattern before using it. It is exposed as an MCP server with sieve_test_regex and sieve_check_redos tools, plus a JSON API, and needs no account or key.
Tools this server provides (2)
Read directly from the server.
The server marks all 2 tools read-only.
From the server's own tool labels and tool names; not verified by us.
- sieve_test_regexSays read-only
- Use when you have written, been given or are about to commit a regular expression and need to know what it really matches, instead of predicting it (signals: "write a regex for", "does this regex match", "validate emails/phone numbers/dates/slugs/URLs with a regex", "why doesn't my regex match", "test this pattern", "regex for Go", "is this regex safe", "catastrophic backtracking", "convert this P
- sieve_check_redosSays read-only
- Use when a regular expression will run on user input or untrusted data (form validation, request routing, log parsing, WAF or search rules) and must not hang the server, or when reviewing a codebase's regexes for ReDoS (signals: "is this regex safe", "ReDoS", "catastrophic backtracking", "regex hangs", "CPU spike on validation", "security review of regexes", "(a+)+"). Analyzes 1 to 20 patterns wit
What it does
- Engine-accurate matching
- Patterns run on JavaScript's native RegExp or on RE2, so results reflect the engine you will deploy on.
- Pass or fail per string
- Each test string is labelled with its outcome, the matched text and its capture groups.
- ReDoS analysis
- Patterns are classified as linear or super-linear, with an attack input and the offending part when risky.
- Syntax difference hints
- Errors from Python, PCRE or Ruby patterns come with explanations of the JavaScript or RE2 equivalent.
- MCP and JSON API access
- Assistants can call the test and check tools over Streamable HTTP, or scripts can use the OpenAPI endpoint.
Good for
- Validate an email, date or ID pattern against good and bad examples before committing it
- Find catastrophic backtracking risks in a codebase's regular expressions
- Let an AI coding assistant verify a regex it has written before using it
- Convert a Python or PCRE pattern into a form that runs in JavaScript or Go
Pricing
Free
No account or key required
Prices change. Check sieve.clawhard.com before you buy.
Sieve FAQ
How do I test a regular expression?
Paste the pattern with strings it should match and strings it should not. Sieve runs it on JavaScript's engine or RE2 and marks each string pass or fail with the match and groups.
What is ReDoS?
Regular expression denial of service happens when a backtracking engine takes exponentially many steps on a failing input, so a short string can hang a process. Sieve reports whether a pattern is linear and gives an attack string when it is not.
Does Go support lookahead?
No. RE2, Go's regexp engine, has no lookahead, lookbehind or backreferences, which keeps matching linear-time.
Can an AI assistant use Sieve?
Yes. Connect the MCP server at https://sieve.clawhard.com/mcp, which provides sieve_test_regex and sieve_check_redos, or call the JSON API described at /openapi.json.
Is Sieve free?
Yes. Sieve is free to use.
How do I add Sieve to Claude Code?
Run this command in your terminal: claude mcp add --transport http sieve https://sieve.clawhard.com/mcp
What are the best alternatives to Sieve?
The closest alternatives to Sieve are Regex Lab, Rexact, Regex Safety Audit, Regex-LE and Regex Test MCP.
Where this comes from
- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.
