Use ChainAnalyzer from AI agents

MCP server + Agent Skill: let your AI agent screen addresses, check sanctions and trace funds

API keys are available on every plan, including Free. The Free plan includes 10 scans a month and covers five tools: sanctions_check, check_address_risk, trace_transaction, detect_coinjoin and cluster_wallet. batch_screening needs Starter or above (up to 50 addresses per call; 10 on Starter) and bridge_flow_trace needs Business or above. In x402 mode every tool is available regardless of plan.

What you get

The ChainAnalyzer MCP server (npm package chainanalyzer-mcp, MIT license) gives AI agents access to 12 chains, 76+ detection rules, ML anomaly scoring and graph analysis through the 7 tools below. The Agent Skill (SKILL.md) that ships with it tells the agent which tool to call, and in what order.

ToolWhat it doesCoveragex402 price
sanctions_checkScreens against sanctions lists (OFAC, EU, UK, UN, JFSA and others) and ScamDBAddresses on all 12 chains$0.50
check_address_riskAML risk score (0-100), risk level, detections with evidence, ML anomaly scoreAll 12 chains$1.00
trace_transactionTransaction fund-flow tracing with ML anomaly detectionTransaction hash (chain can be specified)$3.00
detect_coinjoinCoinJoin, mixing and tumbling pattern detectionBitcoin only$1.00
cluster_walletFinds addresses likely controlled by the same actor via graph analysisAddress (chain can be specified)$2.50
batch_screeningAML screening for up to 50 addresses in one callAll 12 chains$5.00
bridge_flow_traceFollows funds across bridges; detects NEAR Intents, Wormhole, Stargate, Across, deBridge, Hop and Synapse solversEVM chains + Solana + Kaia$3.00

Prices are per call in x402 (pay-per-request) mode. With an API key, each call uses one scan from your monthly quota instead.

Install in Claude Code (plugin)

In Claude Code, the MCP server and the Agent Skill install together as one plugin. Run these two commands inside Claude Code:

/plugin marketplace add rascal-3/chainanalyzer-mcp
/plugin install chainanalyzer-aml@chainanalyzer

Then set your API key in the environment of the shell that launches Claude Code. The plugin reads it from there.

export CHAINANALYZER_API_KEY=tfk_...
# or, pay per request with USDC (no account):
# export X402_PRIVATE_KEY=...

Restart Claude Code and ask something like "Is this address sanctioned?" — the agent follows the skill and calls the tools.

Install in any other agent

Cursor, Codex CLI, Gemini CLI, OpenClaw and other agents that read SKILL.md can use the same skill. Two steps:

1. Add the skill: copy the skills/chainanalyzer-aml/ folder from the GitHub repository into your agent's skills directory, or run:

npx skills add rascal-3/chainanalyzer-mcp

2. Configure the MCP server: add this to your agent's MCP configuration (claude_desktop_config.json for Claude Desktop). Requires Node.js 18+.

{
  "mcpServers": {
    "chainanalyzer-aml": {
      "command": "npx",
      "args": ["-y", "chainanalyzer-mcp"],
      "env": {
        "CHAINANALYZER_API_KEY": "tfk_..."
      }
    }
  }
}

MCP clients that do not read skills can still use all 7 tools through the MCP server alone; tool choice and ordering are then left to the agent.

Authentication

Pick one of two modes.

API key (every plan, including Free)

Sign in at chain-analyzer.com, create a tfk_ key under Settings → API Keys, and set it as CHAINANALYZER_API_KEY. Keys can be issued on every plan, Free included. Each tool call uses one scan from your monthly quota.

PlanRequest limit
Free10 requests/min (10 scans/month)
Starter30 requests/min
Pro60 requests/min
Business120 requests/min
Enterprise300 requests/min

Monthly scan quotas differ by plan. See the pricing page for current numbers. Pricing

x402 (no account, pay per request)

You can also skip the account and pay per call in USDC on Base or Solana. Set X402_PRIVATE_KEY to the wallet key and X402_NETWORK to base or solana. Use a dedicated wallet holding only a small balance.

"env": {
  "X402_PRIVATE_KEY": "your_wallet_private_key",
  "X402_NETWORK": "base"
}

x402 details

How the skill decides

An MCP server only exposes tools; it does not decide when to use them or in what order. The Agent Skill gives the agent that judgment.

  1. Detects the chain from the address format

    bc1 / 1 / 3 prefixes are Bitcoin, T plus 33 characters is TRON, r is XRP, 32-44 Base58 characters is Solana, and 0x plus 40 hex is EVM. Because the format alone does not say which EVM chain, the agent uses the chain you named, or defaults to Ethereum and says so. Base58 addresses are never lower-cased.

  2. Screens cheap first

    It calls sanctions_check, then check_address_risk. A sanctions hit is reported right away. It moves on to cluster_wallet, trace_transaction or bridge_flow_trace only when risk is medium or above, when detections mention mixers or bridges, or when you ask it to follow the money.

  3. Confirms before spending

    In x402 mode, if a single turn would cost more than about $5 (several traces, or a batch), the agent asks you first.

  4. Reports evidence first

    The answer opens with one line — risk level, score, sanctions status — followed by the evidence behind each detection (tx hash, counterparty label, amount). Next steps are offered as options for your own compliance policy (keep monitoring, enhanced due diligence, escalate), never as a decision to file a report. A "safe" result is never presented as a guarantee.

Limitations

  • bridge_flow_trace covers EVM chains, Solana and Kaia. It does not accept TRON or XRP.
  • detect_coinjoin is Bitcoin only.
  • Risk scores are based on public ledger data only. They do not include KYC data or off-chain information.
  • Results are risk indicators backed by on-chain evidence, not legal determinations. The final call belongs to your compliance officer.
  • The absence of detections is not proof that an address is legitimate.

Where it is listed

  • Official MCP Registry — io.github.rascal-3/chainanalyzer-mcp
  • npm — chainanalyzer-mcp
  • Smithery — skill rascal-3/chainanalyzer-aml
  • Glama — quality score A
  • GitHub — rascal-3/chainanalyzer-mcp (source, SKILL.md, README)

Related docs

Get an API key and try it

The Free plan costs nothing. Create an account, issue a key under Settings → API Keys, and your agent can start calling the tools.

Share this page

© 2026 ChainAnalyzer. All rights reserved.