Redra

io.github.sacrosauntPublished by GitHub account sacrosauntv0.1.0Updated Oct 25, 2026

Search current class-action settlements and identify possible matches using structured filters.

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Searches current class-action settlement records by keyword and structured filters, returning full records and official source links for possible matches.

What you can do
Search settlements by required keywords plus status, type, state, proof and deadline filters, with source metadata and quality flags returned per result. Run up to 50 independent searches in one call, deduplicated across queries and capped by a total result limit. Fetch complete stored records and official source links for one settlement ID or up to 20 at once. Read dataset source, license, freshness, counts and hosted aggregate metrics.
When to use it
Useful when someone wants to find class-action settlements or consumer compensation programs they might be part of, or wants to scan several brands, products or incidents at once. It surfaces leads only; eligibility still has to be confirmed against the official settlement or claim page.
Requirements
The hosted endpoint needs no local process, API key or account. Self-hosting requires Python 3.11 or newer, the package installed from source, and a downloaded SQLite dataset kept fresh with the dataset update command.
Before you install
Do not submit names, addresses, account numbers, health details or claim identifiers; search by brand, product, incident, date range and state instead. Results are keyword matches, not eligibility decisions, and the server does not submit claims or give legal advice. The hosted service records each network-source IP with a cumulative work-unit count for aggregate usage measurement, and availability is best effort. Self-hosted HTTP transport has no authentication or TLS, so do not expose it on a

Installation

In SourceWeft

  1. Open Redra in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.sacrosaunt%2Fredra/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "redra": {
      "type": "http",
      "url": "https://mcp.redra.ai/mcp"
    }
  }
}

README

[Redra]

Redra MCP

Redra is an open-source Model Context Protocol server that searches current class-action settlement records. It works with any MCP client and supports two deployment choices:

  1. Use the hosted Redra MCP and dataset (recommended).
  2. Self-host both the MCP and a local copy of Redra's published dataset.

Redra identifies possible keyword matches. It does not determine legal eligibility, submit claims, or provide legal advice.

Data source and license

During the technical beta, local mode defaults to the public SettleSignal JSON feed at https://settlesignal.com/data/settlements.json. SettleSignal identifies its Hugging Face dataset card as an official profile, and that card licenses the feed's public fields under CC BY 4.0. Redra preserves source attribution and links while normalizing fields and adding derived lifecycle and quality metadata.

Redra also supports its independently assembled, content-addressed open and upcoming publication format. That publication remains in a gated shadow beta; it is not the fresh-install default until its launch checks pass. Every imported independent record must have independent discovery lineage and Tier A or B provenance, and a failed validation leaves the prior local snapshot untouched.

open records have a currently usable filing endpoint. upcoming records require evidence of a future claim window but have no current claim form. They are exposed only as a watchlist and are excluded from the open count and claimable-money total. The normalized factual compilation is published under CC BY 4.0. Search results preserve official source links and carry source and change attribution. See NOTICE.md.

The provider is explicit and is never inferred from a downloaded payload. Set REDRA_DATASET_PROVIDER=independent to consume Redra's publication, or leave it as settlesignal during the transition. REDRA_DATASET_URL can override the selected provider's default URL.

No settlement data is committed to this repository.

Hosted service (public preview)

The project currently operates this optional public service:

  • Website: https://redra.ai/
  • Documentation: https://redra.ai/docs
  • Hosted MCP: https://mcp.redra.ai/mcp
  • Privacy policy: https://redra.ai/privacy

The operational database behind the hosted MCP is private, has no public Fly route, and is reachable only by the hosted MCP over authenticated internal networking. The MCP currently requires no user API key. It does not impose a per-IP quota, because hosted AI clients can send many unrelated users through shared network addresses. Availability is provided on a best-effort basis without an uptime, completeness, or fitness-for-eligibility guarantee.

The Redra application does not persist prompts, profile data, or MCP tool arguments. The hosted MCP receives only tool arguments, not an agent's complete conversation. Hosting infrastructure may retain ordinary operational metadata, such as timestamps and request paths, in short-lived access logs. The hosted MCP stores each network-source IP address with a cumulative count of MCP work units for aggregate usage measurement; items in a batch count individually. A network source may be shared provider infrastructure and is not treated as a Redra user identity or quota key. Search terms and tool arguments are not associated with that counter. Self-hosted Redra does not enable this hosted usage counter.

Option 1: hosted MCP and dataset (recommended)

Connect a Streamable HTTP MCP client to the URL published by the Redra service, currently:

text
https://mcp.redra.ai/mcp

No local process or dataset is needed.

Option 2: self-hosted MCP and dataset

