SanctionsAI

io.github.kindrat86由 GitHub 账号 kindrat86 发布v1.1.1更新于 Nov 2, 2026

OFAC sanctions screening for AI agents: 1,050 wallets, 19,389 SDN names, <100ms. Free tier, no key.

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

SanctionsAI 让助手按 OFAC、欧盟和联合国制裁名单筛查人名、机构名和加密货币钱包地址,在信任或付款前做一次核查。

可以做什么
  • 按 OFAC SDN、欧盟综合名单和联合国制裁名单筛查个人或机构名称,返回是否命中、置信度和名单来源
  • 按 OFAC SDN 名单筛查加密货币钱包地址,并显示关联的受制裁实体
  • 列出支持的制裁名单及其最后更新日期和实体数量
适用场景
适合助手涉及付款或交易对手、需要在继续之前快速做一次制裁核查的场景,例如向陌生钱包转账前或接纳新客户名称前。它只是付款前的轻量筛查步骤,并不等同于完整的合规体系。
运行要求
通过 streamable HTTP 连接 sanctionsai.dev 远程端点;托管工具未声明需要 API 密钥、注册或环境变量。README 另述自托管的 Python 包和带可选 API 密钥认证的托管 API,但与本端点无关。
安装前请注意
筛查结果仅供参考:命中项带有置信度,README 也说明网络中断时可能使用过期缓存,因此“无命中”不构成法律意义上的清白证明。README 还宣传了邮件收件箱、短信号码工具和付费托管套餐,但这些并不在本次暴露的工具中,对其更宽泛的说法应谨慎看待。

安装

在 SourceWeft 中

  1. 打开 控制台中的 SanctionsAI,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.kindrat86%2Fsanctionsai/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "sanctionsai": {
      "type": "http",
      "url": "https://sanctionsai.dev/api/mcp"
    }
  }
}

README

SanctionsAI — compliance & verification toolkit for AI agents

[PyPI] [Python 3.11+] [License: MIT]

Your agent is about to send USDC to a stranger. Is that stranger sanctioned? 782 OFAC crypto wallets · 19,086 sanctioned names · 16 embargoed jurisdictions. No API key. No signup. 30-second setup. Free & open source.

SanctionsAI gives any AI agent three capabilities it can't provide itself:

LayerWhatStatus
🛡️ ComplianceOFAC sanctions screen, KYA, transaction risk score, disputes✅ Live — real OFAC data
📧 EmailDisposable verification inbox (receive OTP/magic links)✅ Live
📱 SMSRentable phone numbers (receive SMS/OTP)✅ Live (mock free, 5sim/Twilio paid)

It exposes all of these through three surfaces — MCP tools (for Claude Code / Cursor / Hermes), an HTTP API (for any agent), and a CLI (for you). Same core, same data.


Why this exists

Agents are starting to pay for things (x402, AP2, ACP, Coinbase AgentKit). But every payment rail assumes a human is watching. If your agent autonomously pays a wallet that's on the OFAC Specially Designated Nationals list, that's your legal problem — and the big payment infra players (OpenAI, Stripe, Coinbase) explicitly do not handle per-jurisdiction sanctions screening, Know-Your-Agent, or agent-transaction fraud signals. That's the gap this fills.

agent ──about to pay──▶  sanctions_check(wallet)  ──▶ clean? proceed. sanctioned? ABORT.

Quick start (30 seconds)

bash
pip install sanctions-mcp

Option A — use it from an MCP client (Claude Code / Cursor)

jsonc
// .mcp.json or your client's MCP config{  "mcpServers": {    "SanctionsAI": {      "command": "python",      "args": ["-m", "agentmail.mcp_server"]    }  }}

Now your agent can call sanctions_check, risk_score, kya_verify, dispute_open, create_inbox, fetch_code, create_number, fetch_sms, release_number, list_inboxes.

Note: the PyPI package is sanctions-mcp (the name SanctionsAI was taken). The Python import name is still SanctionsAI.

Option B — use it as an HTTP API

bash
python -m agentmail.api   # serves on :8000
bash
# Screen a wallet against real OFAC data — no key, no auth needed for self-hostcurl "http://localhost:8000/sanctions?wallet=0x098B716B8Aaf21512996dC57EB0615e2383E2f96"# → {"matches":[{"list":"OFAC_SDN","match_type":"wallet_exact","confidence":1.0}],#    "clean":false,"provider":"osint"}
curl "http://localhost:8000/risk" -d '{"counterparty_id":"0xabc...","amount":"5000","rail":"x402"}'# → {"score":0,"recommendation":"decline","reasons":["sanctions_match:OFAC_SDN/..."]}

Option C — use it from the CLI

bash
# Sanctions screen — real OFAC data, no keypython -m agentmail.cli sanctions --wallet 0x098B716B8Aaf21512996dC57EB0615e2383E2f96# → flagged: OFAC_SDN wallet_exact
python -m agentmail.cli risk 0xabc123def456 5000 --rail x402python -m agentmail.cli kya my-agent --wallet 0xabc... --wallet-age 400 --domain bot.devpython -m agentmail.cli compliance-status# → OFAC SDN: 782 wallets, 19086 names; source=vile/ofac-sdn-list@...

The compliance layer (the part that matters)

Four tools, called before an agent trusts or pays a counterparty:

ToolWhen to callReturns
sanctions_check(name, wallet, country)Cheapest check. Call first.{matches, clean}
risk_score(counterparty, amount, ...)Right before authorizing payment{score 0-100, recommendation: allow/review/decline}
kya_verify(agent_id, evidence)Before trusting another agent{trust_score, verified, flags}
dispute_open(transaction_id, reason)When a paid transaction went bad{dispute_id, escalation_at}

