gpartin/CryptoGuardClient

💰 Finance & Fintech
0 Views
0 Installs

🐍 ☁️ - Per-transaction deterministic crypto validator for AI trading agents. Validate trades (PROCEED/CAUTION/BLOCK), scan tokens, detect rug pulls — powered by WaveGuard physics engine. 5 free calls/day, x402 USDC payments. pip install CryptoGuardClient

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "gpartin-cryptoguardclient": {
      "command": "npx",
      "args": [
        "-y",
        "gpartin-cryptoguardclient"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

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.

MethodRecallAvg Lead TimeFalse Positive Rate
CryptoGuard (WaveGuard engine)100% (7/7)27.4 days6.1%
Z-score baseline100% (7/7)28.4 days29.9%
Rolling volatility86% (6/7)15.5 days4.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%.


Install

pip install CryptoGuardClient

Quick 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

ToolDescription
cryptoguard_validate_tradeValidate a trade → PROCEED / CAUTION / BLOCK
cryptoguard_scan_tokenAnomaly scan for any token
cryptoguard_validate_trade_plusPremium stateless decision bundle with what-if analysis
cryptoguard_counterfactual_tradeWhat-if sensitivity analysis with tipping-point guidance
cryptoguard_rug_checkDEX pair rug pull risk assessment
cryptoguard_searchSearch tokens by name/symbol/address
cryptoguard_healthService health check

All Endpoints

MethodEndpointPriceDescription
POST/v1/validate-trade5 free/day, then $0.05Primary — single verdict for AI agents
POST/v1/validate-trades5 free/day, then $0.05Batch validate up to 20 trades
GET/v1/scan/{coin_id}5 free/day, then $0.05Single token anomaly scan
POST/v1/portfolio/scan5 free/day, then $0.05Portfolio batch scan (up to 50 tokens)
GET/v1/scan/{coin_id}/history5 free/day, then $0.05Historical self-comparison
GET/v1/rug-check/{chain}/{pair_address}5 free/day, then $0.05Rug pull risk assessment
GET/v1/dex/new-pairs5 free/day, then $0.05New DEX pair discovery
GET/v1/dex/search5 free/day, then $0.05DexScreener pair search
GET/v1/dex/pair/{chain}/{pair_address}5 free/day, then $0.05DEX pair details
GET/v1/dex/token/{token_address}5 free/day, then $0.05DEX token info
POST/v1/intel/validate-trade-plus$0.10/callPremium stateless decision bundle
POST/v1/intel/counterfactual-trade$0.08/callWhat-if sensitivity analysis
GET/v1/track-recordFreeHistorical prediction track record
POST/v1/trend-detect5 free/day, then $0.05Physics-based trend detection
POST/v1/regime-detect5 free/day, then $0.05Regime change detection
POST/v1/correlation-scan5 free/day, then $0.05Anomalous correlation detection
POST/v1/volatility-forecast5 free/day, then $0.05Physics-based volatility forecast
POST/v1/spectral-scan5 free/day, then $0.05Hidden periodicity detection
POST/v1/whale-detector5 free/day, then $0.05Whale activity detection
POST/v1/momentum-pulse5 free/day, then $0.05Momentum pulse detection
GET/v1/search?q=...FreeSearch tokens by name
GET/v1/free-tierFreeCheck remaining free calls
GET/v1/pricingFreePricing details
GET/v1/statsFreeService statistics
GET/healthFreeHealth check
POST/mcpFreeMCP endpoint (JSON-RPC 2.0)
GET/mcp/toolsFreeList MCP tools
GET/v1/agent/toolsFreeAgent tool catalog
GET/v1/agent/mcpFreeMCP server metadata

How It Works

  1. Resolves token input — CoinGecko ID, ticker symbol, or contract address (7 chains)
  2. Fetches live market data from CoinGecko + DexScreener
  3. Builds baseline from tier-matched peers (microcaps vs microcaps, large caps vs large caps)
  4. Extracts 10 time-series features per day (price ratios, volume dynamics, momentum, volatility)
  5. Runs anomaly detection — GPU-accelerated WaveGuard engine scores each token against its peer baseline
  6. Multi-check pipeline: peer scan + rug pull + history + CEX/DEX spread + concentration risk
  7. Returns verdict: PROCEED / CAUTION / BLOCK with anomaly scores and top contributing features
About the detection engine

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 CryptoGuardClient with typed exceptions
  • Physics 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

TierCostLimitAuth
Free$05 calls/day per IPNone
Per-scan$0.05/callUnlimitedx402 USDC micropayment
RapidAPI Basic$0/mo500K requestsRapidAPI proxy key
RapidAPI Pro$9.99/mo10K requestsRapidAPI proxy key
RapidAPI Ultra$29.99/mo100K requestsRapidAPI 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

Related MCP Servers

@agentfund/mcp

📇 ☁️ - Fundraising infrastructure for AI agents on Solana — campaigns, x402 donations, and on-chain reputation. MCP tools for registering agents, creating campaigns, and donating via the x402 pay-to-call flow, backed by Anchor programs (agentregistry, escrow, reputation). npx -y @agentfund/mcp

💰 Finance & Fintech1 views
@asterpay/mcp-server

📇 ☁️ - EUR settlement for AI agents via x402 protocol. Market data, AI tools, crypto analytics — pay-per-call in USDC on Base. SEPA Instant EUR off-ramp.

💰 Finance & Fintech1 views
@czagents/cnb

📇 ☁️ 🏠 🍎 🪟 🐧 - Czech National Bank (ČNB) daily FX rates: fetch official CZK exchange rates, convert between currencies, fetch historical rates. Cached 10 min to ease upstream load. npm @czagents/cnb or HTTP at cnb.cz-agents.dev/mcp.

💰 Finance & Fintech1 views
@arbitova/mcp-server

📇 ☁️ - Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create escrow, mark delivered with on-chain content hash, confirm or dispute, arbiter resolves with signed verdict, cancel/escalate on timeout. npx @arbitova/mcp-server

💰 Finance & Fintech0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.