Legiti

Finance and commerceData and AI

DEPRECATED: no live endpoint (collection-prod.inspcdn.net does not resolve).

Your AI app calls the Legiti MCP server, which does the finance and commerce and data and AI work and sends the result back to the chat.

About Legiti

Legiti is a community MCP server from codespar, filed in our directory under finance and commerce and data and ai. DEPRECATED: no live endpoint (collection-prod.inspcdn.net does not resolve).

Legiti runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-legiti@0.2.0-alpha.4 and talks to it over standard input and output. It needs LEGITI_API_KEY set before Legiti starts.

Legiti is listed in the official MCP registry as io.github.codespar/mcp-legiti, version 0.2.0-alpha.4.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-legiti
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-legiti

How to set up Legiti

  1. Install Node.js on the machine that runs your AI app, because Legiti starts with npx and downloads its package on first run.
  2. Create LEGITI_API_KEY for Legiti in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Legiti to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Legiti tools to confirm the connection.
  5. Run one read-only task with Legiti first, and keep your app asking before each tool call until the results look right.

Legiti compared with similar servers

  • Matera by codespar has fewer GitHub stars than Legiti (278 against 278); both are community servers, and both run locally.
  • Kushki by codespar has fewer GitHub stars than Legiti (278 against 278); both are community servers, and both run locally.
  • Melhor Envio by codespar has fewer GitHub stars than Legiti (278 against 278); both are community servers, and both run locally.

Before you connect Legiti

  • Give Legiti its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Legiti tool call until you trust what it does with them.
  • Treat text that Legiti fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Legiti on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Legiti

How marketing and sales teams put Legiti to work, by company size. Pick the size closest to yours and start Legiti on one use case.

Small business

  • A small business can ask Legiti which products and customers drive margin, then plan promotions around them.
  • Owners can use Legiti to check refunds, failed payments and churn reasons without opening three dashboards.
  • A small team can use Legiti to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Legiti runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Legiti to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Legiti to check spend against budget each week and move money to what's working.
  • Marketing ops can connect Legiti to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Start Legiti on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Legiti read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Legiti to answer revenue questions by channel and region with figures finance signs off on.
  • Enterprises can run Legiti inside their own cloud and data boundary, so models and data stay where governance requires.
  • Legiti is a community server, so have security review the code and pin a version before Legiti touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Legiti README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-legiti

Deprecated: no live endpoint. Measured on 2026-09-27 against two public DNS resolvers (8.8.8.8 and 1.1.1.1): collection-prod.inspcdn.net, the host this server calls, does not resolve in DNS. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it with LEGITI_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.

MCP server for Legiti, Brazilian fraud prevention, ticketing-native with a simple synchronous evaluation API.

Fourth entry in the CodeSpar fraud category, after @codespar/mcp-clearsale, @codespar/mcp-konduto, and @codespar/mcp-sift. Legiti (formerly Inspetor, São Paulo) occupies the mid-size BR tier: smaller public footprint than ClearSale, more vertical depth than Konduto for ticketing / events, and a simpler API surface than Sift.

Positioning

Strength Typical fit
ClearSale BR pioneer (2001), large chargeback history Default for large BR retail
Konduto BR, API-first, behavioral device intel Digital-native BR ecommerce
Legiti (this) BR, ticketing-native, sync evaluation BR ticketing marketplaces, mid-size retail
Sift Global, multi-abuse-type ML, workflows International enterprise

BR merchants frequently bundle 2-3 of these for best-of-breed scoring, Legiti for its ticketing-specific signals, ClearSale or Konduto for the generalist fraud layer, Sift for cross-border flows.

Tools (18)

