Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"x402-bazaar": {
"env": {
"AGENT_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
},
"args": [
"-y",
"x402-bazaar-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP (Model Context Protocol) server that exposes every paid API in the x402 Bazaar catalog as a callable tool for AI agents (Claude Desktop, Cursor, custom agents, etc.).
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'x402-bazaar-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked x402-bazaar-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
MCP server for QuickBooks Online — accounts, customers, invoices, bills, and reports.
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP server for Pagar.me — orders, charges, recipients, transfers
Swiss accounting integration for Bexio. 310 tools for invoices, contacts, projects.
MCP Security Weekly
Get CVE alerts and security updates for io.github.sukrutkrdg/x402-bazaar-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP (Model Context Protocol) server that exposes every paid API in the x402 Bazaar catalog as a callable tool for AI agents (Claude Desktop, Cursor, custom agents, etc.).
Each tool call is backed by an x402 micro-payment in USDC on Base — no API keys, no subscriptions, no sign-up. The agent pays only for what it uses, typically fractions of a cent per call.
https://402.com.tr/api/catalog and auto-registers one MCP tool per
service.HTTP 402 → pay USDC on Base → retry → return response.First few calls per day per service may be served on the free tier at no cost; subsequent calls trigger micro-payments automatically.
# Install dependencies
npm install
# Run (set your private key in the environment)
AGENT_PRIVATE_KEY=0xYOUR_PRIVATE_KEY npx x402-bazaar-mcp
Or with npm start after cloning:
AGENT_PRIVATE_KEY=0xYOUR_PRIVATE_KEY npm start
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_PRIVATE_KEY | yes | — | Hex private key for a Base wallet holding USDC. 0x prefix is optional. |
X402_BAZAAR_CATALOG | no | https://402.com.tr/api/catalog | Override the catalog URL (useful for local dev). |
Add the following to your claude_desktop_config.json
(usually ~/Library/Application Support/Claude/claude_desktop_config.json on
macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"x402-bazaar": {
"command": "npx",
"args": ["-y", "x402-bazaar-mcp"],
"env": {
"AGENT_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}
After saving, restart Claude Desktop. You should see the Bazaar tools appear in the tool list (hammer icon).
Any MCP-compatible client that supports stdio servers works the same way — just
point it at npx x402-bazaar-mcp with AGENT_PRIVATE_KEY in the environment.
Agents need fresh on-chain data and AI utilities but don't want to manage RPC endpoints, scrapers, security heuristics, or per-provider API keys. One MCP server plus a funded wallet gives them everything — contract safety checks, live DEX prices, gas estimates, transaction decoding, and Claude-powered text utilities — all pay-per-use, with no subscriptions or sign-up required.
Tools are loaded live from the catalog, so the list stays current. At the time of writing it includes:
| Tool | Price | What it does |
|---|---|---|
token_risk | $0.02 | Token safety score (honeypot, taxes, ownership, holders) for any Base token |
sanctions | $0.01 | Screen an address against the OFAC sanctions list |
holders | $0.01 | Top holders, concentration (whale risk) & LP lock for a token |
token_price | $0.01 | DEX price + liquidity for a Base token |
multi_price | $0.01 | Prices for up to 10 Base tokens in one call |
address_intel | $0.01 | EOA/contract, ETH+USDC balance, activity for any address |
wallet_tokens | $0.01 | Portfolio of major Base tokens + USD value |
gas_oracle | $0.005 | Live Base gas estimates (slow/normal/fast) |
tx_decode | $0.01 | Structural decode of a Base transaction |
contract_abi | $0.01 | Is a contract verified? Get its ABI (Sourcify) |
decode_selector | $0.005 | Resolve a 4-byte selector to function signatures |
basename | $0.005 | Resolve Basena |