Kaidn-mcp
OfficialInvestigate fraud and score events via a read-only MCP server (with opt-in mutating tools) that explains verdicts with raw evidence.
Free read-only tools:
get_stats(verdict/reason rollups),list_events(filterable scored events),explain_event(why an event scored as it did),triage_queue(review queue, highest risk first),get_config(tenant weights/thresholds).Quota-consuming enrichment checks:
check_email,check_ip,check_phone— each returns fraud score, network reputation, and abuse history.Entity investigation:
investigate_entity— enrichment plus related events for an email, IP, or device (device free) to expose fraud rings.Scoring new events:
score_eventrecords and scores an event, returning verdict, reasons, checks, and email identity dedupe info.Optional mutating tools (require
--allow-writes):add_to_list(allow/block lists) andlabel_outcome(report confirmed fraud/chargeback/legit).Safe by default: read-only unless opted in, quota-guarded, API key only via env, never exposes destructive
set_config/forget_subject.Multiple transports: stdio for local clients, Streamable HTTP for remote agents, with Docker support and health endpoint.
Designed for chaining: e.g., morning triage via
get_stats→triage_queue→explain_event; investigate a suspicious IP/device ring.
Kaidn MCP
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?"
Evidence, not just a score. Every reason carries the raw numbers behind it, so a model can explain a verdict rather than guess at it.
Read-only by default. Nothing changes your tenant unless you opt in.
Quota-guarded. An agent in a loop cannot spend your month in ten minutes.
Any client. MCP is an open protocol — stdio locally, Streamable HTTP for remote and hosted agents.
Requirements
Node.js 18 or newer, and an API key from your Kaidn dashboard.
Getting started
First, install the Kaidn MCP server with your client. Standard config works in most of the tools:
{
"mcpServers": {
"kaidn": {
"command": "npx",
"args": ["@kaidn/mcp@latest"],
"env": { "KAIDN_API_KEY": "your_key" }
}
}
}claude mcp add kaidn --env KAIDN_API_KEY=your_key -- npx @kaidn/mcp@latestAdd 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).
code --add-mcp '{"name":"kaidn","command":"npx","args":["@kaidn/mcp@latest"],"env":{"KAIDN_API_KEY":"your_key"}}'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.
Related MCP server: Maskbreak MCP Server
Configuration
Option | Environment variable | Default | Purpose |
| required | Your secret key. Environment only — never a flag, never a tool argument. | |
|
| API base URL | |
|
| off | Register the mutating tools |
|
| Quota ceiling per process | |
|
|
| Serve Streamable HTTP |
|
|
| HTTP bind address |
|
|
| HTTP port |
| unset | Require | |
| Show usage | ||
| 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.
Transports
Transport | Use it for | Endpoint |
stdio (default) | local clients that spawn a subprocess | — |
Streamable HTTP | remote agents, containers, anything off-machine |
|
HTTP+SSE is deliberately absent: deprecated in the 2025-03-26 spec and sunset
in June 2026.
Streamable HTTP
npx @kaidn/mcp@latest --http --port 8765Stateless — 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.
Docker
docker build -t kaidn-mcp .# stdio — behaves like the npx invocation
docker run -i --rm -e KAIDN_API_KEY=your_key kaidn-mcp
# HTTP — for remote agents
docker run --rm -p 8765:8765 \
-e KAIDN_API_KEY=your_key \
-e KAIDN_MCP_TRANSPORT=http \
-e KAIDN_MCP_HOST=0.0.0.0 \
-e KAIDN_MCP_HTTP_TOKEN=your_token \
kaidn-mcpMulti-stage build, runs as the unprivileged node user, with a healthcheck.
Security
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.
Binds
127.0.0.1, and refuses to start on a wider interface unlessKAIDN_MCP_HTTP_TOKENis set. It stops with an explanation rather than quietly exposing your account.Read-only by default.
add_to_listandlabel_outcomeexist only with--allow-writes.set_configandforget_subjectare 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.Quota ceiling per process, with remaining budget reported on every costing response. A reservation that would overshoot is refused outright rather than partially spent.
The key never crosses the tool boundary — not as a parameter, not in output, not in an error.
Tools
Two things govern every tool: whether it spends quota, and whether it changes anything.
Read-only — available by default
Tool | Cost | What it does |
| free | Verdict, score and reason rollups over a rolling window. Start here. |
| free | Scored events, newest first, filterable by verdict or type, searchable by fingerprint or user id |
| free | Every check that fired on one event, with the raw evidence |
| free | Everything on |
| free | Effective weights and thresholds for this tenant |
| 1 row¹ | Enrichment, network reputation and related events for one entity |
| 1 row | Disposable domain, deliverability, fraud score, abuse history |
| 1 row | Proxy, VPN, Tor, datacenter ASN, geo, abuse history |
| 1 row | Validity, line type, carrier, fraud score |
| 1 row | Score a new event (also records it) |
¹ Free when the entity is a device_id; enrichment only costs on email or IP.
Mutating — require --allow-writes
Tool | What it does |
| Add an entity to the allow or block list |
| Report a confirmed fraud / chargeback / legit outcome |
Worked examples
The tools are designed to be chained. These are the flows they were built for.
Morning triage
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.
"Why was this customer blocked?"
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.
Working outward from one signal
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.
Checking a rule change before making it
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.
Error handling
Failures come back as tool errors with a readable message, not exceptions — the model can act on them.
You see | Meaning | Fix |
| Server started without a key | Set it in the client's |
| Key rejected | Rotate or re-copy it from the dashboard |
| Rate limited | Slow down; per-key throttling is by the minute |
| The guard stopped an expensive run | Raise |
| Event is older than the scan window | Page back with |
| Ambiguous investigation | Ask about one entity at a time |
| Non-loopback HTTP with no token | Set |
Errors never contain your API key.
Troubleshooting
The client shows no tools.
Check the client's MCP log for the startup line. kaidn-mcp: ready (stdio, …)
on stderr means the server is up and the problem is on the client side. Nothing
at all usually means npx could not resolve the package or Node is older than 18.
It starts, then exits immediately.
Almost always a missing KAIDN_API_KEY. The message says so on stderr; some
clients hide stderr, so run it in a terminal to see it.
add_to_list and label_outcome are missing.
Working as designed. They need --allow-writes.
set_config and forget_subject are missing.
Also by design, and they are not available in any mode. See
SECURITY.md.
HTTP mode refuses to start. You bound something other than loopback without a bearer token. That is the guard working — the process holds your API key.
Everything is slow.
The enrichment checks make live upstream calls. get_stats, list_events,
explain_event and triage_queue are free and fast; prefer them when reading
history.
Check the server independently of the client:
node dist/index.js --help # no key required
KAIDN_API_KEY=your_key npm start # should print a ready lineSupport
Bugs and feature requests: GitHub issues
Security: security@kaidn.io — see SECURITY.md
Privacy and data handling: PRIVACY.md
The API itself: kaidn.io
Run from source
git clone https://github.com/Kaidn-io/kaidn-mcp.git
cd kaidn-mcp
npm install
npm run build
npm testclaude mcp add kaidn --env KAIDN_API_KEY=your_key -- node /absolute/path/to/kaidn-mcp/dist/index.jsTo check it starts without a client:
KAIDN_API_KEY=your_key npm startIt prints kaidn-mcp: ready (stdio, read-only, quota ceiling 100) to stderr and
then waits on stdin — that is the MCP transport, so the silence is correct.
Why the evidence matters
Kaidn's engine is rules-first and explainable: every reason carries the raw
numbers behind it. A bare score gives a model nothing to reason about, while
checks[] with evidence attached gives it something to explain. That is the
difference between explain_event being useful and being decorative.
Rules decide. The model narrates.
Project
CONTRIBUTING.md — what belongs here, and the guarantees a change must not break
SECURITY.md — reporting, threat model, known limitations
PRIVACY.md — what passes through, what is stored, what is not
Licence
MIT
Available Tools
10 toolscheck_emailCheck an email addressA
Enrichment and in-network reputation for one email address: disposable/ throwaway domain, deliverability, fraud score, plus how often the address has been seen abusing other operators. Also returns canonical, the identity key: every alias that reaches one mailbox (+tags, gmail dot tricks, googlemail.com) collapses to the same string, so compare THAT across accounts to tell whether two signups are one person. is_aliased and alias_tricks say which trick was used, and reject_reason says why an address is unusable. Consumes one row of monthly quota.
Inputs: email (required).
check_ipCheck an IP addressA
Enrichment and in-network reputation for one IP: proxy/VPN/Tor, datacenter ASN, geo, fraud score, and cross-operator abuse history. Consumes one row of monthly quota.
Inputs: ip (required).
check_phoneCheck a phone numberA
Validity, line type, carrier and fraud score for one phone number. Consumes one row of monthly quota.
Inputs: phone (required), country.
explain_eventExplain why an event scored the way it didA
The 'why was this blocked?' tool. Returns the event with every check that fired, its weight, and the raw evidence behind it, so the reasoning can be narrated with receipts rather than guessed at. Free.
Inputs: event_id (required).
get_configGet scoring configurationA
This tenant's weight and threshold overrides plus the effective merged engine config. Free. Useful for explaining why a score landed where it did.
Inputs: no named parameters.
get_statsVerdict and reason rollupsA
Aggregate view over a rolling window: totals by verdict, average score and the most common reasons. Free — does not consume quota. Start here to see what changed before drilling into individual events.
Inputs: window_hours.
investigate_entityInvestigate an entity and the ring around itA
One call for what a fraud analyst actually wants. Returns enrichment for the entity, its reputation across the CROSS-OPERATOR abuse network (whether this email, IP or device has already burned other businesses, not just yours), and every recent event it appears in — which is how you get from one suspicious signup to the whole ring of accounts sharing its device, IP or inbox. Supply exactly one of email, ip or device_id. Enrichment consumes one row of monthly quota (device_id lookups are free).
Inputs: ip, email, limit, device_id.
list_eventsList scored eventsA
Scored events for this tenant, newest first. Free — does not consume quota. Filter by verdict or event type to narrow an investigation.
Inputs: event, limit, offset, verdict.
score_eventScore an eventA
Run an event through the scoring engine and get {score, verdict, reasons, checks}. When the event carries an email, the response also has an identity block whose email_canonical is the dedupe key for that address — so one call both scores the event and tells you whether the mailbox is one you have already seen. Consumes one row of monthly quota AND records an event — prefer the read-only tools when investigating history rather than testing new input.
Inputs: event (required), ip, email, phone, +3 more.
triage_queueReview queue, highest risk firstA
Every event sitting on the 'review' verdict, sorted by score descending — the daily triage job. Free.
Inputs: limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: check_email/check_ip/check_phone target different entity types, the read-only analytics tools (list_events, get_stats, get_config, explain_event, triage_queue) each serve a unique function, investigate_entity combines enrichment and history, and score_event is the only action that records an event. No two tools are easily confused.
All tool names follow a consistent verb_noun snake_case pattern (check_email, list_events, get_config, score_event, etc.). The verbs (check, list, get, explain, investigate, triage, score) clearly indicate the action, and the nouns (email, events, stats, config, entity, queue) indicate the resource.
10 tools is well within the ideal range for a fraud investigation MCP. Each tool covers a distinct need — enrichment, event browsing, stats, config, explanation, investigation, triage, and scoring — without unnecessary redundancy or bloat.
The tool set covers the full investigation lifecycle: enrichment for email/IP/phone/device, listing and triaging events, understanding scores via stats and config, explaining individual verdicts, investigating entity history, and testing new events. There are no obvious missing operations for the stated purpose.
Maintenance
Related MCP Connectors
Score an IP, email, phone, domain or device for fraud in one call, with the signals behind it.
Signup fraud checks: score emails and IPs, look up IPs and manage your blocklist.
Fraud risk score for signups and orders from email, IP, phone and user-agent
Verify companies, domains and counterparties before transacting. Sanctions, UBO, fraud scoring.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables real-time fraud detection and transaction analysis by integrating with Claude through MCP, providing tools to analyze transactions, flag suspicious activity, and manage fraud rules.9-
- AlicenseNot gradedqualityBmaintenanceEnables checking any IP address for VPN, proxy, Tor, datacenter hosting, anonymity, and fraud risk signals, plus API service status, directly from MCP-capable clients like Claude and Cursor.118 npm2MIT
- AlicenseAqualityBmaintenanceEnables AI agents to investigate synthetic fraud cases by pulling transactions, running deterministic rules evaluations, pivoting across devices, and recording auditable case files with provenance.4MIT
- AlicenseCqualityBmaintenanceEnables Claude Desktop, Cursor, and other MCP clients to inspect a Remnawave 3.x panel through natural-language chat, covering users, nodes, traffic, devices, connections, and GeoCheck, with tools generated from the official backend contract to match the panel version. Read-only by default and privacy-filtered, so secrets, keys, and client identifiers are hidden or replaced with aliases before reaching the chat.9113 npm21MIT