Detecção de fraude global baseada em ML — eventos + scores + decisões + feedback de labels. Alpha no npm — paths verificados contra o SDK SiftScience/sift-ruby.
O Sift dá ao seu agente 20 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.
send_event — Send a fraud signal to Sift's Events API (POST /v205/events). The `type` parameter selects the event kind ($create_order, $transaction, $login, $create_account, $update_account, $chargeback, $order_status, etc). Additional fields ($user_id, $session_id, $order_id, custom fields) are passed via `fields` and merged into the body. Use `return_score=true` to get a synchronous score in the response.get_user_score — Fetch the latest Sift score(s) for a user (GET /v205/users/{user_id}/score). Does NOT trigger a rescore — it returns whatever score was last computed. The score is a float in [0, 1]; higher means more fraud-like. Optionally filter by abuse_types.rescore_user — Force Sift to recompute a user's score right now (POST /v205/users/{user_id}/score). Use when you have externally-observed signal that should invalidate the last score (e.g. a manual decision) but have not sent a new event.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("send_event", { /* ... */ });$ npm install @codespar/mcp-sift@alphaAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).
{
"mcpServers": {
"sift": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-sift@alpha"
],
"env": {
"SIFT_API_KEY": "<your_sift_api_key>",
"SIFT_ACCOUNT_ID": "<your_sift_account_id>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 20 ferramentas abaixo — teste send_event primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.
SIFT_API_KEYSift API key. Used in the Events API request body ($api_key) and as the HTTP Basic auth username (empty password) for Score + Decisions APIs.
SIFT_ACCOUNT_IDSift Account ID. Required for all Decisions API v3 endpoints (path segment /v3/accounts/{account_id}/...).
SIFT_BASE_URLSift API base URL. Defaults to https://api.sift.com.
Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
send_eventget_user_scorerescore_userlabel_userunlabel_userapply_decision_to_userapply_decision_to_orderget_user_decisionsMCP é um protocolo — qualquer framework que o fale pode montar este server.