mcp-fraud

v1.1.0
mcp-fraud Checked 3 days ago

Fraud MCP Server — unified fraud detection (signals + risk scoring) and case review (alerts, gated decisions, block/allow lists) for retail and insurance…

A unified fraud layer for ADK-Rust Enterprise agents — combining fraud signals + risk scoring (detection) and case alerts + gated decisions (review) in one server. 19 MCP tools serving both the retail Fraud Review Agent and the insurance SIU Fraud Triage Agent. Fraud detection and fraud review are two ends of the same pipeline, so they live together: signals feed scores, scores open cases, cases reach decisions — with an immutable audit trail throughout.

Summary extracted from the README.

Fraud MCP Server

Crates.io License ADK-Rust Enterprise Registry Ready

A unified fraud layer for ADK-Rust Enterprise agents — combining fraud signals + risk scoring (detection) and case alerts + gated decisions (review) in one server. 19 MCP tools serving both the retail Fraud Review Agent and the insurance SIU Fraud Triage Agent.

One server, both halves of fraud

Fraud detection and fraud review are two ends of the same pipeline, so they live together: signals feed scores, scores open cases, cases reach decisions — with an immutable audit trail throughout.

Agent What it uses
Retail / e-commerce — Fraud Review order/transaction signals → score_entity → create_case/triage_entity → decide_case (approve/decline) → block/allow lists
Insurance — SIU Fraud Triage claim signals (staged accident, duplicate claim, provider ring) → score → case → escalate_case to SIU → decide_case (refer)

Architecture

How Scoring Works

  • Each signal on an entity contributes a weight; the risk score is the capped sum (0–100).
  • A signal's weight is its explicit weight → else its risk rule weight → else a severity default.
  • Bands: Low (<30) · Medium (30–59) · High (60–79) · Critical (≥80).
  • Lists override: allow-listed entities score 0; block-listed force 100.
  • Rules are configurable at runtime (upsert_rule) — no code changes to tune the model.

Tools (19)

Signals & Scoring (5)

Tool What It Does
add_signal Record an indicator on an entity
get_signals List an entity's signals
score_entity Aggregate score, band, and per-signal contributions
upsert_rule Create/update a signal-type → weight rule
list_rules List configured rules

Cases & Decisions (10)

Tool What It Does
create_case Open a review case (scores at creation)
get_case · search_cases Read / filter (highest-risk first)
rescore_case Recompute from current signals/lists
assign_case Assign to a reviewer
escalate_case Escalate (e.g. to SIU) — gated
add_note Investigation note
decide_case approve / decline / refer / hold — gated
close_case Close after a decision — gated
get_audit_trail Immutable decision record

Block / Allow Lists (3)

add_to_list (gated) · remove_from_list (gated) · list_entries

Agentic (1)

triage_entity — score an entity and auto-open a case when it reaches the threshold band; returns score + recommendation. The final decision still flows through the gated decide_case.

Example

> add_signal(entity_type: "order", entity_ref: "order:LIVE1", signal_type: "velocity", severity: "medium")
> add_signal(entity_type: "order", entity_ref: "order:LIVE1", signal_type: "prior_chargeback", severity: "high")
> add_signal(entity_type: "order", entity_ref: "order:LIVE1", signal_type: "new_account_high_value", severity: "high")

> triage_entity(domain: "retail_ecommerce", entity_type: "order", entity_ref: "order:LIVE1", reporter: "fraud-bot")
  → risk_score 95 (critical) · recommendation "decline_or_refer" · case FRD-1011

> assign_case(id: "FRD-1011", actor: "lead", assignee: "review.amy")
> decide_case(id: "FRD-1011", actor: "review.amy", decision: "decline", disposition: "confirmed ATO fraud")
  → decided

> add_to_list(kind: "block", entity_type: "customer", entity_ref: "cust:BADActor", reason: "ATO ring", actor: "ops")
> score_entity(entity_ref: "cust:BADActor")   → 100 (block_listed)

Installation

1. Build

git clone https://github.com/zavora-ai/mcp-fraud
cd mcp-fraud
cargo build --release

2. Add to your MCP client

Claude Desktop / Kiro / Cursor / Windsurf:

{
  "mcpServers": {
    "fraud": {
      "command": "/path/to/mcp-fraud"
    }
  }
}

3. Use it

> search_cases(domain: "insurance", risk_band: "critical")
> score_entity(entity_ref: "claim:CLM-5521")

Governance & Data Handling

  • Gated high-impact writes — decide_case, escalate_case, close_case, and list changes require approval in production; signal/score reads are read_only.
  • Defensible decisions — every case mutation appends to an immutable audit trail.
  • Opaque entities — entities are references/tokens (order:…, claim:…, cust:…), not raw PII.
  • Integration scaffold — the in-memory store and scoring model are for development; back them with your real signals platform and decision store, and bind actors to authenticated identities in production.

MCP Server Manifest

server_id = "mcp_fraud"
display_name = "Fraud Detection & Review"
version = "1.1.0"
domain = "risk"
risk_level = "high"
writes_allowed = "gated"
transports = ["stdio"]

Contributors

License

Apache-2.0 — see LICENSE for details.


Part of the ADK-Rust Enterprise MCP server ecosystem.

Registry Compliance

This server implements the ADK MCP SDK contract:

  • HealthCheck — async health probe for registry monitoring
  • mcp-server.toml — manifest declaring tools, risk classes, and approval gates
  • Structured tracing — RUST_LOG env-filter for observability

rmcp and MCP compatibility

This server is built with rmcp 3.1.2 and requires Rust 1.94.1 or newer. The rmcp 3 rollout retains legacy MCP initialization compatibility and targets MCP protocol revisions 2025-11-25 and 2026-07-28.

MCP 2026-07-28 rollout (P3 regulated)

This server uses rmcp 3.1.2 and adk-mcp-sdk 0.2 with a minimum supported Rust version of 1.94.1. It accepts stateless MCP 2026 requests with per-request protocol, client identity, and capability metadata while retaining the legacy MCP 2025-11-25 initialize flow for ordinary tools.

  • Tasks: None; this server's operations are short-lived and execute directly.
  • MRTR approvals: add_signal, upsert_rule, create_case, rescore_case, assign_case, escalate_case, add_note, decide_case, close_case, add_to_list, remove_from_list, triage_entity
  • Discovery and routing: rmcp serves on-demand discovery and validates the per-request protocol envelope; HTTP deployments can route with Mcp-Method and Mcp-Name. The packaged binary currently uses stdio.
  • Caching: tools/list returns a public ttlMs of 60,000 for MCP 2026; rmcp omits the cache fields for legacy clients.
  • Deprecated extensions: this server does not add new Roots, Sampling, or dynamic client-registration dependencies.

Protected tools require MCP_REQUEST_STATE_KEY with at least 32 high-entropy bytes. All replicas must share that key so sealed approval state can resume on another instance. Approval state is bound to the client identity, tool, and arguments and expires after two minutes. Missing identity, invalid state, rejection, or legacy protocol use fails closed. Task records are process-local for the current stdio runtime; use a durable task store before deploying the server behind scale-to-zero HTTP infrastructure.