x402-bazaar-mcp

v0.3.0
io.github.sukrutkrdg/x402-bazaar-mcp Checked 2 days ago Published 1 month ago

Check, then act, on Base and NEAR: token-safety gates, then swaps at the best price — over x402.

Values you need

VariableWhat it is
X402_CREDIT_TOKENoptional secret Prepaid credit token (ck_…) from the buy-credits service. Sent as the x-credit-token header; each call debits your balance. No wallet or signing needed. Recommended paid mode. Buyable with USDC on Base, or with USDC/USDT/NEAR on NEAR at https://402.com.tr/credits.
AGENT_PRIVATE_KEYoptional secret Hex private key of a Base wallet holding USDC. Used locally to sign x402 payments — never sent anywhere. Use a dedicated low-balance wallet. Optional: without it (and without a credit token) the server runs on the free tier.
X402_BAZAAR_CATALOGoptional Override the catalog URL (default https://402.com.tr/api/catalog).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add x402-bazaar-mcp -- npx -y x402-bazaar-mcp@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "x402-bazaar-mcp": {
      "args": [
        "-y",
        "x402-bazaar-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-bazaar-mcp": {
      "args": [
        "-y",
        "x402-bazaar-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402-bazaar-mcp": {
      "args": [
        "-y",
        "x402-bazaar-mcp@0.3.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402-bazaar-mcp]
command = "npx"
args = ["-y", "x402-bazaar-mcp@0.3.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: list_x402_services, call_x402_service.
  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