Skip to main content
Glama

minia2a-mcp

MCP server for minia2a.uk — the x402 micropayment marketplace for AI agents.

🚀 Claude Code auto-mode ready. Let your AI agent discover, call, and pay for services using the x402 protocol with built-in USDC micropayments. 5 free trial calls per signed wallet (self-custody wallet + EIP-191 signature, no registration) — no API keys, no subscriptions, pay-per-call. .agent-budget v1.1 support for safe autonomous spending.

Installation

npm install -g minia2a-mcp

Related MCP server: minia2a-mcp

Usage

Claude Code

Add to your Claude Code MCP config (~/.claude/.mcp.json):

{
  "mcpServers": {
    "minia2a": {
      "command": "npx",
      "args": ["-y", "minia2a-mcp"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "minia2a": {
      "command": "npx",
      "args": ["-y", "minia2a-mcp"]
    }
  }
}

Tools (6)

minia2a_list_services

Browse available x402 services. Filter by category or search term.

minia2a_get_service

Get detailed info about a specific service — price, endpoint, schema, docs.

minia2a_get_stats

Platform statistics — total services, agents, transaction volume, uptime.

minia2a_register

Register a self-custody wallet 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 supply a wallet, one is generated for you and the private key returned.

minia2a_call_service

Call any x402 service. Two access paths, in the order the gateway tries them:

  1. Wallet trials — pass privateKey (or set MINIA2A_PRIVATE_KEY) for your wallet's 5 free trial calls (no registration needed). The key stays in this process; it only signs the per-call message minia2a trial:<wallet>:<serviceId>:<unixSeconds>, and just the signature goes over the wire. wallet= on its own reaches nothing — the signature is what does.

  2. Payment — when the wallet's trials are spent the tool returns the 402 accepts[] array to settle.

The response reports trialMode (wallet / ip) and trialRemaining straight from the gateway's headers, so you can see which path actually paid for the call rather than inferring it.

minia2a_check_endpoint ← NEW in v1.1.3

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 scored report with per-check PASS/FAIL detail and the credit each check earned.

What is minia2a?

minia2a.uk is a marketplace where AI agents buy and sell services from each other. Built on the x402 protocol (HTTP 402 Payment Required), every API call includes automatic USDC micropayment — no subscriptions, no API keys, no monthly bills.

  • x402 services across crypto, web, AI, data and more — the current catalog size is the count field of https://minia2a.uk/api/services

  • USDC settlement on Base (eip155:8453) — every endpoint's 402 accepts[] states network, asset and payTo before you pay

  • 5 free trial calls per signed wallet (self-custody wallet + EIP-191 signature, no registration)

  • Claude Code auto-mode ready — .agent-budget v1.1 support, machine-readable 402 body

Claude Code Auto Mode

Claude Code auto mode is the default. Agents can now autonomously discover, trial, and pay for APIs — with hard budget caps, classifier safety checks, and machine-readable payment headers.

minia2a is auto-mode ready:

  • /api/agent-ready — machine-readable handshake with payment info, registration endpoint, and quickstart

  • 402 body: accepts[] array (amount/asset/network/payTo/scheme) — agent parses full payment instruction (x402 V2)

  • .agent-budget v1.1 — 7-field autonomous-purchasing controls (per-call / per-task / confirmation / dedupe / settlement / audit)

  • 5 free trial calls per signed wallet (no registration) — spend them across the catalog. Not every endpoint is trial-eligible: premium / contract-audit / ai / deepseek and ≥$2 services may be pay-only. The endpoint's own 402 is the gate, not the category.

{
  "version": "1.1",
  "daily_limit_usdc": 5,
  "max_per_call_usdc": 1,
  "per_task_limit_usdc": 3,
  "confirmation_threshold_usdc": 0.5,
  "idempotency_key": "required",
  "verify_settlement": true,
  "audit_trail": true
}

Quickstart guide →

What is x402?

x402 is an open protocol that extends HTTP 402 Payment Required for machine-to-machine micropayments. Services declare their price in HTTP response headers, and clients pay in USDC on Base. No intermediaries, no settlement delays. x402 Foundation launched July 2026 under the Linux Foundation with 40+ founding members including Visa, Mastercard, Stripe, and Cloudflare.

Learn more at x402.org.

Ecosystem

minia2a offers multiple integration paths depending on your stack:

Package

Use Case

Install

minia2a-mcp (this)

MCP server for Claude, Cursor, Codex

npm i -g minia2a-mcp

@minia2a/sdk

CLI for @x402/express developers

npm i -g @minia2a/sdk

@minia2a/elizaos-plugin-minia2a

ElizaOS agent plugin

npm i @minia2a/elizaos-plugin-minia2a

minia2a

General-purpose SDK

npm i minia2a

License

MIT

Available Tools

6 tools
minia2a_call_serviceA
Destructive
Inspect

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.

Inputs: serviceId (required), params, wallet, autoPay, +1 more.

minia2a_check_endpointA
Read-only
Inspect

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.

Inputs: endpointUrl (required).

minia2a_get_serviceA
Read-only
Inspect

Get detailed information about a specific x402 service on minia2a.uk: price, endpoint URL, what parameters it takes (read from the service's own 402 example — one unpaid GET, nothing charged), and usage instructions. Use this before calling a service to understand what it needs.

Inputs: serviceId (required).

minia2a_get_statsA
Read-only
Inspect

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.

Inputs: no named parameters.

minia2a_list_servicesA
Read-only
Inspect

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.

Inputs: limit, search, category.

minia2a_registerA
Destructive
Inspect

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: ' with EIP-191, registers it, and returns the private key — store it, the platform never holds it.

Inputs: name (required), wallet, signature.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool maps to a distinct action: list, get, call, register, check, stats. The only real overlap is between get_service (reads a service's 402 example to explain its parameters) and check_endpoint (scores an endpoint for agent-readiness), but the descriptions make the informational-vs-validation split reasonably clear.

    Naming Consistency4/5

    All tools share the minia2a_ prefix and follow verb_noun (list_services, get_service, call_service, check_endpoint, get_stats). The lone exception is minia2a_register, which omits a noun (e.g. register_wallet), a minor deviation in an otherwise predictable scheme.

    Tool Count5/5

    Six tools is well within the sweet spot and each one covers a distinct step: discover, inspect, call/pay, validate, register, and observe platform stats. Nothing feels padded or redundant.

    Completeness3/5

    The discover→inspect→call→validate workflow is complete, and payment paths (trials, USDC auto-pay) are covered. However, register explicitly exists 'to publish your own services' yet there is no publish/create/update/delete service tool, leaving that lifecycle a dead end, and no explicit trial-quota or balance check.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      AI Agent Hub is a pay-per-call API platform for AI agents Every call is billed automatically in USDC using the x402 protocol - there is no API key, no account, and no signup. Agents get instant access to data queries, file storage, and ad impressions, paying only for what they actually use. The same tools are also exposed natively over MCP, so any MCP-capable agent can discover and call them
      -
    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for the x402 micropayment marketplace minia2a.uk, enabling AI agents to discover, call, and pay for 1,700+ services using USDC micropayments with no API keys or subscriptions. Supports registration, credits, service browsing, and autonomous calling with Claude Code auto-mode.
      1
      MIT