io.github.sukrutkrdg/x402-bazaar-mcp

io.github.sukrutkrdg/x402-bazaar-mcp

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "x402-bazaar-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "x402-bazaar-mcp@0.3.0"
      ],
      "env": {
        "X402_CREDIT_TOKEN": "<your X402_CREDIT_TOKEN>",
        "AGENT_PRIVATE_KEY": "<your AGENT_PRIVATE_KEY>"
      }
    }
  }
}
Environment variables
  • X402_CREDIT_TOKENsecretPrepaid 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_KEYsecretHex 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.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.3.0
Registry
active
Published
10/10/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that io.github.sukrutkrdg/x402-bazaar-mcp is listed here — it’s also the link we check for a free listing.

io.github.sukrutkrdg/x402-bazaar-mcp — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-sukrutkrdg-x402-bazaar-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="io.github.sukrutkrdg/x402-bazaar-mcp — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![io.github.sukrutkrdg/x402-bazaar-mcp — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-sukrutkrdg-x402-bazaar-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.