CryptoGuard
CryptoGuard is a crypto risk intelligence API that provides deterministic risk assessments for cryptocurrency trades and tokens using a physics-based anomaly detection engine (WaveGuard).
Validate Trades: Get
PROCEED/CAUTION/BLOCKverdicts for crypto trades before execution, running 5 checks: peer anomaly scan, self-history comparison, rug pull risk, CEX/DEX price cross-check, and concentration risk analysis. Supports buy/sell/swap with optional USD amount.Scan Tokens: Detect anomalous market behavior for individual tokens using tier-matched peer comparison. Returns anomaly scores, risk levels, and explanations.
Check Rug Pull Risk: Assess DEX trading pairs by scoring 6 factors (0–100): liquidity depth, pair age, volume/liquidity ratio, price action, buy/sell imbalance, and metadata.
Advanced Market Intelligence: Access physics-based analysis including trend detection, regime change detection, volatility forecasting, spectral (hidden periodicity) scans, whale activity detection, and momentum pulse detection.
Monitor DEX Activity: Discover new DEX pairs, search existing pairs, and retrieve detailed pair/token information.
Search Tokens: Find CoinGecko coin IDs by name, symbol, or contract address across 7 blockchains (Ethereum, Solana, Base, BSC, Polygon, Avalanche, Arbitrum).
Batch Operations: Validate up to 20 trades or scan up to 50 tokens in a single call.
Track Performance: View CryptoGuard's historical prediction track record.
Check Service Health & Usage: Verify API status, version, remaining free calls, and pricing details.
Integrate with AI Agents: Use as an MCP server with tools accessible via JSON-RPC 2.0, a Python SDK (
pip install CryptoGuardClient), or REST API.Free & Paid Access: 5 free calls/day per IP with no signup; then pay-per-use via x402 USDC micropayments or RapidAPI subscriptions. Premium endpoints include
validate-trade-plus($0.10/call) andcounterfactual-trade($0.08/call) with what-if sensitivity analysis.
Enables risk scanning and trade validation for Bitcoin to detect potential market crashes and anomalies with a high lead time.
Supports USDC micropayments via the Coinbase-developed x402 protocol for per-scan tool usage.
Provides access to the CryptoGuard risk scanning tools and usage tracking through the RapidAPI marketplace.
Allows for anomaly scanning, trade validation, and rug pull risk assessment for Solana-based tokens and DEX pairs.
Integrates with Stripe to manage user subscriptions and facilitate access to unlimited token risk analysis calls.
CryptoGuard
Crypto risk scanner that detected every major crash in backtesting — 27 days early, on average.
Scan any token by name, ticker, or contract address. Get a deterministic verdict: PROCEED / CAUTION / BLOCK.
Version: 0.6.0 | Live API: https://gpartin--cryptoguard-api-fastapi-app.modal.run | Free tier: 5 calls/day | MCP: 7 tools
Backtest Results
Tested against 7 historical crypto crashes (LUNA, FTX, Celsius, 3AC, UST, SOL/FTX, TITAN) and 4 calm-market control periods. Full methodology and data: CryptoGuard backtest.
Method | Recall | Avg Lead Time | False Positive Rate |
CryptoGuard (WaveGuard engine) | 100% (7/7) | 27.4 days | 6.1% |
Z-score baseline | 100% (7/7) | 28.4 days | 29.9% |
Rolling volatility | 86% (6/7) | 15.5 days | 4.0% |
5× fewer false alarms than statistical baselines with the same recall.
Example: FTX Collapse (November 2022)
On October 16, 2022, FTT was trading at $23.73. Z-score analysis saw nothing (score 1.20, PROCEED).
CryptoGuard flagged CAUTION (anomaly score 4.72). The next day it escalated to BLOCK.
23 days later, FTX collapsed. FTT fell 94%.
Related MCP server: crypto-inspector-mcp
Install
pip install CryptoGuardClientQuick Start
from cryptoguard import CryptoGuardClient
client = CryptoGuardClient()
# Validate a trade — primary use case
result = client.validate_trade("bitcoin", action="buy", amount_usd=1000)
print(result["verdict"]) # PROCEED / CAUTION / BLOCK
# Scan a token
scan = client.scan("solana")
print(scan["risk_level"])
# Rug pull check
rug = client.rug_check("solana", "0xabc123...")
print(rug["risk_score"])
# Check free tier remaining
print(client.free_tier())Primary Endpoint
curl -X POST https://gpartin--cryptoguard-api-fastapi-app.modal.run/v1/validate-trade \
-H "Content-Type: application/json" \
-d '{"token": "solana", "action": "buy", "amount_usd": 500}'First 5 calls/day are free. After that: $0.05/call via x402 USDC, or via RapidAPI.
MCP Integration (Claude Desktop / AI Agents)
CryptoGuard is an MCP server with 7 tools. Works with Claude Desktop, Cursor, or any MCP client.
Option 1: Remote HTTP (no install)
{
"mcpServers": {
"cryptoguard": {
"url": "https://gpartin--cryptoguard-api-fastapi-app.modal.run/mcp",
"transport": "http"
}
}
}Option 2: uvx
{
"mcpServers": {
"cryptoguard": {
"command": "uvx",
"args": ["--from", "CryptoGuardClient", "cryptoguard-mcp"]
}
}
}Option 3: pip install
{
"mcpServers": {
"cryptoguard": {
"command": "python",
"args": ["-m", "mcp_server.server"]
}
}
}MCP Tools
Tool | Description |
| Validate a trade → PROCEED / CAUTION / BLOCK |
| Anomaly scan for any token |
| Premium stateless decision bundle with what-if analysis |
| What-if sensitivity analysis with tipping-point guidance |
| DEX pair rug pull risk assessment |
| Search tokens by name/symbol/address |
| Service health check |
All Endpoints
Method | Endpoint | Price | Description |
POST |
| 5 free/day, then $0.05 | Primary — single verdict for AI agents |
POST |
| 5 free/day, then $0.05 | Batch validate up to 20 trades |
GET |
| 5 free/day, then $0.05 | Single token anomaly scan |
POST |
| 5 free/day, then $0.05 | Portfolio batch scan (up to 50 tokens) |
GET |
| 5 free/day, then $0.05 | Historical self-comparison |
GET |
| 5 free/day, then $0.05 | Rug pull risk assessment |
GET |
| 5 free/day, then $0.05 | New DEX pair discovery |
GET |
| 5 free/day, then $0.05 | DexScreener pair search |
GET |
| 5 free/day, then $0.05 | DEX pair details |
GET |
| 5 free/day, then $0.05 | DEX token info |
POST |
| $0.10/call | Premium stateless decision bundle |
POST |
| $0.08/call | What-if sensitivity analysis |
GET |
| Free | Historical prediction track record |
POST |
| 5 free/day, then $0.05 | Physics-based trend detection |
POST |
| 5 free/day, then $0.05 | Regime change detection |
POST |
| 5 free/day, then $0.05 | Anomalous correlation detection |
POST |
| 5 free/day, then $0.05 | Physics-based volatility forecast |
POST |
| 5 free/day, then $0.05 | Hidden periodicity detection |
POST |
| 5 free/day, then $0.05 | Whale activity detection |
POST |
| 5 free/day, then $0.05 | Momentum pulse detection |
GET |
| Free | Search tokens by name |
GET |
| Free | Check remaining free calls |
GET |
| Free | Pricing details |
GET |
| Free | Service statistics |
GET |
| Free | Health check |
POST |
| Free | MCP endpoint (JSON-RPC 2.0) |
GET |
| Free | List MCP tools |
GET |
| Free | Agent tool catalog |
GET |
| Free | MCP server metadata |
How It Works
Resolves token input — CoinGecko ID, ticker symbol, or contract address (7 chains)
Fetches live market data from CoinGecko + DexScreener
Builds baseline from tier-matched peers (microcaps vs microcaps, large caps vs large caps)
Extracts 10 time-series features per day (price ratios, volume dynamics, momentum, volatility)
Runs anomaly detection — GPU-accelerated WaveGuard engine scores each token against its peer baseline
Multi-check pipeline: peer scan + rug pull + history + CEX/DEX spread + concentration risk
Returns verdict: PROCEED / CAUTION / BLOCK with anomaly scores and top contributing features
CryptoGuard's core scanner is powered by WaveGuard, a general-purpose anomaly detection engine that uses GPU-accelerated wave simulations instead of machine learning. Your token's feature vector is encoded onto a 3D lattice and evolved through coupled wave equations. Normal data produces stable wave patterns; anomalous data produces divergent ones.
The advantage over statistical methods: WaveGuard captures non-linear interactions between features that simple threshold checks miss. This is why it flagged FTT 13 days before z-score analysis in backtesting.
No model training, no drift, no retraining. Deterministic for the same input.
Key Features (v0.6.0)
Backtested: 100% recall on 7 historical crashes with 27-day average lead time
Free tier: 5 calls/day per IP, no signup required
2 payment options: x402 USDC per-scan ($0.05) or RapidAPI plans
Deterministic: Same input always produces same verdict
MCP server: 7 tools for AI agent integration (stdio + HTTP)
Python SDK:
pip install CryptoGuardClientwith typed exceptionsPhysics Intelligence: 7 endpoints for trend/regime/volatility/spectral/whale/momentum analysis
Intel endpoints: Premium validate-trade-plus ($0.10) and counterfactual-trade ($0.08)
Contract resolution: Accepts name, ticker, or contract address across 7 chains
Batch validation: Up to 20 trades or 50 tokens per call
Rug pull detection: DexScreener-powered liquidity and holder analysis
30 REST endpoints: Complete crypto risk intelligence API
Pricing
Tier | Cost | Limit | Auth |
Free | $0 | 5 calls/day per IP | None |
Per-scan | $0.05/call | Unlimited | x402 USDC micropayment |
RapidAPI Basic | $0/mo | 500K requests | RapidAPI proxy key |
RapidAPI Pro | $9.99/mo | 10K requests | RapidAPI proxy key |
RapidAPI Ultra | $29.99/mo | 100K requests | RapidAPI proxy key |
Architecture
AI Agent / User
|
v
CryptoGuard API (Modal, stateless)
|-- MCP endpoint (7 tools, JSON-RPC 2.0)
|-- Auth: RapidAPI → API key → x402 (USDC) → Free tier
|-- Token resolution (name/ticker/address → CoinGecko ID, 7 chains)
|-- Market data (CoinGecko + DexScreener, cached)
|-- Physics Intelligence (trend, regime, correlation, volatility, spectral, whale, momentum)
|-- Intel (validate-trade-plus, counterfactual-trade)
+-- WaveGuard anomaly engine (GPU-accelerated)License
MIT
Available Tools
5 toolscryptoguard_healthARead-onlyIdempotent
Check CryptoGuard API health, version, and service status. No payment required. Use this to verify the service is running.
Inputs: verbose.
cryptoguard_rug_checkARead-onlyIdempotent
Assess rug pull risk for a specific DEX trading pair. Scores 6 risk factors (0-100): liquidity depth, pair age, volume/liquidity ratio, price action, buy/sell imbalance, and metadata.
Example: check if a new Solana pair is a potential rug pull.
Inputs: chain (required), pair_address (required).
cryptoguard_scan_tokenARead-onlyIdempotent
Scan a single token for anomalous market behavior using WaveGuard physics-based anomaly detection. Compares the token to TIER-MATCHED peers (microcaps vs microcaps, large-caps vs large-caps). Returns anomaly scores, risk level, and explanations.
Example: scan 'solana' to check if its metrics are unusual.
Inputs: coin_id (required), sensitivity.
cryptoguard_searchARead-onlyIdempotent
Search for a token's CoinGecko coin ID by name, symbol, or contract address. Use this first if you're unsure of the correct coin_id for scan_token or validate_trade.
Example: search 'pepe' to find the correct coin ID.
Inputs: query (required).
cryptoguard_validate_tradeARead-onlyIdempotent
Validate a crypto trade BEFORE execution. Returns a verdict: PROCEED, CAUTION, or BLOCK. Runs 5 checks: peer anomaly scan via WaveGuard physics engine, self-history comparison, rug pull risk assessment, CEX/DEX price cross-check, and concentration risk analysis. Accepts token name, symbol, or contract address.
Example: validate buying $500 of PEPE before executing.
Inputs: token (required), action, chain, pair_address, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no overlap: health check, rug pull risk assessment, token anomaly scanning, token search, and trade validation. The descriptions explicitly differentiate their functions, making it easy for an agent to select the right tool.
All tools follow a consistent 'cryptoguard_' prefix with descriptive suffixes (health, rug_check, scan_token, search, validate_trade). This uniform pattern enhances readability and predictability across the toolset.
With 5 tools, this server is well-scoped for crypto security analysis, covering essential functions from health checks to trade validation. Each tool serves a unique and necessary role without bloat or redundancy.
The toolset provides complete coverage for crypto risk assessment workflows: service verification, token search, risk scanning, rug pull detection, and trade validation. There are no obvious gaps, enabling agents to handle end-to-end security analysis.
Maintenance
Related MCP Connectors
Token rug-risk scans, Know Your Agent wallet checks and deployer reputation for AI agents.
Pre-trade risk gating and verifiable decision evidence for AI trading agents. Oracle-backed price/safety checks across Base, Solana, Hyperliquid and BNB, plus signed receipts and portable evidence bundles for any agent action.
Solana token safety for AI agents — rug-pull, honeypot & Token-2022 trap detection before you buy.
Pre-trade token safety checks for AI agents on Solana and Base. x402 USDC per call, no key.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceSecurity layer for AI agents that evaluates transaction intents and returns verdicts (ALLOW/WARN/DENY) using deterministic rules, on-chain checks, and simulation.MIT
- AlicenseBqualityDmaintenanceEnables AI agents to perform token security audits, honeypot detection, liquidity analysis, and risk scoring to avoid crypto scams.1ISC
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run pre-sign risk checks on transactions, approvals, EIP-712 signatures, token addresses, wallet approvals, sanctions screening, and prompt-injection texts, returning green/orange/red verdicts with machine-readable reason codes before signing.1AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to simulate and inspect Solana transactions before signing, verify that a transaction matches the agent's stated intent, and obtain token safety verdicts. It also resolves token addresses, decimals, fees, balances, blockhashes, and failure explanations from live on-chain data so agents avoid costly mistakes.1MIT