Check an x402 payTo for scam/phishing and address-poisoning lookalikes before paying. $0.01/check.
MCPpedia last refreshed this data
io.github.teddYTIgers/certbeforepay is an MCP server that check an x402 payTo for scam/phishing and address-poisoning lookalikes before paying. $0.01/check. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 89/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"cbp-guard": {
"env": {
"CBP_GUARD_PRIVATE_KEY": "<your low-balance wallet key>"
},
"args": [
"-y",
"cbp-guard",
"mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Check an x402 payTo for scam/phishing and address-poisoning lookalikes before paying. $0.01/check.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked cbp-guard against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in security
Search-first MCP server for JavaScript reverse engineering: 736 tools across 36 domains.
Publish HTML, Markdown, PDF, or images as instant shareable links with expiry and passwords.
Deterministic security scanning, no model or API key, plus offline-verifiable proof a fix worked.
MCP security scanner. CI-native testing, attack simulation, health scoring, and SARIF.
MCP Security Weekly
Get CVE alerts and security updates for io.github.teddYTIgers/certbeforepay and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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 (tool calls need CBP_GUARD_PRIVATE_KEY)
It has two parts:
@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.npx cbp-guard mcp) with the tools wallet_check, gate and peer_challenge.| CertBeforePay answer | Default | Option |
|---|---|---|
block | refuse; throws cbp-guard: block (<reason>), nothing is signed | none (always refused) |
caution (including address_poisoning_lookalike) | refuse | onCaution: "block" | "allow" | "ask" |
clear | allow the payment | |
no usable answer (CertBeforePay down, timeout, 503 stale/misconfigured list, the check's own payment failed, malformed answer, daily budget reached) | refuse | failMode: "block" | "allow" |
The defaults are fail-closed. Allowing a caution or a missing answer has to be switched on explicitly.
A lookalike is an address that starts and ends like a known address (same first 4 and last 4 hex characters) but is a different address, a common address-poisoning trick. CertBeforePay compares against well-known addresses (such as USDC on Base) and against the addresses you pass as known_recipients (your address book or the payTo you used last time, up to 50). When the guard stops a payment, the error carries the verdict, the reasons and, for a lookalike, the matched address, its label and a note.
The wallet check is a risk signal (scam/phishing lists and lookalikes), not an OFAC or sanctions screen, and not a guarantee. CertBeforePay itself never stops a payment; only this guard does, and only if you install it.
import { x402Client } from "@x402/core/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme, toClientEvmSigner } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
import { withCbpGuard } from "cbp-guard";
const account = privateKeyToAccount(process.env.MY_AGENT_KEY as `0x${string}`);
const client = new x402Client().register("eip155:8453", new ExactEvmScheme(toClientEvmSigner(account)));
const guard = withCbpGuard(client, {
// all optional; these are the defaults unless noted
onCaution: "block", // "block" | "allow" | "ask" (with ask: async (decision) => boolean)
failMode: "block", // "block" | "allow"
knownRecipients: [], // up to 50 0x addresses, or a function returning them
minAmountUsd: 0,
... [View full README on GitHub](https://github.com/teddytigers/cbp-guard#readme)