Python 3.11 or newer is required. Clone and install Redra:

bash
git clone https://github.com/sacrosaunt/Redra.gitcd Redrapython -m venv .venvsource .venv/bin/activatepip install -e .

The project pins the current stable v1 line of the official Python MCP SDK with mcp>=1.27,<2. Version 2 was still prerelease when this release was built.

Download the settlement dataset and start the local MCP:

bash
export REDRA_DATABASE_PATH="$PWD/data/settlements.db"redra-mcp dataset updateredra-mcp serve --transport stdio

The update is transactional: a failed download or invalid source payload leaves the previous SQLite dataset intact. To keep a local dataset fresh automatically:

bash
redra-mcp dataset watch --interval-hours 24

This performs an update immediately and then once every 24 hours. It is optional; self-hosters can instead invoke dataset update from their existing cron system.

To expose the local MCP over Streamable HTTP:

bash
export REDRA_PORT=8000redra-mcp serve --transport streamable-http

The MCP endpoint is /mcp and binds to 127.0.0.1 by default.

Network safety: Redra's HTTP transport does not provide authentication or TLS. Do not bind it to 0.0.0.0 or publish port 8000 directly unless access is protected by a trusted authenticated reverse proxy, firewall, or private network.

Docker

Start the server and its once-daily updater:

bash
docker compose up --build

The updater and MCP share the SQLite volume. The MCP remains available if a refresh fails, and the previous valid snapshot stays in place. Compose publishes the MCP only on the host loopback interface at 127.0.0.1:8000.

MCP tools

  • search_settlements: keyword and structured-filter search.
  • search_settlements_batch: runs up to 50 independent searches in one MCP call without changing the logical-AND meaning of each query's keywords. Records are deduplicated across queries, and matched_query_indices preserves every search angle that found each record.
  • get_settlement: fetches one record and its official source links, with agent guidance to verify the complete eligibility terms when browsing is available.
  • get_settlements: fetches up to 20 finalist records together before the agent composes its answer.
  • get_dataset_info: reports source, license, freshness, and counts.

The hosted provider also returns its cached claimable-money headline in dataset info. It is calculated only from records explicitly marked for inclusion in the claimable total. Upcoming records never contribute. Self-hosted providers may return additional provider-specific aggregate metrics in the same extra object.

Search behavior

Every item in keywords is required (logical AND). Agents should use independent query objects in search_settlements_batch for unrelated companies, products, or alternative terms. This preserves each query's meaning while avoiding a long series of MCP round trips.

Batch search caps the unique records returned across all queries with max_total_results, which defaults to 50 and may be set as high as 100. The cap does not reduce the number of searches performed. Query summaries report each query's total match count, sampled count, returned IDs, and omitted sampled count; the unique records appear once in the top-level items list.

For broad eligibility scans, the MCP directs agents to search expansively across plausible brands, aliases, parent companies, subsidiaries, services, purchases, fees, and incidents recalled from the context the client makes available. It also considers eligibility-relevant demographic angles such as state, age group, occupation, student or veteran status, parent or guardian status, and housing or household situation.

Recalled or inferred associations are query candidates, not facts or eligibility decisions, and queries must not contain identifying information. A category-level or demographic association alone is not enough to call a result a match.

For each plausible result, agents with web access are directed to inspect the official settlement or claim page for the class definition, qualifying dates, products or services, geographic limits, exclusions, proof requirements, and deadline. Agents should compare only confirmed terms with context the user has made available. Before composing the final answer, agents retrieve the complete stored record for every finalist with get_settlement or get_settlements. Plausible results are presented as concise lead cards showing why each surfaced, confirmed matching terms, important unknowns, deadline, payout, proof requirement, and the official link when those fields are available. Evidence strength is ranked before urgency, with labels such as Notice found, Strong possible match, and Needs your confirmation; imminent deadlines remain prominent.

A direct notice is strong evidence but does not prove every class condition. Agents ask a focused non-sensitive follow-up before recommending action when one unknown could change the recommendation. A candidate mentioned during progress receives an explicit final disposition, and purely category-level or demographic candidates are kept out of the action list unless the user requests an exhaustive trace.

Agents search and investigate before asking for more information. When non-sensitive answers would materially clarify a lead, they prefer the client's native structured-question or question-card interface. Clients without that interface fall back to asking the same focused questions directly in chat. Questions should explain why the answer matters, offer a Not sure or Skip choice where appropriate, and never request identifying or sensitive information.

Agents without browsing must say that they could not independently verify the complete terms, avoid guessing, and direct the user to the official link.

