x402-trust-mcp

v1.16.0
io.github.JonasFuchss/x402-trust-mcp Checked 3 days ago Published 1 month ago

Discover x402 endpoints and check their trust score before your agent pays them.

Values you need

VariableWhat it is
X402_PRIVATE_KEYoptional 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_USDoptional Per-call auto-pay ceiling in USD. 0 disables auto-pay. Default: 0.05
X402_MAX_TOTAL_USDoptional Cumulative auto-pay cap per process in USD. 0 = unlimited. Default: 1.00
X402_MAX_CALLSoptional Max paid calls per process. 0 = unlimited. Default: 1000
X402_TRUST_API_BASEoptional API base URL. Default: https://x402-trust.com
X402_TIMEOUT_MSoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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