# rascal-3/chainanalyzer-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/rascal-3/chainanalyzer-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 1252  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rascal-3-chainanalyzer-mcp

## Description
Multi-chain AML risk scoring and sanctions screening for AI agents. 76+ detection rules, ML anomaly scoring, and Neo4j graph analysis across Bitcoin, Ethereum, Polygon, Avalanche, and Solana. Pay-per-request via x402 USDC on Base or Solana ($0.003–$0.05). npx chainanalyzer-mcp.

## Tools
Capabilities this server exposes over MCP:

- **check_address_risk** — AML risk score for any blockchain address (12 chains)
- **sanctions_check** — OFAC / FATF / JFSA sanctions screening (12 chains)
- **hack_exposure_lookup** — Is this address connected to a known hack (e.g. Binance 2026)? Verdict, hop distance from the attacker, role and lower-bound amounts per incident (EVM, TRON, Solana, Bitcoin)
- **freeze_status** — Is this address frozen / blacklisted by a stablecoin issuer (USDT, USDC, JPYC ...)? Current state per token with timestamps (Ethereum, Polygon, Avalanche, TRON)
- **hack_exposure_batch** — Known-hack exposure for up to 50 addresses in one call (deposit-list screening)
- **trace_transaction** — Transaction flow tracing with ML anomaly detection (12 chains)
- **detect_coinjoin** — Takes a Bitcoin transaction id and decides from its structure whether it is a CoinJoin: `is_coinjoin`, `mixer_type`, input / output counts and the groups of equal-value outputs
- **cluster_wallet** — Wallet clustering via Neo4j graph analysis
- **batch_screening** — Batch AML screening (up to 50 addresses, 12 chains)
- **bridge_flow_trace** — Multi-hop cross-chain forensic trace with Solver detection + same-intent correlation (NEAR Intents / Wormhole / Stargate / Across / Synapse / Hop / deBridge). Source chain: EVM chains or Solana

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "chainanalyzer-mcp": {
    "command": "npx",
    "args": ["-y","chainanalyzer-mcp"],
    "env": {
      "CHAINANALYZER_API_KEY": "",
      "X402_PRIVATE_KEY": "",
      "X402_MAX_USD_PER_CALL": "",
      "X402_NETWORK": "",
      "CHAINANALYZER_BASE_URL": ""
    }
  }
}
```

**Requires environment variables:** `CHAINANALYZER_API_KEY`, `X402_PRIVATE_KEY`, `X402_MAX_USD_PER_CALL`, `X402_NETWORK`, `CHAINANALYZER_BASE_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What rascal-3/chainanalyzer-mcp does

rascal-3/chainanalyzer-mcp exposes ChainAnalyzer's blockchain compliance and investigation functions through MCP. It can evaluate an address's AML risk, check OFAC, FATF, and JFSA sanctions lists, identify links to known hacks, and report stablecoin freeze or blacklist status. The service supports Bitcoin, Ethereum, Polygon, BNB Smart Chain, Base, Arbitrum, Optimism, Avalanche, Solana, Kaia, TRON, and XRP.

Analysis combines 76+ detection rules, machine-learning anomaly scoring, and Neo4j graph analysis. The result is suited to agent-driven due diligence, transaction investigation, and screening workflows in finance and fintech.

## How it works

Run the package as an MCP process with `npx -y chainanalyzer-mcp`, or install the repository dependencies and start it from source. An MCP-compatible agent invokes the exposed tools based on a request such as checking a wallet, tracing a transaction, or screening a list of deposit addresses.

Authentication can use a `tfk_` ChainAnalyzer API key. Pay-per-request operation is also available through x402: the server signs USDC payments from a configured EVM wallet on Base. A development mode can point the server at a local ChainAnalyzer endpoint with authentication disabled.

The repository also includes an Agent Skill describing tool selection, chain identification from address formats, and result reporting. Claude Code can install the MCP server and skill together through the supplied plugin; other agents can copy the skill directory into their skills location.

## Setup and configuration

For Claude Desktop or Claude Code, add an MCP entry that runs `npx` with the `-y` and `chainanalyzer-mcp` arguments. Set either `CHAINANALYZER_API_KEY` or `X402_PRIVATE_KEY` in the entry's environment. The API key is available on all ChainAnalyzer plans, while some API-key plans gate `batch_screening` and `bridge_flow_trace`.

With x402, `X402_MAX_USD_PER_CALL` limits the amount signed for one request; raise it to at least `2.50` for `batch_screening`. Payments use Base, and the configured wallet should be dedicated and hold a small USDC balance. The wallet address must not have EIP-7702 delegation. `CHAINANALYZER_BASE_URL` can override the default hosted API URL for local development.

## Tools and capabilities

- `check_address_risk` scores addresses for AML risk across 12 chains.
- `sanctions_check` screens addresses against OFAC, FATF, and JFSA data.
- `hack_exposure_lookup` and `hack_exposure_batch` find known-hack connections, hop distance, roles, and lower-bound incident amounts; the batch variant accepts up to 50 addresses.
- `freeze_status` reports token-specific stablecoin freeze or blacklist state and timestamps.
- `trace_transaction` follows transaction flows with ML anomaly detection.
- `detect_coinjoin` analyzes Bitcoin transaction structure and equal-value output groups.
- `cluster_wallet` uses Neo4j graph analysis for wallet clustering.
- `batch_screening` performs AML checks for up to 50 addresses.
- `bridge_flow_trace` follows multi-hop flows from EVM chains or Solana and supports listed bridges and Solver detection.

## Limitations and notes

`detect_coinjoin` is Bitcoin-only. Freeze checks cover Ethereum, Polygon, Avalanche, and TRON, while hack-exposure tools cover EVM chains, TRON, Solana, and Bitcoin. Bridge tracing starts from EVM chains or Solana. x402 payments are made on Base by this server, even though the underlying API may offer Solana payment options. Tool calls have per-request prices in x402 mode, and failed calls are not charged after payment settlement is withheld.

_Full upstream README: https://allmcps.com/mcp/rascal-3-chainanalyzer-mcp/readme_

