Skip to main content
S

Sift

@codespar/mcp-sift Β· v0.2.0-alpha.3

🌐 GlobalFraud & RiskAuth · API Keybeta20 tools3 env varsprerelease

Global ML-based fraud detection β€” events + scores + decisions + labels feedback. Alpha on npm β€” paths verified against SiftScience/sift-ruby SDK.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • v0.2.0-alpha.3 is a prerelease; npm has no stable release of this package.
  • Hosted calls with a test key are not available: the runtime has not recorded this provider's test behaviour (test venue unclassified).
Package
@codespar/mcp-sift
Version
0.2.0-alpha.3 Β· prerelease
npm dist-tag
latest
Category
Fraud & Risk
Auth
API Key
Country
🌐 Global
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables3 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 20 tools. Try send_event first.
terminal
# Claude Code claude mcp add sift -e SIFT_ACCOUNT_ID=… -e SIFT_API_KEY=… -e SIFT_BASE_URL=… -- npx -y @codespar/mcp-sift@0.2.0-alpha.3 # then: /mcp to confirm the server is connected
Environment variables3 variables
SIFT_ACCOUNT_IDSift Account ID. Required for all Decisions API v3 endpoints (path segment /v3/accounts/{account_id}/...).required
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.requiredsecret
SIFT_BASE_URLSift API base URL. Defaults to https://api.sift.com.optional

Names read from the package code (@codespar/mcp-sift@0.2.0-alpha.3). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call demosend_event

"Send a fraud signal to Sift's Events API"

tools/callsend_eventresult returned

Tools

What your agent can call.

20 tools, as the package's tools/list returns them.

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.

label_user

Label a user as fraud or not-fraud via the legacy Labels API (POST /v205/users/{user_id}/labels). Labels are the classic supervised-learning feedback channel for Sift's ML model. Note: most new integrations use the Decisions API (apply_decision_to_user) instead β€” labels are kept for backward compatibility. Still supported for ongoing model feedback.

unlabel_user

Remove any existing label on a user (DELETE /v205/users/{user_id}/labels). Optionally scope by abuse_type.

apply_decision_to_user

Apply a workflow Decision to a user (POST /v3/accounts/{account_id}/users/{user_id}/decisions). Decisions are the modern replacement for Labels β€” they both classify the entity for Sift's ML and trigger any configured side effects (e.g. a Block decision on a $payment_abuse user will cause that user's future $transaction events to be blocked). Requires SIFT_ACCOUNT_ID.

apply_decision_to_order

Apply a workflow Decision to a specific order (POST /v3/accounts/{account_id}/users/{user_id}/orders/{order_id}/decisions). Order-level decisions target a single transaction rather than the whole user (e.g. 'approve_order_payment_abuse' on a manually-reviewed high-value order). Requires SIFT_ACCOUNT_ID.

get_user_decisions

Fetch the decisions currently applied to a user (GET /v3/accounts/{account_id}/users/{user_id}/decisions). Returns the active decision per abuse type. Requires SIFT_ACCOUNT_ID.

get_order_decisions

Fetch the decisions currently applied to an order (GET /v3/accounts/{account_id}/orders/{order_id}/decisions). Note: the order-level GET path does NOT include user_id, unlike the order-level apply path. Requires SIFT_ACCOUNT_ID.

get_workflow_run

Fetch the status of a Sift Workflow run (GET /v3/accounts/{account_id}/workflows/runs/{run_id}). The run_id is returned in the response to events sent with return_workflow_status=true. The run status tells you which route of the workflow was taken and which decisions were applied. Requires SIFT_ACCOUNT_ID.

send_chargeback

Send a $chargeback event to Sift's Events API (POST /v205/events). Convenience wrapper around send_event for the most common ML-feedback signal: a confirmed chargeback. Sift uses chargeback events as a strong negative-label signal for the payment_abuse model. Optionally request a synchronous score with return_score=true.

send_login

Send a $login event to Sift's Events API (POST /v205/events). Convenience wrapper for tracking login attempts β€” both successful and failed attempts feed Sift's account_abuse model.

Names and descriptions come from the package's tools/list (@codespar/mcp-sift@0.2.0-alpha.3). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

codespar_discover lists this server's tools, but a project with a test key cannot call them yet: the runtime has not recorded what this provider does in test mode, and refuses rather than guess.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Sift MCP server?

Run npx -y @codespar/mcp-sift@0.2.0-alpha.3 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Sift?

Sift exposes 20 tools for fraud & risk. Your agent calls them directly; the full list is above.

How does Sift authenticate, and how are credentials stored?

Sift uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Sift handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.0-alpha.3, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Sift open source? How do I report a bug?

Yes. Sift is MIT-licensed and published on npm as @codespar/mcp-sift, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Pairs well with

Fraud & Risk Β· same category.

C

ClearSale

@codespar/mcp-clearsale Β· 18 tools

Brazilian fraud prevention pioneer (founded 2001). Order risk scoring, device fingerprinting, chargeback feedback. Alpha release on npm β€” endpoints pending validation against contract-gated ClearSale developer portal.

Open
K

Konduto

@codespar/mcp-konduto Β· 18 tools

BR fraud analytics β€” more API-first than ClearSale. Order analysis, blocklist/allowlist/review-list management, chargeback feedback via status updates. Bundle with ClearSale for score comparison or failover. Alpha on npm β€” 3 brief endpoints not in public docs; core verified against docs.konduto.com.

Open
L

Legiti

@codespar/mcp-legiti Β· 18 tools

BR ticketing-native fraud prevention (formerly Inspetor, SΓ£o Paulo). 4th fraud entry. Order evaluation + Collection API for events/accounts/auth tracking. Alpha on npm β€” public docs thinner than ClearSale/Konduto; tool shapes match docs-backend repo.

Open

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Sift β€” MCP server Β· 20 tools | CodeSpar