
Mcp Sift
io.github.codespar由 GitHub 帳號 codespar 發布v0.2.0-alpha.3更新於 Nov 3, 2026
MCP server for Sift — global ML fraud detection: real-time risk scoring, decisions, event ingestion
概覽
Sift 詐欺偵測 MCP 伺服器:送出詐欺事件、讀取機器學習風險分數,並套用或查詢工作流程決策。
- 可以做什麼
- 將詐欺訊號送至 Sift 事件 API,包括拒付、登入、登出、內容狀態、工作階段與使用者關聯及自訂事件
- 取得使用者最新的各類濫用風險分數,或強制立即重新評分
- 將使用者標記為詐欺或非詐欺,或移除標記
- 對使用者、訂單、工作階段與內容項目套用工作流程決策
- 查詢使用者、訂單、工作階段與內容項目目前生效的決策,並查看工作流程執行狀態
- 適用情境
- 適合已使用 Sift 進行詐欺偵測的團隊,讓助理在註冊、登入、下單與拒付環節上報事件,在結帳或提領時查詢風險分數,或複核並套用人工審核決策。
- 執行需求
- 透過 npm 套件以 stdio 在本機執行(npx),需要 Node.js。需要 SIFT_API_KEY(密鑰)以及供 Decisions API v3 呼叫使用的 SIFT_ACCOUNT_ID;SIFT_BASE_URL 為選用,預設指向 Sift 的 API 位址。需要能連線至 Sift 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Sift,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@codespar/mcp-sift
MCP server for Sift — global enterprise ML-based fraud detection.
Third entry in the CodeSpar fraud category after @codespar/mcp-clearsale and @codespar/mcp-konduto. Sift is the global / enterprise counterpart to the two BR-native antifraud servers.
Positioning
Also distinct from @codespar/mcp-jumio, which is global KYC / identity verification — a different layer than fraud scoring.
Sift's API shape
Sift is built around three APIs that work together:
- Events API (
/v205/events) — you POST every interesting signal (account creation, login, order, chargeback, ...) as a$-prefixed event. - Score API (
/v205/users/{user_id}/score) — you GET the latest ML score for a user, or POST to force a rescore. Scores are floats in[0, 1]per abuse type (payment_abuse,account_abuse,content_abuse,promotion_abuse). - Decisions API v3 (
/v3/accounts/{account_id}/...) — workflows in the Sift console turn scores into Decisions (block_user_payment_abuse,approve_order_payment_abuse, etc). You can apply a decision directly, read the current decisions on a user/order, or fetch the status of a workflow run.
Tools (20)
Install
Environment
Authentication
- Events API —
$api_keyis injected into the JSON body. The server handles this automatically. - Score API + Decisions API v3 — HTTP Basic, API key as username, empty password. The server handles the base64 encoding.
Pass the raw key in SIFT_API_KEY.
Typical flow
- Instrument your app: every signup, login, profile update, order, and chargeback becomes a
send_eventcall with the right$type. - On high-stakes moments (checkout, withdrawal), call
send_eventwithreturn_score: trueto get an inline decision. - Or poll
get_user_score/get_order_decisionsasynchronously after a workflow run completes. - For manual review outcomes, call
apply_decision_to_userorapply_decision_to_orderwith a Decision ID configured in the Sift console andsource: "MANUAL_REVIEW". - When a chargeback is confirmed, send a
$chargebackevent AND eitherapply_decision_to_userwith a Block decision orlabel_userwithis_bad: true, abuse_type: "payment_abuse". Decisions are preferred for new integrations; Labels are kept for backward compatibility.
Alpha note
Shipped as 0.1.0-alpha.1. All endpoint paths are verified against Sift's official Ruby SDK (SiftScience/sift-ruby): rest_api_path, user_score_api_path, users_label_api_path, user_decisions_api_path, order_decisions_api_path, workflow_status_path, and the Decision ApplyTo path builder.
Scope vs. the original brief:
- Shipped & verified: send_event, get_user_score, rescore_user, label_user, unlabel_user, apply_decision_to_user, apply_decision_to_order, get_user_decisions, get_order_decisions, get_workflow_run.
- Dropped — not in the public SDK:
get_session_score(/v205/sessions/{session_id}/score) — no equivalent helper in the Ruby SDK; session-level scoring in Sift flows through session-level Decisions and Workflow runs, not a dedicated score endpoint.list_workflow_runs(GET /v3/accounts/{account_id}/workflows/runs) — onlyGET /{run_id}is implemented in the public SDK. In practice, Sift surfaces run_ids in event responses rather than via a list endpoint.get_psychology_score— no such endpoint in the public SDK.
The developers.sift.com reference pages gate deep-link URLs (403 on several paths), so we used the official SDK as the source of truth. Promote to 0.1.0 once a customer confirms (or denies) the dropped endpoints against the full Decisions / Score API reference in Sift's admin console.
Run
Category
fraud — third entry after ClearSale and Konduto. BR merchants operating internationally commonly pair Sift (global payment/account abuse) with ClearSale or Konduto (BR-specific chargeback history / device intelligence).
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
來源:packages/fraud/sift/README.md,提交 d0a519a
工具
0版本歷史
1- v0.2.0-alpha.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分