Tool Purpose
evaluate_order Submit an order to Legiti for real-time fraud evaluation via the v2 order endpoint.
update_order Notify Legiti of a status change on an existing order (e.g.
mark_order_fraudulent Report a confirmed chargeback / fraud outcome back to Legiti.
evaluate_sale Legacy single-shot sale evaluation via POST /evaluation.
track_account Notify Legiti of an account lifecycle event (created / updated / deleted).
track_event Notify Legiti of an Event (concert, show, match, session) lifecycle change.
track_sale Notify Legiti of a Sale state change (created / updated).
track_auth Notify Legiti of an authentication or password event (login attempt, logout, password recovery request, pas...
track_login Notify Legiti of a login attempt (successful or failed).
track_logout Notify Legiti of a logout event.
track_signup Notify Legiti of a new account creation.
track_account_update Notify Legiti of an account profile change (email, phone, CPF, address).
track_password_recovery Notify Legiti of a password recovery request (the 'forgot password' click).
track_event_view Notify Legiti that a user viewed an event/show page.
track_payment Notify Legiti of a payment-method-level event (authorization attempt, capture, refund, void).
get_decision Fetch the latest Legiti decision for an order.
update_decision_status Manually override Legiti's decision for an order, typically used to accept or decline a sale that landed i...
mark_dispute_resolution Report the outcome of a chargeback dispute back to Legiti, i.e.

Install

npm install @codespar/mcp-legiti@alpha

Environment

LEGITI_API_KEY="eyJhbGciOi..."   # JWT bearer token; required
LEGITI_BASE_URL="..."             # optional; defaults to https://collection-prod.inspcdn.net

Authentication

Bearer token (JWT-format):

Authorization: Bearer <LEGITI_API_KEY>

Legiti issues separate sandbox and production keys. The sandbox key tags every request as test data so it does NOT train the ML model. Always develop and run integration tests with the sandbox key, hitting production with test data pollutes the model.

Decision values

evaluate_order and evaluate_sale return one of three decisions:

  • approve, ship it
  • reject, block the sale
  • manual, route to manual review

Evaluation is synchronous; the response may take up to ~20 seconds.

Typical flow (ticketing)

  1. At signup / login, call track_account (create/update) and track_auth (login/logout, password_recovery, password_reset). Every auth attempt, successful or failed, is valuable signal for account-takeover detection.
  2. When a new event (concert, show, match) is published on the platform, call track_event (create). Update on price/capacity/date changes.
  3. At checkout, call evaluate_order with the sale, account, payment, CPF, and the primary event_date_id. Act on the returned decision: approve → ship, reject → block, manual → human review.
  4. As the order progresses (paid, shipped, delivered, cancelled, refunded), call update_order.
  5. When a chargeback is confirmed by the issuer, call mark_order_fraudulent. This is Legiti's primary ML feedback channel, unreported chargebacks degrade future decision quality for similar buyers.

Typical flow (non-ticketing ecommerce)

Skip track_event. The event_date_id fields become optional in evaluate_order, Legiti will still evaluate on account + sale + payment signal, though ticketing-vertical features will be unused.

Alpha note

Shipped as 0.1.0-alpha.1. Legiti's public documentation is tighter than ClearSale's or Konduto's:

  • Documented in open-source github.com/legiti/docs-backend: POST /evaluation, plus the Collection API (account, event, sale, transfer, auth, password) shape and the Authorization: Bearer scheme.
  • Documented on docs.legiti.com integration guides: the v2 order family (POST /v2/order, PUT /v2/order, POST /v2/order/mark_fraudulent).
  • Dropped from the original category spec: create_rule / list_rules / update_rule / delete_rule, no public custom-rules surface exists on Legiti. If a customer contract exposes one, promote to 0.2.0.

Promote to 0.1.0 once the v2 order payload schema is confirmed in production.

Run

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

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

Category

fraud, fourth server in this CodeSpar category alongside ClearSale, Konduto, and Sift. 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

Questions about Legiti

What is the Legiti MCP server?

DEPRECATED: no live endpoint (collection-prod.inspcdn.net does not resolve). Legiti is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Legiti MCP server?

Add Legiti to your AI app's MCP config with the command npx -y @codespar/mcp-legiti@0.2.0-alpha.4. In Claude Code, run claude mcp add --transport stdio codespar-legiti -- npx -y @codespar/mcp-legiti@0.2.0-alpha.4. To run Legiti this way you need Node.js installed.

Does Legiti need an API key?

Yes. Legiti expects LEGITI_API_KEY to be set. Create the key for Legiti in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Legiti an official MCP server?

No. Legiti is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Legiti access to company data.

What license is Legiti under?

Legiti is released under the MIT license, according to its GitHub repository. The license covers the code of Legiti; the service it connects to has its own terms.