Kaidn

io.kaidn由 kaidn.io 發布v0.4.0更新於 Oct 24, 2026

Explain fraud verdicts with evidence, surface account rings, and see who has burned other operators.

已驗證STDIO僅桌面安全與監控資料與分析

概覽

AI 產生的概覽

Kaidn 的詐欺評分 MCP 伺服器,讓助理解釋詐欺判定、處理審核佇列,並調查可疑電子郵件、IP 與裝置。

可以做什麼
  • 讀取判定、分數與原因彙總,並依判定或類型篩選已評分事件
  • 解釋單一事件觸發的每項檢查及其原始證據
  • 依分數取得審核佇列,並查看目前租戶生效的權重與門檻
  • 調查單一實體(電子郵件、IP 或裝置)的補充資訊、網路信譽與相關事件
  • 檢查電子郵件、IP 或電話的一次性網域、代理/VPN/Tor、電信業者與濫用紀錄
  • 為新事件評分;僅在開啟寫入時,將實體加入允許/封鎖名單或標註結果
適用情境
適合使用 Kaidn 詐欺評分、想用自然語言釐清某次註冊或付款為何被攔下、某裝置或 IP 還牽涉到什麼,以及審核佇列中有哪些項目的情況。也適合在調整規則前評估目前會被攔下的事件。
執行需求
透過 npm 套件 @kaidn/mcp 以 stdio 在本機執行,需要 Node.js 18 或更新版本。需要 Kaidn 帳號與 API 金鑰,且只能透過 KAIDN_API_KEY 環境變數提供。選用設定包括 KAIDN_API_URL、KAIDN_MCP_ALLOW_WRITES、KAIDN_MCP_MAX_QUOTA_CALLS 以及 HTTP 傳輸相關變數。需要能連線至 Kaidn API 的網路。
安裝前請注意
伺服器持有你的 Kaidn API 金鑰,能存取它的人就能消耗你的配額;請維持僅監聽本機,或在綁定更廣介面前設定 KAIDN_MCP_HTTP_TOKEN。部分工具每次呼叫會消耗配額,受 KAIDN_MCP_MAX_QUOTA_CALLS 限制。寫入預設關閉;啟用 KAIDN_MCP_ALLOW_WRITES 會開放 add_to_list 與 label_outcome,它們會變更租戶資料。被調查的電子郵件、IP 與裝置會傳送至 Kaidn 的 API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Kaidn,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Kaidn]

[npm version] [MCP registry] [license MIT] [docs]

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:

json
{  "mcpServers": {    "kaidn": {      "command": "npx",      "args": ["@kaidn/mcp@latest"],      "env": { "KAIDN_API_KEY": "your_key" }    }  }}
Claude Code
bash
claude mcp add kaidn --env KAIDN_API_KEY=your_key -- npx @kaidn/mcp@latest
Claude Desktop

Add the standard config to claude_desktop_config.json, then restart Claude. Settings → Developer → Edit Config opens the file.

Cursor

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).

VS Code
bash
code --add-mcp '{"name":"kaidn","command":"npx","args":["@kaidn/mcp@latest"],"env":{"KAIDN_API_KEY":"your_key"}}'
Windsurf

Add the standard config to ~/.codeium/windsurf/mcp_config.json.

Cline

Add the standard config to cline_mcp_settings.json via the MCP Servers icon → Configure MCP Servers.

Zed

Add to settings.json under context_servers, using the same command, args and env as the standard config.

Anything else

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.


Configuration

OptionEnvironment variableDefaultPurpose
KAIDN_API_KEYrequiredYour secret key. Environment only — never a flag, never a tool argument.
KAIDN_API_URLhttps://api.kaidn.ioAPI base URL
--allow-writesKAIDN_MCP_ALLOW_WRITES=1offRegister the mutating tools
KAIDN_MCP_MAX_QUOTA_CALLS100Quota ceiling per process
--httpKAIDN_MCP_TRANSPORT=httpstdioServe Streamable HTTP
--host <addr>KAIDN_MCP_HOST127.0.0.1HTTP bind address
--port <n>KAIDN_MCP_PORT8765HTTP port
KAIDN_MCP_HTTP_TOKENunsetRequire Authorization: Bearer on HTTP
--helpShow usage
--versionShow 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

TransportUse it forEndpoint
stdio (default)local clients that spawn a subprocess—
Streamable HTTPremote agents, containers, anything off-machinePOST /mcp

HTTP+SSE is deliberately absent: deprecated in the 2025-03-26 spec and sunset in June 2026.

Streamable HTTP

bash
npx @kaidn/mcp@latest --http --port 8765

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.


Docker

bash
docker build -t kaidn-mcp .
bash
# stdio — behaves like the npx invocationdocker run -i --rm -e KAIDN_API_KEY=your_key kaidn-mcp
# HTTP — for remote agentsdocker 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-mcp

Multi-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 unless KAIDN_MCP_HTTP_TOKEN is set. It stops with an explanation rather than quietly exposing your account.
  • Read-only by default. 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.
  • 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

ToolCostWhat it does
get_statsfreeVerdict, score and reason rollups over a rolling window. Start here.
list_eventsfreeScored events, newest first, filterable by verdict or type, searchable by fingerprint or user id
explain_eventfreeEvery check that fired on one event, with the raw evidence
triage_queuefreeEverything on review, highest score first
get_configfreeEffective weights and thresholds for this tenant
investigate_entity1 row¹Enrichment, network reputation and related events for one entity
check_email1 rowDisposable domain, deliverability, fraud score, abuse history
check_ip1 rowProxy, VPN, Tor, datacenter ASN, geo, abuse history
check_phone1 rowValidity, line type, carrier, fraud score
score_event1 rowScore 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

ToolWhat it does
add_to_listAdd an entity to the allow or block list
label_outcomeReport 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.x a 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 seeMeaningFix
KAIDN_API_KEY is not setServer started without a keySet it in the client's env block
Kaidn error: 401 …Key rejectedRotate or re-copy it from the dashboard
Kaidn error: 429 …Rate limitedSlow down; per-key throttling is by the minute
Session quota ceiling reached (100/100 …)The guard stopped an expensive runRaise KAIDN_MCP_MAX_QUOTA_CALLS deliberately, or restart
No event <id> in the most recent 200 eventsEvent is older than the scan windowPage back with list_events using offset
Supply exactly one of email, ip or device_idAmbiguous investigationAsk about one entity at a time
Refusing to bind <host> without authenticationNon-loopback HTTP with no tokenSet KAIDN_MCP_HTTP_TOKEN, or bind 127.0.0.1

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:

bash
node dist/index.js --help                 # no key requiredKAIDN_API_KEY=your_key npm start          # should print a ready line

Support


Run from source

bash
git clone https://github.com/Kaidn-io/kaidn-mcp.gitcd kaidn-mcpnpm installnpm run buildnpm test
bash
claude mcp add kaidn --env KAIDN_API_KEY=your_key -- node /absolute/path/to/kaidn-mcp/dist/index.js

To check it starts without a client:

bash
KAIDN_API_KEY=your_key npm start

It 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

Licence

MIT

來源:README.md,提交 d3cc1bc

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.4.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分