Skip to main content
MCP server CX Codex

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

Connects Legiti fraud detection tools to an AI coding assistant for transaction risk analysis. The package is marked deprecated because its default host cannot be resolved via DNS.

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

What mcp-legiti does

This MCP server exposes 18 tools for interacting with Legiti, a Brazilian risk scoring engine built for ticketing platforms and retail. It submits purchase payloads for immediate synchronous evaluation, returning verdicts like approve, reject, or manual. It also logs user actions, including login attempts, account profile edits, and ticket viewing events.

Authentication relies on a JWT bearer token supplied via LEGITI_API_KEY. Legiti provides separate keys for sandbox testing and production environments to prevent test events from degrading live predictive scoring. Synchronous evaluation requests can take up to 20 seconds.

The package is deprecated because its built-in endpoint collection-prod.inspcdn.net fails DNS resolution. The server will not reach any backend service unless a valid alternative URL is specified in LEGITI_BASE_URL.

What it helps with

  • evaluate order fraud risk synchronously before fulfillment
  • report confirmed chargebacks back to the scoring engine
  • record authentication and credential reset events to spot account takeovers
  • track event and ticket sales lifecycle changes

Example prompts for the agent

  • Check risk for this order via evaluate_order with the customer CPF and card payload
  • Report a confirmed chargeback for this purchase using mark_order_fraudulent
  • Log a failed authentication attempt using track_login

How to install mcp-legiti

Platform CLI

claude mcp add --env LEGITI_API_KEY=<LEGITI_API_KEY> --env LEGITI_BASE_URL=<LEGITI_BASE_URL> --transport stdio legiti -- npx -y @codespar/mcp-legiti

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-legiti

How do I install mcp-legiti in Claude Code?

Run claude mcp add --env LEGITI_API_KEY=<LEGITI_API_KEY> --env LEGITI_BASE_URL=<LEGITI_BASE_URL> --transport stdio legiti -- npx -y @codespar/mcp-legiti. Replace the placeholders with your API token and an active endpoint URL.

What does mcp-legiti do?

It connects AI tools to Legiti's fraud analysis API with 18 tools to score transactions, log account security events, and record dispute resolutions.

Why is this server deprecated?

Its default destination host collection-prod.inspcdn.net does not resolve via public DNS. It only functions if you configure a reachable endpoint using LEGITI_BASE_URL.

Similar MCP servers

Everything for Security →

From the same set124

mcp-mercado-libre Wires Mercado Libre into your coding agent: product search, orders, shipments, buyer questions and reviews. Useful if you sell on the marketplace and work from chat. CX Codex +1 ★ 274repo stars mcp-mercado-bitcoin Connects AI coding assistants to the Mercado Bitcoin exchange for automated trading, orderbook tracking, and balance checks. Useful for Brazilian crypto workflows. CX Codex +1 ★ 274repo stars mcp-melhor-envio Connects an agent to Melhor Envio for carrier rates, shipment orders, labels, agencies, and tracking. It fits delivery workflows that need API access. CX Codex +1 ★ 274repo stars mcp-matera An MCP server for Matera, Brazil's core-banking infrastructure: issue Pix charges, resolve DICT keys, move money. The package is deprecated because api.matera.com no longer resolves. CX Codex +1 ★ 274repo stars mcp-kushki An MCP server that lets an agent call the Kushki payments API: cards, PSE and SPEI transfers, cash and subscriptions. Useful when you build checkout flows for Latin America. CX Codex +1 ★ 274repo stars mcp-konduto An MCP server that lets your agent submit orders to Konduto for fraud scoring, read the verdict and manage the provider's lists. Useful when antifraud work happens from a chat. CX Codex +1 ★ 274repo stars mcp-khipu Connects AI agents to Khipu to process instant Chilean bank transfers, issue refunds, and manage payment webhooks. CX Codex +1 ★ 274repo stars mcp-jumio This MCP server connects an agent to Jumio for identity, document, liveness, and AML checks. It fits KYX workflows that need Jumio data. 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