
Mcp Legiti
io.github.codesparPublished by GitHub account codesparv0.2.0-alpha.4Updated Oct 27, 2026
DEPRECATED: no live endpoint (collection-prod.inspcdn.net does not resolve)
Overview
Deprecated MCP server for Legiti fraud prevention: submits orders for fraud evaluation and reports account, sale and chargeback events — but its endpoint no…
- What you can do
- Submit orders and legacy sales for synchronous fraud evaluation, returning approve, reject or manual decisions
- Fetch the latest decision for an order and manually override or update decision status
- Report order status changes, confirmed fraud and chargeback dispute outcomes back to Legiti
- Send account, auth, login, logout, signup, password-recovery and profile-update events
- Track ticketing events, event views, sales and payment-method events such as authorization, capture, refund and void
- When to use it
- Only if you already have a working Legiti endpoint and contract, since the default host does not resolve and the package is deprecated on npm. Otherwise it is not worth installing; it is kept for reference.
- Requirements
- Runs locally over stdio via the npm package (npx or npm install). Requires a Legiti API key in LEGITI_API_KEY (JWT bearer token) and optionally LEGITI_BASE_URL, which defaults to a host that currently does not resolve. A Legiti account and separate sandbox and production keys are needed.
Installation
In SourceWeft
- Open Mcp Legiti in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@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 withLEGITI_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
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)
Install
Environment
Authentication
Bearer token (JWT-format):
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 itreject— block the salemanual— route to manual review
Evaluation is synchronous; the response may take up to ~20 seconds.
Typical flow (ticketing)
- At signup / login, call
track_account(create/update) andtrack_auth(login/logout, password_recovery, password_reset). Every auth attempt — successful or failed — is valuable signal for account-takeover detection. - When a new event (concert, show, match) is published on the platform, call
track_event(create). Update on price/capacity/date changes. - At checkout, call
evaluate_orderwith the sale, account, payment, CPF, and the primaryevent_date_id. Act on the returned decision:approve→ ship,reject→ block,manual→ human review. - As the order progresses (paid, shipped, delivered, cancelled, refunded), call
update_order. - 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 theAuthorization: Bearerscheme. - Documented on
docs.legiti.comintegration 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 to0.2.0.
Promote to 0.1.0 once the v2 order payload schema is confirmed in production.
Run
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
Source: packages/fraud/legiti/README.md at commit d0a519a
Tools
0Version history
2- v0.2.0-alpha.4LatestSep 27, 2026
- v0.2.0-alpha.3Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts