
Mcp Clearsale
io.github.codespar由 GitHub 帳號 codespar 發布v0.2.0-alpha.3更新於 Oct 24, 2026
MCP server for ClearSale — Brazilian fraud prevention, order risk scoring, device fingerprinting
概覽
讓助理把訂單提交給 ClearSale 進行巴西反詐欺評分、取得決策結果,並處理相關的 KYC 與案件流程。
- 可以做什麼
- 把 ClearSale 反詐欺 API 包裝成 18 個工具,涵蓋「分析—決策—回饋」流程:send_order_for_analysis 提交訂單,get_order_analysis 與 get_order_score 回傳訂單狀態與 0-100 風險分數,update_order_status 回報商家的最終決定。另外也支援裝置指紋工作階段、行為事件追蹤、CPF/CNPJ 與地址驗證、依證件或聯絡方式查詢評分、OTP/KBA 驗證、拒付通知以及詐欺調查案件管理。
- 適用情境
- 當助理需要處理巴西電商訂單的 ClearSale 反詐欺決策時使用,例如提交訂單分析、輪詢或回報訂單結果,或查詢某個證件、聯絡方式的風險訊號。它面向已與 ClearSale 簽約的商家,而非一般用途。
- 執行需求
- 透過 npm 套件 @codespar/mcp-clearsale 以 stdio 在本機執行(需要 Node.js;npx @codespar/mcp-clearsale)。需要 ClearSale 簽發的 bearer token,放在 CLEARSALE_API_KEY 中;可選 CLEARSALE_BASE_URL,預設指向正式環境 API,可改為合約提供的測試網址。需要連線至 ClearSale 的網路,且沒有公開沙箱。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Clearsale,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@codespar/mcp-clearsale
MCP server for ClearSale — Brazilian fraud prevention.
ClearSale pioneered fraud analytics in Brazil (founded 2001, São Paulo) and remains the default antifraud layer for most major BR ecommerce. This is the first entry in the CodeSpar fraud category — no other server in the catalog does fraud scoring. Future entries (Konduto, Legiti, Sift, Cybersource) will follow the same analyze → decide → feedback shape.
Tools (18)
Install
Environment
Authentication
Server-side Bearer token:
ClearSale issues the token via the developer portal or through your commercial contract. There is no public sandbox — staging URLs are provisioned per contract; override CLEARSALE_BASE_URL to point at it.
Typical flow
- On page load, the merchant calls
create_device_fingerprint_sessionand embeds ClearSale's browser JS using the returnedsession_token. - At checkout, the merchant calls
send_order_for_analysiswith the samesession_idplus full order, payment, items, and billing/shipping data. - The response carries a decision:
APROVADO(ship it),REPROVADO(block), orEM_ANALISE(pollget_order_analysisor wait for a webhook). - Once the order lifecycle completes, call
update_order_statuswith the final merchant decision — this is required for ongoing model quality. - If a chargeback arrives later, call
create_chargeback_notificationso ClearSale can tune its model.
Run
Category
fraud — first server in this CodeSpar category. Fraud servers share a common shape (analyze → decide → feedback) distinct from payments, which makes cross-provider swaps (ClearSale ↔ Konduto ↔ Legiti) more straightforward than cross-acquirer swaps.
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/clearsale/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 分