# sukrutkrdg/x402-bazaar-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/sukrutkrdg/x402-bazaar-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 618  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sukrutkrdg-x402-bazaar-mcp

## Description
The Base token-safety toolkit for agents: the only B20 (Base-native token) freeze/seize/rug suite, plus pre-trade GO/HOLD/STOP gates, honeypot/sellability, wallet + approval audits, sign-guard, prices and Claude-written AI reports. 90+ pay-per-call tools over x402 (USDC on Base), free tier, no API keys. npx x402-bazaar-mcp

## Tools
Capabilities this server exposes over MCP:

- **list_x402_services** — List every service in the x402 Bazaar catalog (id, name, price, category, tagline). Call this first to discover what is available, then call a service by its own tool or via call_x402_service. Free, no payment.
- **call_x402_service** — Call any x402 Bazaar service by id with its parameters. Pays via the configured mode (free daily call / prepaid credit token / wallet). Use list_x402_services to see ids and inputs. Example: service="token-risk", params={ "address": "0x…" }.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "x402-bazaar-mcp": {
    "command": "npx",
    "args": ["-y","x402-bazaar-mcp"],
    "env": {
      "X402_CREDIT_TOKEN": "",
      "AGENT_PRIVATE_KEY": "",
      "X402_BAZAAR_CATALOG": ""
    }
  }
}
```

**Requires environment variables:** `X402_CREDIT_TOKEN`, `AGENT_PRIVATE_KEY`, `X402_BAZAAR_CATALOG` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What sukrutkrdg/x402-bazaar-mcp MCP server does

sukrutkrdg/x402-bazaar-mcp MCP server gives AI agents access to services in the x402 Bazaar through the Model Context Protocol. Its main use case is Base token safety before an agent trades, signs a transaction, or interacts with a token contract. The catalog includes checks for Base-native B20 tokens, including freeze and seizure authority, policy changes, mint headroom, and rebase history.

The available services also include pre-trade decision gates, honeypot and sellability checks, wallet and token-approval audits, transaction sign protection, prices, gas information, transaction decoding, deployer reputation, exit liquidity, and Claude-generated reports. The exact tool set is not fixed in the package documentation: it is discovered from the live catalog when the process starts.

Two tools are specifically recommended as starting points: `pre_trade_gate` for general token checks and `b20_gate` for Base-native B20 assets. Use `sign_guard` before an agent signs a transaction.

## How it works

At startup, the process requests the service list from `https://402.com.tr/api/catalog` and creates one MCP tool for each catalog entry. When the agent invokes a tool, the server forwards the request to the corresponding service and returns its response.

Payment selection follows a defined order. If `X402_CREDIT_TOKEN` is present, the server sends it as an `x-credit-token` header and deducts the call cost from the prepaid balance. Otherwise, `AGENT_PRIVATE_KEY` enables local signing of an x402 USDC payment on Base when a service requires payment. With neither setting, services that offer a free tier provide one full call per day, followed by a preview; some AI and metered services are paid from the first call.

Wallet payments use the x402 sequence of receiving an HTTP 402 response, paying in USDC on Base, and retrying the request. The facilitator pays gas. Buying prepaid credits requires one initial x402 settlement and returns a `ck_` token, allowing later calls without keeping a private key in the server configuration.

## Setup and configuration

Node.js 20 or newer is required. Run the local stdio server with `npx x402-bazaar-mcp`. No environment variables are needed to try eligible free-tier services. For paid use, set either a prepaid token or a Base wallet private key. Credits take precedence when both are configured.

Supported variables are:

- `X402_CREDIT_TOKEN`: prepaid `ck_` credit token used for per-call deductions.
- `AGENT_PRIVATE_KEY`: private key for a Base wallet holding USDC; used when no credit token is set.
- `X402_BAZAAR_CATALOG`: optional replacement for the default catalog URL, intended for local development.

The package can be configured in Claude Desktop, Cursor, Cline, Windsurf, and VS Code by running it with `npx`. The hosted alternative is a Streamable HTTP endpoint at `https://402.com.tr/mcp`; the hosted service does not hold a wallet server-side. Coinbase AgentKit and other MCP-capable runtimes can also load the standard stdio process.

## Tools and capabilities

The tool inventory is generated from the catalog rather than hard-coded in the README. This means newly added catalog services can appear without changing the local launch command. Relevant token-analysis categories include B20 administration and supply behavior, trading safety, wallet exposure, approvals, transaction signing, market data, and AI reports.

Payment is tied to individual service calls, while the free mode supports initial evaluation of eligible services.

## Limitations and notes

The server depends on the live catalog and the remote x402 Bazaar endpoints, so the available tools may change over time. Not every catalog service has a free tier; AI and metered services can require payment immediately. Paid wallet mode requires a Base wallet with USDC and exposes the configured private key to the local process for signing. A prepaid credit token avoids per-call signing but still requires an initial purchase.

The package does not itself describe a fixed list of all tools or prices. Consult the server card and catalog for the current inventory and each service's `freeTier` status.

_Full upstream README: https://allmcps.com/mcp/sukrutkrdg-x402-bazaar-mcp/readme_

