# minia2a-x402 [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/minia2auk/minia2a-x402  
**GitHub Stars:** 1  
**npm Downloads (last month):** 946  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/minia2a-x402

## Description
x402 directory for AI agents: 1,700 pay-per-call APIs, USDC on Base, 5 free trials per wallet.

## Tools
Capabilities this server exposes over MCP:

- **minia2a_list_services** — List available x402 services on minia2a.uk — the micropayment marketplace for AI agents. Returns service name, description, price, and endpoint for each service. Use this to discover what capabilities are available before calling them.
- **minia2a_get_service** — Get detailed information about a specific x402 service on minia2a.uk, including its price, endpoint URL, input schema, and usage instructions. Use this before calling a service to understand what it needs.
- **minia2a_get_stats** — Get current platform statistics for minia2a.uk — total services, registered agents, transaction volume, uptime, and more. Useful for understanding the marketplace's scale and health.
- **minia2a_register** — Register a self-custody wallet on minia2a.uk to publish your own services (EIP-191 signature). Registration is for publishing — it is NOT required for trials: any wallet signed in minia2a_call_service already gets 5 free trial calls. If you don't provide a wallet+signature, this tool generates a fresh wallet, signs 'minia2a register: <your-wallet>' with EIP-191, registers it, and returns the private key — store it, the platform never holds it.
- **minia2a_call_service** — Call an x402 service on minia2a.uk. Three access paths: (1) omit everything for the paid 402 path (sign a wallet for 5 free trial calls — no registration); (2) pass privateKey (or set MINIA2A_PRIVATE_KEY) for your wallet's own 5 trials — the key never leaves this process, it only signs the per-call trial message; (3) when both are exhausted the endpoint returns HTTP 402 with a machine-readable accepts[] array — pay in USDC and retry with a PAYMENT-SIGNATURE header (x402 V2). Set autoPay:true together with privateKey to have a 402 paid automatically in USDC on Base and the call retried — the wallet must hold USDC or the call still returns payment_required (never charges silently). Note that wallet= on its own does NOT reach the wallet bucket; the signature is what does. Service parameters go INSIDE `params`; a top-level key that is not one of the five declared names is rejected by name rather than dropped.
- **minia2a_check_endpoint** — Validate any x402 endpoint for autonomous-agent (Claude Code auto-mode) readiness. Checks 9 signals: HTTP reachability, JSON content-type, payment challenge (canonical PAYMENT-REQUIRED header or legacy x-402-* headers), payment amount, network, recipient, trial info, registration path, and /api/agent-ready handshake. Returns a score (0-100%) with per-check PASS/FAIL detail. Use this before calling a paid endpoint to verify it works with autonomous agents.

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

```json
"mcpServers": {
  "minia2a-x402": {
    "command": "npx",
    "args": ["-y","minia2a-x402"]
  }
}
```

## Documentation

## What minia2a-x402 does

minia2a-x402 connects MCP-compatible AI clients to minia2a.uk, a marketplace of pay-per-call APIs for agents. The marketplace uses x402 for payment settlement in USDC on Base. Agents can browse the service catalog, inspect a service's price and input requirements, invoke an endpoint, and examine platform statistics.

The package is an alias rather than an independent implementation. Running `npx minia2a-x402` starts the canonical `minia2a-mcp` package with the same tools and behavior. The alias exists so the service can use its own npm and MCP registry name without renaming the canonical package.

## How it works

The server communicates with MCP clients over standard input and output. A typical client launches it with `npx`, which downloads or runs the package without requiring a separate local server process.

Service calls support three payment paths:

- A signed wallet receives five free trial calls without registration or an account.
- A private key can be supplied for trial calls; it is used locally to sign the per-call trial message.
- After trials are exhausted, the endpoint can return an HTTP 402 response containing payment instructions. With `autoPay: true` and a private key, the server can pay in USDC on Base and retry the request.

Automatic payment requires the wallet to hold enough USDC. If it cannot pay, the call returns a payment-required result rather than charging silently. A wallet address alone does not select the wallet-based trial path; the required signature does that.

## Setup and configuration

Add the server to an MCP client using a stdio configuration such as:

```json
{
  "mcpServers": {
    "minia2a": {
      "command": "npx",
      "args": ["-y", "minia2a-x402"]
    }
  }
}
```

The optional `MINIA2A_PRIVATE_KEY` environment variable supplies the wallet key used for trial signing or automatic x402 payment. The key remains in the running process and is not sent to the marketplace. A registration call can also generate a new wallet, sign the registration message, and return the private key; that key must be stored by the caller because the platform does not retain it.

## Tools and capabilities

- `minia2a_list_services` searches or filters the marketplace catalog and returns service names, descriptions, prices, and endpoints.
- `minia2a_get_service` provides one service's endpoint, price, input schema, and usage details.
- `minia2a_call_service` sends service parameters and manages trial, 402, and optional automatic-payment flows. Parameters belong inside `params`; undeclared top-level fields are rejected.
- `minia2a_register` registers a self-custody wallet for publishing services. Registration is not needed for trial calls.
- `minia2a_check_endpoint` tests an x402 endpoint across nine agent-readiness signals, including reachability, JSON responses, payment headers, payment details, trial information, registration, and the `/api/agent-ready` handshake. It returns an overall score with individual pass or fail results.
- `minia2a_get_stats` reports live marketplace figures such as service count, registered agents, transaction volume, and uptime.

## Limitations and notes

Paid calls depend on the target endpoint's x402 implementation and, for automatic payment, a wallet funded with USDC on Base. The package itself is a naming alias; `minia2a-mcp` is the canonical package and provides the underlying implementation. Trial access is tied to a signed wallet and is limited to five calls per wallet.

The package is licensed under MIT.

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

