Investigate fraud in plain English β explain verdicts with evidence, check email, IP and phone.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Model Context Protocol server for the Kaidn fraud-scoring API.
Investigate fraud in plain English β "why was this signup blocked?", "what else has this device touched?", "what's in the review queue this morning?"
Node.js 18 or newer, and an API key from your Kaidn dashboard.
First, install the Kaidn MCP server with your client. Standard config works in most of the tools:
Add the standard config to claude_desktop_config.json, then restart Claude.
Settings β Developer β Edit Config opens the file.
Settings β MCP β Add new MCP Server, or add the standard config to
.cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project).
Add the standard config to ~/.codeium/windsurf/mcp_config.json.
Add the standard config to cline_mcp_settings.json via the MCP Servers icon β
Configure MCP Servers.
Add to settings.json under context_servers, using the same command, args and
env as the standard config.
Any MCP client takes a command, args and an env block. Use the standard config above. If the client can only reach the server over the network rather than spawning a process, see Streamable HTTP.
| Option | Environment variable | Default | Purpose |
|---|---|---|---|
KAIDN_API_KEY | required | Your secret key. Environment only β never a flag, never a tool argument. | |
KAIDN_API_URL | https://api.kaidn.io | API base URL | |
--allow-writes | KAIDN_MCP_ALLOW_WRITES=1 | off | Register the mutating tools |
KAIDN_MCP_MAX_QUOTA_CALLS | 100 | Quota ceiling per process | |
--http | KAIDN_MCP_TRANSPORT=http | stdio | Serve Streamable HTTP |
--host <addr> | KAIDN_MCP_HOST | 127.0.0.1 | HTTP bind address |
--port <n> | KAIDN_MCP_PORT | 8765 | HTTP port |
KAIDN_MCP_HTTP_TOKEN | unset | Require Authorization: Bearer on HTTP | |
--help | Show usage | ||
--version | Show the version |
Precedence: CLI flags override environment variables.
The API key is deliberately env-only. A key passed as a flag leaks into process listings and shell history.
| Transport | Use it for | Endpoint |
|---|---|---|
| stdio (default) | local clients that spawn a subprocess | β |
| Streamable HTTP | remote agents, containers, anything off-machine | POST /mcp |
HTTP+SSE is deliberately absent: deprecated in the 2025-03-26 spec and sunset
in June 2026.
Stateless β a fresh server per request, nothing shared between callers β so it
sits behind a load balancer without surprises. GET /health is unauthenticated
so an orchestrator can check liveness without holding the token.
Multi-stage build, runs as the unprivileged node user, with a healthcheck.
The server holds your API key. Whoever can reach it can spend your quota, so the defaults are conservative and the guards fail closed rather than warning.
127.0.0.1, and refuses to start on a wider interface unless
KAIDN_MCP_HTTP_TOKEN is set. It stops with an explanation rather than
quietly exposing your account.add_to_list and label_outcome exist only with
--allow-writes.set_config and forget_subject are never exposed, in any mode. One
silently changes the verdict on every future event; the other is irreversible
GDPR erasure. Both belong in the dashboard, in front of a human.Two things govern every tool: whether it spends quota, and whether it changes anything.
| Tool | Cost | What it does |
|---|---|---|
get_stats | free | Verdict, score and reason rollups over a rolling window. Start here. |
list_events | free | Scored events, newest first, filterable by verdict or type, searchable by fingerprint or user id |
explain_event | free | Every check that fired on one event, with the raw evidence |
triage_queue | free | Everything on review, highest score first |
get_config | free | Effective weights and thresholds for this tenant |
investigate_entity | 1 rowΒΉ | Enrichment, network reputation and related events for one entity |
check_email | 1 row | Disposable domain, deliverability, fraud score, abuse history |
check_ip | 1 row | Proxy, VPN, Tor, datacenter ASN, geo, abuse history |
check_phone | 1 row | Validity, line type, carrier, fraud score |
score_event | 1 row | Score a new event (also records it) |
ΒΉ Free when the entity is a device_id; enrichment only costs on email or IP.
--allow-writes| Tool | What it does |
|---|---|
add_to_list | Add an entity to the allow or block list |
label_outcome | Report a confirmed fraud / chargeback / legit outcome |
The tools are designed to be chained. These are the flows they were built for.
You: What happened overnight, and what needs me?
The model calls get_stats for the shape of the last 24 hours, then
triage_queue for the events sitting on review, then explain_event on the
worst one. You get a ranked list with the reasoning attached, rather than a
dashboard you still have to read.
You: Event
evt_8f21cβ a customer says they were wrongly blocked.
explain_event returns every check that fired with its raw evidence β the
datacenter ASN it matched, how many accounts shared the device, the velocity
count. Enough to answer the customer, or to conclude the rule was wrong and
needs tuning.
You: Is
194.x.x.xa one-off or part of a ring?
investigate_entity returns enrichment and network reputation for the IP plus
every recent event it appears in. If the same device ids keep recurring, that is
a ring rather than a coincidence.
You: If I dropped the velocity weight, what would stop being blocked?
get_config reads the current weights; list_events with verdict: "block"
shows what is currently caught. The model can tell you which of those hang on
the check you are about to weaken.
Failures come back as tool errors with a readable message, not exceptions β the model can act on them.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/kaidn)<a href="https://allmcps.com/mcp/kaidn"><img src="https://allmcps.com/api/badge/kaidn?style=directory" alt="Kaidn on AllMCPs" /></a>