Skip to main content
Glama

x402-buyer-mcp

The universal buyer agent for the x402 economy.

An MCP server that lets Claude Desktop, Cursor, and Claude Code users discover, pay for, and call any x402 endpoint — automatically. Ask Claude a question, and it pays for the answer with USDC.

Discovery powered by Decixa (5,500+ verified x402 endpoints) with local registry fallback.

Install

Claude Desktop / Cursor

Add to your MCP config:

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

Requirements

  • Node.js 18+

  • AgentCash wallet set up and funded with USDC on Base

Related MCP server: signal402-mcp

Tools

Tool

Description

x402_discover

Search for x402 endpoints — queries Decixa's 5,500+ verified APIs with local fallback

x402_call

Call any x402 endpoint with automatic USDC payment via AgentCash

x402_balance

Check your AgentCash wallet balance

x402_research

Multi-endpoint parallel research — calls 3-5 endpoints simultaneously

How It Works

  1. You ask Claude a question ("Is stripe.com secure?")

  2. x402_discover searches Decixa + local registry for matching endpoints

  3. x402_call pays the endpoint in USDC on Base via AgentCash

  4. Data comes back, Claude synthesizes the answer

The local registry includes 8 Alderpost intelligence endpoints backed by premium sources (VirusTotal, People Data Labs, Hunter.io, AbuseIPDB, Qualys SSL Labs, NIH RxNorm, US Census, ESPN, The Odds API). Decixa extends discovery to the full x402 ecosystem.

Discovery Architecture

Primary: Decixa /api/agent/resolve — semantic search across 5,500+ verified x402 endpoints, ranked by latency, price, trust score, and capability match.

Fallback: Local registry of 8 curated Alderpost endpoints with full metadata. Used automatically if Decixa is unreachable.

This "soft swap" pattern means discovery always works, even if the network is down.

Local Registry Endpoints

Endpoint

Price

Premium Sources

Domain Shield

$0.12

VirusTotal (70+ engines)

Company X-Ray

$0.15

People Data Labs, Hunter.io

Threat Pulse

$0.10

VirusTotal, AbuseIPDB

Compliance Check

$0.15

Qualys SSL Labs

Prospect IQ

$0.12

People Data Labs, Hunter.io

Sports Edge

$0.12

ESPN, The Odds API, Claude AI

Property Intel

$0.10

US Census, OpenWeather

Health Signal

$0.10

NIH RxNorm, FDA

Changelog

v2.0.0

  • Decixa integration — discovery now queries Decixa's /api/agent/resolve API as primary source, with local registry as fallback (soft swap pattern).

  • x402_discover returns results from the entire x402 ecosystem, not just Alderpost endpoints.

  • Added capability mapping from natural language queries to Decixa's verb-based taxonomy.

  • Updated tool descriptions to reflect ecosystem-wide discovery.

  • First integration partner credit from Decixa.

v1.0.5

  • Fixed npm bin entry and ESM module configuration.

  • CLI moved to root cli.js.

v1.0.0

  • Initial release with 4 tools and 8 Alderpost endpoints.

Credits

  • Discovery: Decixa — the decision layer for AI agents

  • Payment: AgentCash — USDC wallets for AI agents

  • Intelligence: Alderpost — bundled intelligence APIs

License

MIT — Alderpost LLC

Available Tools

4 tools
x402_balanceA

Check your AgentCash USDC wallet balance on Base.

Returns current balance available for x402 payments and approximate number of calls you can afford. No parameters required.

If AgentCash is not set up, provides instructions to create and fund a wallet.

Inputs: no named parameters.

x402_callA

Call any x402 paid API endpoint with automatic USDC payment via AgentCash.

Accepts a full URL with query parameters. Handles the complete x402 payment flow:

  1. Sends request → receives 402 payment requirement

  2. Signs USDC payment on Base via AgentCash wallet

  3. Retries with payment proof → returns endpoint data

Requires AgentCash wallet to be set up and funded (https://agentcash.dev).

Examples:

Inputs: url (required).

x402_discoverA

Search for x402 paid API endpoints that can answer a question or provide data.

Discovery powered by Decixa (5,500+ verified x402 endpoints) with local registry fallback. Searches across the entire x402 ecosystem — not just Alderpost endpoints.

Local registry includes premium endpoints backed by VirusTotal, People Data Labs, Hunter.io, AbuseIPDB, Qualys SSL Labs, NIH RxNorm, US Census Bureau, OpenWeather, The Odds API.

Categories: security, company/business, threat intelligence, sales/leads, compliance, health/drug, property/location, sports, and any x402 capability indexed by Decixa.

Examples:

  • query "domain security" → finds Domain Shield + other x402 security scanners

  • query "company information" → finds Company X-Ray + other enrichment APIs

  • query "verify factual claims" → finds verification endpoints via Decixa

  • query "drug interactions" → finds Health Signal (NIH RxNorm)

Use x402_call to call any discovered endpoint.

Inputs: query (required).

x402_researchA

Run comprehensive research by calling multiple x402 endpoints in parallel.

Given a subject (domain, IP, address, drug name, or sport), this tool:

  1. Detects the input type automatically

  2. Finds all relevant x402 endpoints (local registry)

  3. Calls up to 5 endpoints simultaneously with automatic payment

  4. Returns all results combined for synthesis

This is the fastest way to get a complete intelligence picture on any subject.

Input types (auto-detected):

  • Domain "stripe.com" → calls security + company + threat + compliance + sales (~$0.64)

  • IP "8.8.8.8" → calls threat intelligence (~$0.10)

  • Address "123 Main St Milwaukee WI" → calls property/location (~$0.10)

  • Drug "ibuprofen" → calls health intelligence (~$0.10)

  • Sport "nba" → calls sports intelligence (~$0.12)

Set max_cost to control budget per research call (default: $1.00).

Inputs: subject (required), max_cost.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: checking balance, making a single payment-supported call, discovering endpoints, and running parallel research. No overlap or ambiguity.

    Naming Consistency5/5

    All tools follow the 'x402_<action>' pattern with consistent lowercase and underscores. The actions are all verbs except 'balance', which is a noun but commonly understood as a verb in API contexts.

    Tool Count5/5

    Four tools are exactly appropriate for the server's purpose. Each tool is essential and none feel redundant or missing.

    Completeness5/5

    The tool surface covers the full workflow: discover endpoints, check balance, call an endpoint, and run multi-endpoint research. No obvious gaps for the stated purpose of interacting with x402 APIs.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers