Redra

io.github.sacrosaunt由 GitHub 账号 sacrosaunt 发布v0.1.0更新于 Oct 25, 2026

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

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

按关键词和结构化筛选条件检索当前集体诉讼和解记录,并返回完整记录及官方来源链接,供助理识别可能匹配项。

可以做什么
按必填关键词及状态、类型、州、证明要求和截止日期等条件搜索和解记录,结果附带来源元数据和质量标记。一次调用可执行最多 50 个独立搜索,跨查询去重,并受总结果上限约束。按和解 ID 获取单条或最多 20 条完整记录及官方来源链接。读取数据集来源、许可、新鲜度、数量及托管方汇总指标。
适用场景
适合用户想查找自己可能涉及的集体诉讼和解或消费者赔偿项目,或需要同时扫描多个品牌、产品或事件的情形。它只提供线索,是否符合资格仍需对照官方和解或索赔页面确认。
运行要求
托管端点无需本地进程、API 密钥或账号。自托管需要 Python 3.11 或更高版本,从源码安装该包,并下载 SQLite 数据集,用数据集更新命令保持其新鲜。
安装前请注意
不要提交姓名、地址、账号、健康信息或索赔编号,应改用品牌、产品、事件、日期范围和州进行搜索。结果只是关键词匹配,不是资格判定,服务器不提交索赔也不提供法律建议。托管服务会按网络来源 IP 记录累计工作单元数用于汇总用量统计,可用性为尽力而为。自托管 HTTP 传输没有身份验证和 TLS,除非有受信任的反向代理、防火墙或私有网络保护,否则不要将其绑定到 0.0.0.0 或直接公开端口。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Redra,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.sacrosaunt%2Fredra/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "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.

来源:README.md,提交 3afa59b

工具

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.

输入参数limitstatestatuskeywordsdeadline_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.

输入参数queries必填max_total_results

get_settlement

Get a settlement

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

输入参数settlement_id必填

get_settlements

Get settlements

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

输入参数settlement_ids必填

get_dataset_info

Get dataset information

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

无需输入参数。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分