Where the data comes from (all public, free, no key)

SourceWhatRefresh
vile/ofac-sdn-list (GitHub releases)782 multi-chain crypto addresses (ETH/USDT/TRX/XBT/...)daily
US Treasury OFAC sdn.csv19,086 sanctioned individuals & entitiesas published
Embargoed jurisdictions set16 ISO-2 codes under comprehensive OFAC/UN/EU sanctionstracked manually

Lists are cached locally (~/.agentmail/cache/, 24h TTL) and refresh from source. If the network is down, a stale cache is used and status() reports degraded: true so you know screening is against older data rather than failing silently.

Providers (swappable backend)

AGENTMAIL_COMPLIANCE_PROVIDER=osint   ← default, real OFAC data, freeAGENTMAIL_COMPLIANCE_PROVIDER=mock    ← rule-based, for offline testsAGENTMAIL_COMPLIANCE_PROVIDER=paid    ← ComplyAdvantage passthrough (roadmap)

The osint provider does exact + token-subset name matching, exact case-insensitive wallet matching, and ISO-2 country matching. Every match carries a confidence so you can decide how hard to block.


The other two layers (verification toolkit)

Email — a disposable inbox an agent can use to sign up and receive OTP/magic-link verifications (backed by Mail.tm). create_inbox() → address → fetch_code() → OTP.

SMS — a rentable phone number an agent can use for phone/SMS verification. Mock provider works with no key (for dev); AGENTMAIL_SMS_PROVIDER=fivesim AGENTMAIL_FIVESIM_KEY=... goes live with real numbers.

Both share an otp.py extraction brain (regex for codes + magic links) so email and SMS produce the same {code, link} shape.


Self-host vs. hosted

Self-host is fully functional and free — that's what this repo is. Run the MCP server locally or the HTTP API on your own box, screen against real OFAC data, never pay a cent.

Hosted API is live at https://agentmail-api.fly.dev — a managed endpoint with API-key auth, rate limits, and an audit log of every screen (the thing regulators/investors ask for). Free tier: 50 checks/day, no signup (by IP). For higher volume, get an API key → (Dev $19/mo, Team $99/mo — self-serve checkout).

bash
# Try the hosted API right now — no key needed:curl "https://agentmail-api.fly.dev/sanctions?wallet=0x098B716B8Aaf21512996dC57EB0615e2383E2f96"# → {"matches":[{"list":"OFAC_SDN",...}],"clean":false}
# With an API key:curl -H "X-API-Key: sk_live_..." "https://agentmail-api.fly.dev/risk" \  -d '{"counterparty_id":"0xabc...","amount":"5000","rail":"x402"}'

Roadmap

  • Email inbox (Mail.tm) + SMS/OTP (mock/5sim/twilio) + OTP extraction
  • Compliance layer — real OFAC data (osint provider): 782 wallets + 19,086 names
  • MCP server (10 tools) + HTTP API + CLI
  • SanctionsAI Sanctions Exposure Index (SEI) — proprietary 5-factor framework for scoring AI agent OFAC exposure (2026 report: sanctionsai.dev/research)
  • Hosted API with API-key auth + rate limiting (Fly.io)
  • Audit log (tamper-evident screen history — the enterprise wedge)
  • EU + UN consolidated lists (osint provider, phase 2)
  • Paid provider: ComplyAdvantage passthrough (enterprise)
  • x402 per-call billing (when agents pay themselves)

SEI: the SanctionsAI Sanctions Exposure Index

The SanctionsAI Sanctions Exposure Index (SEI) is a 5-factor proprietary framework for quantifying an AI agent's OFAC sanctions exposure:

FactorWeightWhat it measures
V — Velocity30%Transactions/day the agent can execute unattended
J — Jurisdiction overlap25%Fraction of counterparties in/near embargoed regions
A — Asset class20%Crypto (highest SDN coverage), fiat, mixed
S — Screening posture15%No screen → batch → pre-payment inline → inline + audit
D — Disclosure readiness10%Can operator produce a VSD within 5 days?

Score 10 (min exposure) → 1000 (max). S and D are the two factors you can change today — collapse both from 1→10 with a single inline screening call and a timestamped audit trail. Full report + interactive calculator at sanctionsai.dev.

Cite as: "SanctionsAI Sanctions Exposure Index (SEI), 2026 Agent-Payment Sanctions Exposure Report, sanctionsai.dev" — licensed CC BY 4.0.

Design notes (honest)

  • The compliance layer has the real moat. Email/SMS are plumbing a platform could swallow. Sanctions screening tied to agent-transaction history builds a dataset nobody else has, and per-jurisdiction rules are something the big infra players explicitly avoid.
  • Self-host is the free tier, not a trap. The value you pay for (eventually) is not the data — it's uptime, freshness, and the audit trail. The data is and will stay public.
  • 5sim numbers are shared-after-release. Fine for receiving an OTP, never for 2FA on accounts you intend to keep.

License

MIT — see LICENSE.

Contributing

Issues and PRs welcome. If you're using SanctionsAI in production, I'd love to hear what for.

来源:README.md,提交 3e77c9f

工具

3

screen_name

Screen a person or entity name against OFAC SDN, EU consolidated, and UN sanctions lists. Returns match status, confidence, and list source.

输入参数name必填

screen_wallet

Screen a cryptocurrency wallet address against OFAC SDN sanctions list. Returns match status and any associated sanctioned entity.

输入参数address必填

get_sanctions_lists

List all supported sanctions lists with last-updated dates and entity counts.

无需输入参数。

版本历史

2
  1. v1.1.1最新Oct 12, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分