Claim status defaults to open. The public MCP supports only open and upcoming. If a broad open scan produces no credible leads or only weak leads, agents may run focused upcoming searches for the strongest user-specific angles. Upcoming records are not yet claimable, are presented as a separate watchlist, and are excluded from current claim counts and money totals. Historical, payment, and uncertain lifecycle states remain internal rather than being exposed as public search options.

The provider's opaque verification tier is not a search filter. It is retained in results as source_verification_status for transparency. Redra also returns objective source_kind, source_checked_at, claim_url_available, claimability, and quality_flags. A source label such as Verified record is converted to an open or closed lifecycle when its deadline makes that determination possible.

Use the exact settlement_type filter instead of keywords when searching by type: class_action_settlement, consumer_product_settlement, data_breach_settlement, financial_fee_settlement, government_refund, other_consumer_compensation, privacy_settlement, regulatory_compensation_program, or state_ag_refund. Keywords intentionally do not search the settlement_type field.

Other filters include state, proof requirement, deadline range, and result limit. An empty applicable_states list is treated as nationwide.

Environment variables

VariablePurposeDefault
REDRA_DATABASE_PATHLocal SQLite databaseplatform data directory
REDRA_DATASET_PROVIDERDataset contract: settlesignal or independentsettlesignal
REDRA_DATASET_URLURL override for the selected providerprovider-specific default
REDRA_REQUEST_TIMEOUTHTTP timeout in seconds20
REDRA_HOSTStreamable HTTP bind address127.0.0.1
REDRA_PORT / PORTStreamable HTTP port8000
REDRA_RATE_LIMIT_PER_HOURStreamable HTTP requests allowed per IP; 0 disables0
REDRA_TRUST_FLY_HEADERSTrust Fly's client-IP headerfalse
REDRA_MAX_CONCURRENT_REQUESTSMaximum in-flight HTTP requests; 0 disables0
REDRA_MAX_REQUEST_BODY_BYTESMaximum Streamable HTTP request-body size; 0 disables1048576
REDRA_SEARCH_CACHE_TTL_SECONDSIn-process normalized search-cache lifetime; 0 disables30
REDRA_SEARCH_CACHE_MAX_ENTRIESMaximum in-process search-cache entries; 0 disables512

Per-IP rate limiting is disabled by default. It should not be used as a per-user quota behind ChatGPT, Claude, or another hosted client because unrelated users may share provider egress addresses. Operators that understand their direct network topology can still enable it explicitly. Arbitrary X-Forwarded-For values are never trusted. Local stdio mode is never rate-limited.

Only enable REDRA_TRUST_FLY_HEADERS when the process is actually behind Fly's trusted proxy path. Enabling it behind an arbitrary proxy can allow clients to spoof the address used for rate limiting.

The hosted MCP instead uses bounded request bodies, a concurrency cap, a short bounded cache for identical normalized searches, and a centralized emergency ceiling on aggregate work units. Batch items count individually toward that ceiling. Cache keys are per-process keyed digests and cached values contain public settlement results rather than submitted query arguments. The emergency ceiling is a service-wide circuit breaker, not a user quota. Its dataset service is not exposed to public callers and uses separate internal concurrency protection.

Privacy and safety

Do not submit names, email addresses, street addresses, account numbers, health details, claim identifiers, or other identifying information. Search with brand, product, employer, service, incident, date-range, and state information. Always direct users to the official administrator before they provide claim information. The hosted service is designed not to persist prompts, profiles, or tool arguments, but self-host the MCP and dataset when control over the complete request path is required.

Development

bash
pip install -e '.[dev]'pytest

Please report vulnerabilities privately as described in SECURITY.md.

Source: README.md at commit 3afa59b

Tools

5

search_settlements

Search settlements

Search one settlement angle using logical AND keywords and structured status, type, state, proof, and deadline filters. Status defaults to open. Results include source metadata and quality flags.

Parameterslimitstatestatuskeywordsdeadline_afterproof_requireddeadline_beforesettlement_type

search_settlements_batch

Search settlements in a batch

Run up to 50 independent settlement searches and deduplicate records across queries. Results include matched_query_indices, and executed_query_count reports the number of searches performed. Use when several unrelated search angles should be evaluated together.

Parametersqueriesrequiredmax_total_results

get_settlement

Get a settlement

Return the complete stored record and official source links for one settlement ID produced by a search.

Parameterssettlement_idrequired

get_settlements

Get settlements

Return complete stored records and official source links for up to 20 settlement IDs produced by search.

Parameterssettlement_idsrequired

get_dataset_info

Get dataset information

Return source, license, freshness, counts, and hosted aggregate metrics.

Takes no parameters.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts