New advertisers: 50% off your first month with code FIRSTMONTHSee slots
teddytigers avatar

cbp-guard

teddytigers/cbp-guard

Pre-payment scam and lookalike screening for x402 payTo addresses at $0.01 per check.

tools
3
auth
Secret needed
transport
STDIO
env vars
3
last updated
Nov 22, 2026
View on GitHub

What it does

  • Exposes wallet_check to screen a payTo for scam or address-poisoning lookalikes, plus gate for skills, MCP servers, or content and peer_challenge for certificate score and tier checks
  • Runs as a pre-sign hook on the official x402 v2 client, refusing caution or unusable answers by default, with an optional stdio MCP server
  • Requires a funded wallet key (CBP_GUARD_PRIVATE_KEY) because each check is paid in USDC on Base, capped at $2.50 per UTC day by default
  • Designed for agents that make x402 payments and want a risk check on the recipient before signing

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

wallet_checkChecks a wallet address for scam or lookalike risk before a payment is made.

Checks a wallet address for scam or lookalike risk before a payment is made.

No parameter schema in public metadata yet.

gateGates a skill, skills, MCP server or content before use.

Gates a skill, skills, MCP server or content before use.

No parameter schema in public metadata yet.

peer_challengeChallenges a peer's certificate against a minimum score or required tier.

Challenges a peer's certificate against a minimum score or required tier.

No parameter schema in public metadata yet.

Configuration

CBP_GUARD_PRIVATE_KEY*secret

Private key (0x + 64 hex) of YOUR wallet that pays for each check via x402 (USDC on Base). Use a low-balance wallet.

CBP_GUARD_BASE_URL

CertBeforePay base URL (default https://certbeforepay.com). Must be https.

CBP_GUARD_DAILY_BUDGET_USD

Spend cap per UTC day for this server process in USD (default 2.50; Infinity for no cap).

Readme

cbp-guard

cbp-guard checks the wallet your AI agent is about to pay, before it signs, and stops payments to known scam or lookalike wallets. Each wallet check is $0.01 in USDC on Base via x402.

npm install cbp-guard        # library: the pre-sign hook
npx cbp-guard mcp            # stdio MCP server (needs CBP_GUARD_PRIVATE_KEY)

It has two parts:

  • A pre-sign hook for the official x402 v2 client (@x402/core, used by @x402/fetch and @x402/axios). It runs in onBeforePaymentCreation: before your agent signs a 402 payment, it asks CertBeforePay POST /v1/wallet/check about the payTo.
  • A stdio MCP server (npx cbp-guard mcp) with the tools wallet_check, gate and peer_challenge.

What the guard does


View the full README on GitHub

Details

Repository
github.com/teddytigers/cbp-guard
Website
certbeforepay.com
Categories
Security, Web3 & Crypto, Finance & Trading
Package
cbp-guard
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Similar to cbp-guard

More Security