mcpField
M
mcp-konduto

mcp-konduto

Local
github.com/codesparSecurity275Updated 4w ago

About mcp-konduto

mcp-konduto is an MCP server for Konduto, a Brazilian API-first fraud prevention service. It targets Brazilian ecommerce merchants that need order risk analysis. It is often run alongside mcp-clearsale for score comparison or failover.

Key features

  1. 01Submit orders for fraud analysis
  2. 02Query current order analysis status
  3. 03Report final order status and chargebacks
  4. 04Blocklist, allowlist and reviewlist management
  5. 05Extend or shorten list entry expiration

Use cases

  1. 01Order risk checks for digital-native Brazilian ecommerce
  2. 02Running alongside ClearSale for score comparison or failover
  3. 03Adding emails, IPs or card identifiers from confirmed fraud to a blocklist

MCP support

The server exposes Konduto's order analysis, status feedback and list management endpoints as MCP tools, so MCP clients can run fraud-check workflows.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-konduto": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-konduto"
],
"env": {
"KONDUTO_API_KEY": "<KONDUTO_API_KEY>",
"KONDUTO_BASE_URL": "<KONDUTO_BASE_URL>"
}
}
}
}
Run commandnpx -y @codespar/mcp-konduto
Environment variables to set
KONDUTO_API_KEYSecretKonduto API key (private key). Used as the Basic auth username with an empty password.
KONDUTO_BASE_URLKonduto API base URL. Defaults to https://api.konduto.com/v1.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-konduto0.2.0-alpha.3

Tools

18

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
idstringYesMerchant-side order id (must be unique and stable — used to correlate future GETs and status updates)
ipstringNoBuyer's IP at order time (IPv4 or IPv6)
eventobjectNoEvent ticketing fields. Omit for non-event orders.
hotelobjectNoHotel-specific fields. Omit for non-hotel orders.
travelobjectNoTravel-specific fields (passenger, flights). Omit for non-travel orders.
analyzebooleanNoIf false, Konduto stores the order without running the ML model. Default true.
billingobjectNoBilling address: name, address1, address2, city, state, zip, country.
paymentarrayNoArray of payment methods. Each item: { type: 'credit', bin, last4, expiration_date, status } or { type: 'boleto' | 'pix' | 'debit' }.
visitorstringNoVisitor id captured by Konduto's browser JS SDK. Strongly recommended — drives the behavioral / device intelligence signal.
currencystringNoISO-4217 currency code (typically BRL)
customerobjectYesCustomer object: id, name, email, tax_id (CPF/CNPJ), phone1, created_at, new_account, vip, etc.
shippingobjectNoShipping address: name, address1, address2, city, state, zip, country.
recurringbooleanNoTrue for subscription / recurring orders
tax_amountnumberNoTax amount in major units
installmentsnumberYesNumber of installments for card payments (1 for lump sum)
total_amountnumberYesTotal order amount in major units (e.g. 199.90 BRL)
sales_channelstringNoSales channel identifier (e.g. ecommerce, mobile, marketplace)
shopping_cartarrayNoLine items. Each: { sku, product_code, category, name, description, unit_cost, quantity, discount }.
shipping_amountnumberNoShipping charge in major units

Details

From the project README

@codespar/mcp-konduto

MCP server for Konduto — Brazilian fraud prevention, API-first.

Second entry in the CodeSpar fraud category after @codespar/mcp-clearsale. Konduto sits alongside ClearSale as one of the two default antifraud layers BR merchants evaluate, and the two are often deployed in parallel for score comparison or failover.

Positioning vs. ClearSale

ClearSaleKonduto
Founded2001 (São Paulo)2014 (São Paulo)
StrengthLarger chargeback history databaseBehavioral device intelligence
ShapeML scoring + manual review servicesAPI-first, tighter surface, dev-oriented
Typical pairingDefault for large BR retailDefault for digital-native BR ecommerce

