x402-bazaar-mcp
v0.3.0Check, then act, on Base and NEAR: token-safety gates, then swaps at the best price — over x402.
Values you need
| Variable | What it is | |
|---|---|---|
X402_CREDIT_TOKEN | optional 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_KEY | optional 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_CATALOG | optional | 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.0Add 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
- 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: list_x402_services, call_x402_service.
- 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