Skip to main content
MCP server CX Codex

mcp-clearsale — Claude Code MCP server: what it does, how to install

Connects your coding agent to ClearSale for fraud screening and Brazilian buyer verification. Handy for online stores selling in Brazil.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env CLEARSALE_API_KEY=<CLEARSALE_API_KEY> --env CLEARSALE_BASE_URL=<CLEARSALE_BASE_URL> --transport stdio clearsale -- npx -y @codespar/mcp-clearsale
Open on GitHub

What mcp-clearsale does

The server exposes 18 tools to manage ecommerce risk workflows directly from your agent. It lets the model submit shopping carts for evaluation, fetch risk scores on a 0 to 100 scale, and return merchant resolutions like order cancellations or approvals. It also handles Brazilian KYC, including checking CPFs and CNPJs with Receita Federal or verifying delivery addresses against Correios.

Integration needs a token passed in CLEARSALE_API_KEY. Staging endpoints go into CLEARSALE_BASE_URL. You cannot test this without a formal contract because ClearSale provides no public sandbox. The package runs over stdio by default, but you can switch to HTTP using MCP_HTTP=true and MCP_PORT=3000.

What it helps with

  • evaluate transaction fraud risk before shipping goods
  • verify CPF or CNPJ identity numbers via official Brazilian registries
  • send dispute notices and chargebacks back to the risk engine
  • trigger SMS or email authentication challenges for suspicious shoppers

Example prompts for the agent

  • Submit order 4921 to ClearSale and return the fraud score
  • Verify this shipping address against Correios records
  • Report a confirmed chargeback for transaction 8812

How to install mcp-clearsale

Platform CLI

claude mcp add --env CLEARSALE_API_KEY=<CLEARSALE_API_KEY> --env CLEARSALE_BASE_URL=<CLEARSALE_BASE_URL> --transport stdio clearsale -- npx -y @codespar/mcp-clearsale

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-clearsale

How do I install mcp-clearsale in Claude Code?

Run claude mcp add mcp-clearsale -e CLEARSALE_API_KEY=<CLEARSALE_API_KEY> -- npx -y @codespar/mcp-clearsale. For custom endpoints, supply both variables: `claude mcp add --env CLEARSALE_API_KEY=<CLEARSALE_API_KEY> --env CLEARSALE_BASE_URL=<CLEARSALE_BASE_URL> --transport stdio clearsale -- npx -y @codespar/mcp-clearsale`.

What does mcp-clearsale do?

It integrates ClearSale antifraud capabilities into AI coding assistants. The server lets agents analyze order risk, validate Brazilian identification documents, and update merchant decisions.

Can I test mcp-clearsale without a paid account?

No. ClearSale requires an account or active merchant contract to issue credentials, and staging environments are assigned individually rather than open to the public.

Similar MCP servers

Everything for Security →

From the same set124

mcp-coinbase-commerce Gives an agent 18 Coinbase Commerce tools: bill a buyer in local fiat, take crypto at checkout, check a webhook signature. CX Codex +1 ★ 274repo stars mcp-coinbase-cdp Connects Coinbase Developer Platform APIs to your AI assistant. It handles crypto wallets, onchain asset swaps, and outbound transfers using a single key. CX Codex +1 ★ 274repo stars mcp-cobre Connects Cobre to an AI coding client for balances, counterparties, and outbound money movements across Colombia and Mexico. CX Codex +1 ★ 274repo stars mcp-clip An MCP server for taking payments through Clip (PayClip) in Mexico. Agents get hosted payment links, card-token charges, refunds and payment lookups, priced in MXN. CX Codex +1 ★ 274repo stars mcp-circle Give an agent Circle tools for USDC payments, wallets, payouts and transfers. A Circle API key is required. CX Codex +1 ★ 274repo stars mcp-cielo Wires Cielo payments into your coding agent: card sales, boleto, Pix, recurring charges and payment links, as 22 callable tools. Handy when billing logic lives in the repo you are editing. CX Codex +1 ★ 274repo stars mcp-chargebee Manages recurring subscriptions, customer records, and invoices in Chargebee through your AI agent. Useful for automating SaaS billing tasks directly from the workspace. CX Codex +1 ★ 274repo stars mcp-certta This MCP server exposes Certta identity checks, biometrics, document OCR, fraud scoring, and signature tools to an agent. Its API host currently does not resolve, so the tools cannot reach a service. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor