mcp-clearsale MCP Server
MCP server for ClearSale — Brazilian fraud prevention, order risk scoring, device fingerprinting
mcp-clearsale scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 18 tools. Filed under Uncategorized. Package registries report about 55 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 45 comes from
22 + 10 + 0 + 0 + 10 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "codespar-clearsale": { "command": "npx", "args": [ "-y", "@codespar/mcp-clearsale@0.2.0-alpha.3" ], "env": { "CLEARSALE_API_KEY": "YOUR_CLEARSALE_API_KEY", "CLEARSALE_BASE_URL": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
CLEARSALE_API_KEYSecret | Required | ClearSale API key / bearer token used in the Authorization header |
CLEARSALE_BASE_URL | Optional | ClearSale API base URL. Defaults to https://api.clearsale.com.br (prod). Override per contract-issued staging URL. |
Tools18Tool docs quality grade C
All capabilitiescreate_casetoolOpen a fraud investigation case (e.g.
Report a confirmed chargeback back to ClearSale.
Start a device fingerprint session.
Retrieve captured device characteristics for a fingerprint session (OS, browser, timezone, canvas/WebGL has...
Retrieve the current analysis state of an order previously sent to ClearSale.
get_order_scoretoolFetch only the fraud score (numeric 0-100) for an order.
Look up the risk score for a contact identifier (email or phone).
Look up the risk score and historical signals associated with a Brazilian document (CPF or CNPJ).
issue_challengetoolIssue an authentication challenge (OTP via SMS/email or KBA question) to a buyer.
list_orderstoolList orders submitted to ClearSale with optional filters.
Manually resolve an order currently in EMANALISE by approving or declining it.
Submit an order to ClearSale for fraud analysis.
About
@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)
| Tool | Purpose |
|---|---|
send_order_for_analysis | Submit an order to ClearSale for fraud analysis. |
get_order_analysis | Retrieve the current analysis state of an order previously sent to ClearSale. |
update_order_status | Notify ClearSale of the merchant's final decision on an order (APROVADO / CANCELADO / DEVOLVIDO). |
list_orders | List orders submitted to ClearSale with optional filters. |
create_chargeback_notification | Report a confirmed chargeback back to ClearSale. |
get_order_score | Fetch only the fraud score (numeric 0-100) for an order. |
create_device_fingerprint_session | Start a device fingerprint session. |
get_device_fingerprint | Retrieve captured device characteristics for a fingerprint session (OS, browser, timezone, canvas/WebGL has... |
resolve_manual_review | Manually resolve an order currently in EM_ANALISE by approving or declining it. |
get_score_by_document | Look up the risk score and historical signals associated with a Brazilian document (CPF or CNPJ). |
get_score_by_contact | Look up the risk score for a contact identifier (email or phone). |
validate_document | KYC: validate a CPF or CNPJ against Receita Federal. |
validate_address | KYC: validate a Brazilian postal address against the Correios database. |
track_behavior_event | Log a behavior signal (page view, login, signup, custom event) tied to a fingerprint session. |
issue_challenge | Issue an authentication challenge (OTP via SMS/email or KBA question) to a buyer. |
validate_challenge_response | Verify a buyer's response to a challenge issued via issue_challenge. |
create_case | Open a fraud investigation case (e.g. |
update_case | Update an existing fraud investigation case — change status, add notes, reassign, or attach more orders. |
Install
npm install @codespar/mcp-clearsale@alpha
Environment
CLEARSALE_API_KEY="..." # Bearer token issued by ClearSale
CLEARSALE_BASE_URL="..." # Optional. Defaults to https://api.clearsale.com.br. Override per contract-issued staging URL.
Authentication
Server-side Bearer token:
Authorization: Bearer <CLEARSALE_API_KEY>
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
# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-clearsale
# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-clearsale
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
Frequently asked questions
What is mcp-clearsale MCP Server?
MCP server for ClearSale — Brazilian fraud prevention, order risk scoring, device fingerprinting
How do I install mcp-clearsale MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-clearsale MCP Server runs locally from the npm package @codespar/mcp-clearsale with the command npx -y @codespar/mcp-clearsale@0.2.0-alpha.3.
Does mcp-clearsale MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-clearsale MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-clearsale MCP Server provide?
mcp-clearsale MCP Server provides 18 tools, including create_case, create_chargeback_notification, create_device_fingerprint_session, and get_device_fingerprint. See the full tool list for descriptions and parameters.
How is mcp-clearsale MCP Server's trust score calculated?
mcp-clearsale MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.