cbp-guard
v0.1.3Check an x402 payTo for scam/phishing and address-poisoning lookalikes before paying.
Values you need
| Variable | What it is | |
|---|---|---|
CBP_GUARD_PRIVATE_KEY | required 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 | optional | CertBeforePay base URL (default https://certbeforepay.com). Must be https. |
CBP_GUARD_DAILY_BUDGET_USD | optional | Spend cap per UTC day for this server process in USD (default 2.50; Infinity for no cap). |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add certbeforepay -e 'CBP_GUARD_PRIVATE_KEY=<CBP_GUARD_PRIVATE_KEY>' -- npx -y cbp-guard@0.1.3 mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"certbeforepay": {
"args": [
"-y",
"cbp-guard@0.1.3",
"mcp"
],
"command": "npx",
"env": {
"CBP_GUARD_PRIVATE_KEY": "<CBP_GUARD_PRIVATE_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"certbeforepay": {
"args": [
"-y",
"cbp-guard@0.1.3",
"mcp"
],
"command": "npx",
"env": {
"CBP_GUARD_PRIVATE_KEY": "<CBP_GUARD_PRIVATE_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "CBP_GUARD_PRIVATE_KEY",
"id": "cbp-guard-private-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"certbeforepay": {
"args": [
"-y",
"cbp-guard@0.1.3",
"mcp"
],
"command": "npx",
"env": {
"CBP_GUARD_PRIVATE_KEY": "${input:cbp-guard-private-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.certbeforepay]
command = "npx"
args = ["-y", "cbp-guard@0.1.3", "mcp"]
env = { "CBP_GUARD_PRIVATE_KEY" = "<CBP_GUARD_PRIVATE_KEY>" }For AI agents
- Ask the user for: CBP_GUARD_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: wallet_check, gate, peer_challenge.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json