x402-trust-mcp
v1.16.0Discover x402 endpoints and check their trust score before your agent pays them.
Values you need
| Variable | What it is | |
|---|---|---|
X402_PRIVATE_KEY | optional secret | Optional Base wallet private key (with or without the 0x prefix). When set, the paid tools auto-pay over x402 up to X402_MAX_USD; otherwise they return a price quote. The free tools need no key. |
X402_MAX_USD | optional | Per-call auto-pay ceiling in USD. 0 disables auto-pay. Default: 0.05 |
X402_MAX_TOTAL_USD | optional | Cumulative auto-pay cap per process in USD. 0 = unlimited. Default: 1.00 |
X402_MAX_CALLS | optional | Max paid calls per process. 0 = unlimited. Default: 1000 |
X402_TRUST_API_BASE | optional | API base URL. Default: https://x402-trust.com |
X402_TIMEOUT_MS | optional | Request timeout in milliseconds. Default: 20000 |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add x402-trust-mcp -- npx -y x402-trust-mcp@1.16.0Add to
claude_desktop_config.json{
"mcpServers": {
"x402-trust-mcp": {
"args": [
"-y",
"x402-trust-mcp@1.16.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"x402-trust-mcp": {
"args": [
"-y",
"x402-trust-mcp@1.16.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"x402-trust-mcp": {
"args": [
"-y",
"x402-trust-mcp@1.16.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.x402-trust-mcp]
command = "npx"
args = ["-y", "x402-trust-mcp@1.16.0"]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: x402_ecosystem_stats, x402_trust_leaderboard, x402_verified_providers, x402_search, x402_trust_preview, x402_trust_score, x402_endpoint_history, x402_find_alternatives, ….
- 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