x402check
v0.3.3Risk-check counterparties before an AI agent pays; pay x402 resources only after a verified allow
Values you need
| Variable | What it is | |
|---|---|---|
X402CHECK_CREDIT_TOKEN | optional secret | Prepaid credit token (x402c_…, from POST https://x402check.xyz/v1/credits): $0.001 a check |
X402CHECK_PAYER_KEY | optional secret | Private key of a dedicated low-balance wallet: pays the x402 resources x402check_pay clears, and per-call checks without credits |
X402CHECK_BUDGET_USD | optional | Spend cap for this server process: the payer's spend (checks and resources), and separately what checks spend from prepaid credits Default: 1.00 |
X402CHECK_PINNED_KEYS | optional | Comma-separated RFC 7638 thumbprints of the attestation keys accepted (default: x402check's own keys, for its own issuer) |
X402CHECK_MAX_PAYMENT_USD | optional | The most a single payment may cost (a check or a resource) Default: 0.05 |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add x402check -- npx -y --package=@x402check/mcp@0.3.3 x402check-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"x402check": {
"args": [
"-y",
"--package=@x402check/mcp@0.3.3",
"x402check-mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"x402check": {
"args": [
"-y",
"--package=@x402check/mcp@0.3.3",
"x402check-mcp"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"x402check": {
"args": [
"-y",
"--package=@x402check/mcp@0.3.3",
"x402check-mcp"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.x402check]
command = "npx"
args = ["-y", "--package=@x402check/mcp@0.3.3", "x402check-mcp"]For AI agents
- 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: x402check_check, x402check_pay, x402check_verify_attestation, x402check_methodology.
- 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