Repository avatar
AI Tools
v1.0.0
active

agentguard-x402-mcp

io.github.bfedorg/agentguard-x402-mcp

Pre-trade honeypot, rug-pull, and tax scanner for Base and Solana DeFi AI trading agents via x402.

Documentation

AgentGuard — DeFi & Wallet Security Suite (MCP + x402)

Autonomous pre-trade token security, honeypot scanner, counterparty KYW wallet intelligence, and DEX allowance firewall for AI trading agents on Base and Solana — monetized natively via the x402 HTTP 402 USDC protocol.

No API keys, no SaaS accounts, no KYC friction. Agents call quick_token_ping or quick_wallet_ping for free to test connectivity and upgrade seamlessly to paid security audits via x402 (Base EIP-3009 or Solana SPL USDC).

Why Trading Agents Use AgentGuard

  • Module 1 — DeFi Guard (Base & Solana): On-chain bytecode selector analysis (mint, blacklist, pause, setFee), EIP-1967/EIP-1167 proxy detection, ownership renouncement check, honeypot/tax simulation, AMM price impact, mint/freeze authority inspection, holder concentration, and maxSafeTradeUsd sizing.
  • Module 2 — WalletGuard (Base & Solana): Counterparty & whale wallet profiling (SHRIMP..WHALE tiering), ETH/SOL & USDC balance verification, GoPlus sanctions/phishing/drainer checks, plus unlimited ERC-20 DEX allowance scanning (Uniswap Permit2, Universal Router, Aerodrome, 1inch, 0x, SPL delegates).
  • Dual Transport:
    • Streamable HTTP MCP: POST /mcp (for autonomous agents, LangGraph, ElizaOS, AgentKit).
    • Direct x402 REST: /v1/defi-guard/* and /v1/wallet-guard/* (OpenAPI 3.1.0 at /openapi.json).
    • Local npx Stdio Bridge: npx agentguard-x402-mcp (for Cursor & Claude Desktop with optional local EIP-3009 auto-signing).

Pricing (x402 v2)

Tool / EndpointPricePurpose
quick_token_ping (GET /v1/defi-guard/ping)Free (5/day per IP)Token metadata, DEX liquidity USD, price & OK/CAUTION/DANGER pre-check
deep_pretrade_audit (POST /v1/defi-guard/audit)$0.015 USDCFull contract/authority audit, honeypot/tax check, holder concentration & maxSafeTradeUsd
batch_pool_scan (POST /v1/defi-guard/batch-scan)$0.050 USDCParallel audit of up to 10 Base/Solana tokens in one atomic x402 call
quick_wallet_ping (GET /v1/wallet-guard/ping)Free (5/day per IP)Wallet ETH/SOL & USDC balances, portfolio USD & whale tier pre-check
counterparty_wallet_profile (POST /v1/wallet-guard/profile)$0.010 USDCCounterparty KYW intelligence, GoPlus sanctions/phishing checks & risk verdict
wallet_approvals_audit (POST /v1/wallet-guard/approvals-audit)$0.020 USDCFull counterparty profile + unlimited DEX allowance & SPL delegate audit

Quick Start for Cursor / Claude Desktop

{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": ["-y", "agentguard-x402-mcp"],
      "env": {
        "AGENTGUARD_URL": "https://agentguard-x402-mcp.onrender.com",
        "X402_CLIENT_PRIVATE_KEY": "0x_optional_key_with_small_base_usdc_balance",
        "X402_MAX_USDC_PER_CALL": "0.05"
      }
    }
  }
}

Discovery Manifest

  • GET /.well-known/x402 — x402 v2 resource pricing & self-hosted facilitator metadata
  • GET /health — Service health & supported networks

License

MIT

No installation packages available.