chainanalyzer-mcp
chainanalyzer-mcp is a multi-chain blockchain AML (Anti-Money Laundering) risk analysis server that enables AI agents to perform compliance screening and fraud detection across major blockchains (Bitcoin, Ethereum, Polygon, Avalanche, Solana, Base, Arbitrum, Optimism, and BNB Smart Chain for enterprise users).
check_address_risk: Get an AML risk score (0–100) with ML anomaly scoring and detailed detections for a blockchain address.sanctions_check: Screen an address against OFAC, FATF, JFSA, and ChainAnalyzer ScamDB sanctions lists.trace_transaction: Trace fund flows for a transaction with ML anomaly detection, returning a graph of addresses and transfers (configurable depth up to 5).detect_coinjoin: Detect CoinJoin, mixing, and tumbling patterns in a Bitcoin transaction.cluster_wallet: Identify related addresses via Neo4j graph clustering, returning cluster size and associated addresses (configurable depth up to 3).batch_screening: Perform AML screening for up to 50 addresses simultaneously, returning a risk level and score per address.
Provides AML risk analysis for Bitcoin addresses, including sanctions screening, CoinJoin/mixing detection, and transaction tracing.
Provides AML risk analysis for Ethereum addresses, including 18+ detectors, Neo4j graph analysis, sanctions, and mixer detection.
Used for wallet clustering and graph analysis to detect relationships between addresses.
Provides full EVM AML suite for Polygon, compatible with Etherscan V2 API.
Provides token security analysis (rug pull, honeypot) and wallet drainer detection for Solana.
chainanalyzer-mcp
MCP Server for ChainAnalyzer — multi-chain blockchain AML risk analysis for AI agents.
Scan any address across 8 chains live for self-serve — Bitcoin, Ethereum, Polygon, Base, Arbitrum, Optimism, Avalanche, Solana — plus BNB Smart Chain on Enterprise rollout (paid Etherscan tier required, available via API key only). 76+ detection rules across 9 chains, ML anomaly scoring, and Neo4j graph analysis.
Tools
Tool | Description | Price |
| AML risk score for any blockchain address | $0.008 |
| OFAC / FATF / JFSA sanctions screening | $0.003 |
| Transaction flow tracing with ML anomaly detection | $0.015 |
| CoinJoin / mixing pattern detection (Bitcoin) | $0.01 |
| Wallet clustering via Neo4j graph analysis | $0.02 |
| Batch AML screening (up to 50 addresses) | $0.05 |
Quick Start
Claude Desktop / Claude Code
Add to your MCP configuration:
{
"mcpServers": {
"chainanalyzer-aml": {
"command": "npx",
"args": ["-y", "chainanalyzer-mcp"],
"env": {
"CHAINANALYZER_API_KEY": "tfk_your_api_key"
}
}
}
}From Source
git clone https://github.com/rascal-3/chainanalyzer-mcp.git
cd chainanalyzer-mcp
npm install
npm startAuthentication
Choose one of three modes:
1. API Key (Subscription)
Get a tfk_ API key from chain-analyzer.com (Pro plan).
{
"env": {
"CHAINANALYZER_API_KEY": "tfk_your_api_key"
}
}2. x402 USDC Payment (Pay-Per-Request)
No account needed. Pay with USDC on Base or Solana per request.
{
"env": {
"X402_PRIVATE_KEY": "your_wallet_private_key",
"X402_NETWORK": "base"
}
}Requires the x402 npm package: npm install x402
3. Dev Mode
No authentication. Works when the ChainAnalyzer server has X402_ENABLED=false.
{
"env": {
"CHAINANALYZER_BASE_URL": "http://localhost:3000"
}
}Environment Variables
Variable | Description | Required |
|
| One of API key or x402 |
| Wallet private key for USDC payments | One of API key or x402 |
| Payment network: | No |
| API base URL (default: | No |
Example Usage
Once configured, ask your AI agent:
"Check if this Ethereum address is sanctioned: 0x1234..."
"Analyze the risk score for this Solana wallet: ABC123..."
"Trace the fund flow of this Bitcoin transaction and check for mixing patterns"
"Screen these 20 addresses for AML compliance"
The agent will automatically call the appropriate ChainAnalyzer tools.
Supported Chains
Bitcoin — OFAC screening, dust attacks, peel chains, CoinJoin detection
Ethereum — 18+ detectors, Neo4j graph analysis, sanctions, mixers
Polygon — Full EVM AML suite, Etherscan V2 compatible
Avalanche — Full EVM AML suite, Routescan API
Solana — Token security (rug pull, honeypot), wallet drainer detection
Links
ChainAnalyzer — Web platform
Documentation — API reference
x402 Protocol — Pay-per-request standard
License
MIT - see LICENSE
Built by refinancier, inc.
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rascal-3/chainanalyzer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server