Merchants commonly run both in parallel: Konduto for the fast behavioral signal, ClearSale for the long-tail chargeback history. When one flags review and the other flags approved, the merchant routes the order to manual inspection.

Tools (18)

ToolPurpose
send_order_for_analysisSubmit an order to Konduto for fraud analysis.
get_orderRetrieve the current analysis state of an order.
update_order_statusNotify Konduto of the merchant's final status for an order.
report_chargebackReport a confirmed chargeback for an order.
report_order_approvedReport that an order was ultimately approved by the merchant.
report_order_declinedReport that an order was ultimately declined by the merchant.
add_to_blocklistAdd a value to the Konduto blocklist.
query_blocklistCheck whether a value is currently on the Konduto blocklist.
update_blocklist_entryUpdate an existing blocklist entry — typically used to extend or shorten the expiration window (expires_at)...
remove_from_blocklistRemove a value from the Konduto blocklist.
add_to_allowlistAdd a value to the Konduto allowlist (trusted).
query_allowlistCheck whether a value is currently on the Konduto allowlist.
update_allowlist_entryUpdate an existing allowlist entry — typically to extend or shorten the expiration window.
remove_from_allowlistRemove a value from the Konduto allowlist.
add_to_reviewlistAdd a value to the Konduto reviewlist.
query_reviewlistCheck whether a value is currently on the Konduto reviewlist.
update_reviewlist_entryUpdate an existing reviewlist entry — typically to extend or shorten the expiration window without removing...
remove_from_reviewlistRemove a value from the Konduto reviewlist.

Install

npm install @codespar/mcp-konduto@alpha

Environment

KONDUTO_API_KEY="T00000..."          # private key; required
KONDUTO_BASE_URL="..."               # optional; defaults to https://api.konduto.com/v1

Authentication

HTTP Basic. The API key is the username; password is empty:

Authorization: Basic base64(KONDUTO_API_KEY + ":")

The server handles the base64 encoding — pass the raw key in KONDUTO_API_KEY.

Typical flow

  1. Embed Konduto's browser JS SDK on the merchant checkout page. It captures a visitor id (behavioral + device signals).
  2. At order submit, call send_order_for_analysis with the full order payload and the visitor id.
  3. Act on the response: approved ships it, declined blocks it, review holds for manual inspection or a second signal from ClearSale.
  4. Once the order lifecycle completes, call update_order_status with approved / canceled / fraud — this feeds Konduto's model.
  5. When a chargeback is confirmed, call update_order_status with status fraud. This is Konduto's primary ML feedback channel (there is no separate /chargebacks endpoint in the public docs).
  6. Use add_to_blocklist to permanently block specific emails / IPs / card BIN+last4 pairs observed in confirmed fraud.

Alpha note

This package is shipped as 0.1.0-alpha.1. Scope vs. the original brief:

  • Verified against docs.konduto.com:

    • POST /orders (send_order_for_analysis)
    • POST/GET/DELETE /blacklist/{type} (blocklist family)
    • /whitelist/{type} (allowlist) and /greylist/{type} (reviewlist), indexed under "APIs de Blocklist, Allowlist e Reviewlist"
  • Standard REST pattern, not separately indexed in the public reference (used by Konduto's official client libraries):

    • GET /orders/{id} (get_order)
    • PUT /orders/{id} (update_order_status)
  • Dropped — not documented publicly:

    • POST /disputes — no dispute submission endpoint on docs.konduto.com
    • POST /cards/analyze — no card-only pre-check endpoint documented
    • GET /visitors/{visitor_id} — visitor ids are referenced on the order (visitor field) but no public retrieval endpoint exists

Chargeback feedback is folded into update_order_status with status: fraud, which is Konduto's documented feedback channel.

Promote to 0.2.0 once the dropped endpoints are confirmed (via private docs or direct API response), or once Konduto publishes a broader public reference.

Run

# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-konduto

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-konduto

Category

fraud — second server in this CodeSpar category after ClearSale. 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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.