
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
What it does
- Exposes
wallet_checkto screen a payTo for scam or address-poisoning lookalikes, plusgatefor skills, MCP servers, or content andpeer_challengefor 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 toolsPublic 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*secretPrivate 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_URLCertBeforePay base URL (default https://certbeforepay.com). Must be https.
CBP_GUARD_DAILY_BUDGET_USDSpend 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/fetchand@x402/axios). It runs inonBeforePaymentCreation: before your agent signs a 402 payment, it asks CertBeforePayPOST /v1/wallet/checkabout thepayTo. - A stdio MCP server (
npx cbp-guard mcp) with the toolswallet_check,gateandpeer_challenge.
What the guard does
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
fabler-x402-toolsPlugindavepoon/buildwithclaude3.8K starsNine MCP tools for security audits, web scraping, OG rendering, and funding spreads. Default setup is inspect-only and requires no wallet key. Optional x402 aut
Settle WatchMCP serverbenmcalillycreativeIndependent trust scoring for x402 and MPP payable endpoints, showing whether to pay, caution, or avoid.
Base Agent Due-Diligence KitMCP serverbolt-x402Pre-trade safety checks for Base tokens, contracts, wallets, and DeFi protocols, paid per call in USDC.
Safe-Send Check: crypto support triage, sanctions and scam screeningMCP serversafe-send-checkCrypto support tools: wallet sanctions screening, scam-message checks, and pre-transfer address validation.
PayStage x402 Guard — payment safety before the wallet signsMCP serverbase-buzz6 starsJudges x402 payments against a policy before signing, returning pay, review, or do_not_pay verdicts.
Checkout Guard — pre-purchase check for shops, payment links and paid APIsMCP serverdaoudandiaye98-altPre-purchase safety check for shops, payment links, and paid APIs before any money moves.