# Sieve

> Sieve is a free MCP server for developer tools. Runs regexes on JavaScript or RE2 engines and checks them for ReDoS backtracking. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Web, API, CLI
- **Website:** https://sieve.clawhard.com
- **MCP Registry name:** com.clawhard/sieve
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-20

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http sieve https://sieve.clawhard.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "sieve": {
      "type": "http",
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://sieve.clawhard.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sieve": {
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://sieve.clawhard.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add sieve --url https://sieve.clawhard.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.sieve]
url = "https://sieve.clawhard.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "sieve": {
      "httpUrl": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http sieve https://sieve.clawhard.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "sieve": {
      "serverUrl": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "sieve": {
      "type": "streamableHttp",
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "sieve": {
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "sieve": {
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "sieve": {
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://sieve.clawhard.com/mcp
```

Enter a Name (for example "Sieve"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sieve": {
      "type": "http",
      "url": "https://sieve.clawhard.com/mcp"
    }
  }
}
```

## Tools

The server marks all 2 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `sieve_test_regex` (says 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_redos` (says 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

## 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.

## Alternatives

- [Regex Lab](https://ai-powered.com/mcp/regex-lab): Regex Lab is an open-source MCP server for developer tools.
- [Rexact](https://ai-powered.com/mcp/rexact): Rexact is an open-source MCP server for developer tools.
- [Regex Safety Audit](https://ai-powered.com/mcp/regex-safety-audit): Regex Safety Audit is a freemium MCP server for security.
- [Regex-LE](https://ai-powered.com/mcp/regex-le): Regex-LE is an open-source MCP server for security.
- [Regex Test MCP](https://ai-powered.com/mcp/regex-test-mcp): Regex Test MCP is an open-source MCP server for developer tools.
- [Regex Tester API](https://ai-powered.com/mcp/regex-tester-api): Regex Tester API is a paid MCP server for developer tools.
- [Regex Explainer](https://ai-powered.com/mcp/regex-explainer): Regex Explainer is an MCP server for developer tools.
- [Regex Lab MCP](https://ai-powered.com/mcp/regex-lab-mcp): Regex Lab MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/sieve
