
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 分