Skip to main content
Glama
x402 Micropayments & US City Compliance MCP

x402 Micropayments & US City Compliance MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UPGRADE_URLNoCommerce tier upgrade link
SWARM_MARKUPNoMarkup multiplier for swarm composite pricing
CDP_API_KEY_IDNoCoinbase CDP facilitator credential ID (verify + settle on eip155:8453)
EVM_PRIVATE_KEYNoBuyer wallet private key for pay_and_fetch. Never set on a public seller host.
SVM_PRIVATE_KEYNoSolana private key for multi-chain signer
X402_LIVE_TESTSNoSet to '1' to run live tests against x402.org
STRIPE_SECRET_KEYNoStripe secret key for fiat payment rail
CDP_API_KEY_SECRETNoCoinbase CDP facilitator credential secret
SWARM_SELL_NETWORKNoNetwork to list products on. Set 'eip155:8453' for Base mainnet (default: Base Sepolia)
X402_PAY_TO_ADDRESSNoRecipient wallet — all x402 sales settle here
SWARM_TARGET_LTV_CACNoTarget LTV:CAC ratio for swarm pricing
X402_FACILITATOR_URLNox402 facilitator URL. Default: https://x402.org/facilitator
STRIPE_WEBHOOK_SECRETNoStripe webhook signature verification secret
MN_PROPERTY_CHECK_PRICENoPrice in USD for the MN property check resource

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

x402 micropayments MCP (USDC on Base). Route by domain: x402.* buyer/seller HTTP 402, commerce.* quota/credits/Stripe, swarm.* composite research resale, pulse.base settlement timing, ops.metrics host health, city.* US open-data property compliance. Buyer path: x402.discover → x402.probe → x402.pay_and_fetch. City path: city.list → city.sample → city.check. Pro quota: commerce.activate_pro (MCP x402/payment) or commerce.pro_requirements → pay → activate. Credits: commerce.credits_requirements → pay → commerce.purchase_credits. Public seller hosts have no spend key — probe tools still work; pay-and-fetch needs EVM_PRIVATE_KEY. Every tool response includes commerce meta.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
x402.agent_cardA

Return the A2A Protocol v1.0 Agent ID Card and MCP server card. Optional target_id filters to a skill id, name, or tag.

x402.discoverA

Discover paid HTTP APIs in the x402 Bazaar via the facilitator catalog. Call this first to find a resource URL, then x402.probe and x402.pay_and_fetch.

x402.probeA

Probe a URL for HTTP 402 PAYMENT-REQUIRED terms using the x402 client SDK. Use before x402.pay_and_fetch to inspect price, network, and payTo without spending.

x402.pay_and_fetchA

Pay USDC via x402 and fetch a protected HTTP resource in one call. Requires EVM_PRIVATE_KEY on this host; otherwise use x402.probe for a no-spend 402.

x402.build_sellerA

Build seller-side x402 payment requirements for your own HTTP resource. Pass resource_url plus discovery_* fields to catalog the endpoint in Bazaar.

x402.verifyA

Verify an x402 PAYMENT-SIGNATURE against PAYMENT-REQUIRED terms via the facilitator. Call after a buyer presents a signature and before releasing paid content.

x402.networksA

List supported settlement networks, facilitators, and x402 v2 header names. Call when choosing a preferred_network for x402.pay_and_fetch or x402.build_seller.

commerce.pro_requirementsA

Build x402 payment requirements to purchase the Pro quota tier. Next: pay those terms, then commerce.activate_pro with the signature.

commerce.activate_proA

Verify a Pro-tier x402 payment and unlock Pro quota limits for the agent. MCP-native: call without payment to receive x402 requirements in the tool result, then retry with _meta['x402/payment'] (@x402/mcp client). Legacy: pass PAYMENT-SIGNATURE + PAYMENT-REQUIRED after commerce.pro_requirements.

commerce.credits_requirementsA

Build x402 payment requirements to buy a pack of per-use MCP tool credits. Next: pay those terms, then commerce.purchase_credits with the signature.

commerce.purchase_creditsA

Verify an x402 payment and add per-use tool credits to the agent. MCP-native: call without payment for x402 requirements, then retry with _meta['x402/payment']. Legacy: PAYMENT-SIGNATURE + PAYMENT-REQUIRED after commerce.credits_requirements.

swarm.researchA

Run the swarm agency: compose a research product from free inputs and list it for resale. Pass allow_paid_inputs=true only when buying upstream x402 services is intended.

swarm.settleA

Verify and settle a buyer's x402 payment for a listed composite product and record revenue. Call with product_id plus PAYMENT-SIGNATURE after the buyer pays.

swarm.revenueA

Get swarm composite economics: spend, composite sales, LTV:CAC, margins, per-source scores. total_revenue_usdc is swarm listings only; storefront.revenue_usdc is the full settled ledger. Call after swarm.research or swarm.settle to inspect realized economics.

pulse.baseA

Get live Base Network Pulse: base fee, EIP-1559 projection, utilization, USD settlement cost, verdict. Call before settling on Base when you need a settle-now vs hold recommendation.

ops.metricsA

Get host OS telemetry: CPU, memory, swap, disk, network, and an ok/warn/critical health verdict. Call to diagnose this MCP host; set include_processes=true for top memory processes.

city.listA

List US City Open-Data Compliance Network cities with paid_url, sample_url, and price. Call first, then city.sample, then city.check for the paid address lookup.

city.sampleA

Get a free fixed-address property compliance sample for one US city code. Use before city.check to validate city_code and response shape without paying.

city.checkA

Paid US city property compliance check (MCP seller x402). Unpaid calls return PaymentRequired with accepts; pay via _meta['x402/payment']. Prefer city.sample first. Price: $0.01 per call (x402, USDC on Base/Solana/Arbitrum).

a2a.resolve_cardA

Discover and inspect an external Agent-to-Agent (A2A) node by domain or URL. Fetches .well-known/agent-card.json, validates protocol compatibility, checks for a2a-x402 and AP2 payment extensions, and extracts callable skills with pricing.

Prompts

Interactive templates invoked by user choice

NameDescription
x402.buy_paid_apiWalk an agent through discovering, probing, then paying for an x402 HTTP resource.
x402.sell_apiWalk an agent through building seller PAYMENT-REQUIRED terms and listing an endpoint in Bazaar.
city.compliance_pathGolden path for US City Open-Data Compliance: list → sample → paid check.

Resources

Contextual data attached and managed by the client

NameDescription
x402.instructionsServer routing guide: which dotted tool to call, in what order, for buyer/seller/city flows.
x402.catalogJSON catalog of dotted tool names, descriptions, and required env vars.
x402.agent-cardFull A2A Protocol v1.0 Agent ID Card and capability descriptor.
x402.server-cardRemote MCP Server Card for Smithery, Glama, and client indexing.
x402.tools-manifestCanonical MCP well-known manifest with tool specs, quotas, and endpoints.
x402.pricing-tableMachine-readable pricing for micropayments, subscriptions, and credits.

TDQS

A3.8/5.0

Scored across 20 tools

Disambiguation3/5

Most tools are separable by namespace and verb, but several clusters overlap: x402.verify vs swarm.settle both concern verifying/settling payments; x402.agent_card vs a2a.resolve_card are both agent-card lookups (self vs external); and x402.discover vs city.list both surface discoverable paid resource URLs. Descriptions do disambiguate once read, but an agent choosing quickly could misselect.

Naming Consistency3/5

The dotted namespace prefix (x402.*, commerce.*, city.*, swarm.*) is consistent across all tools, which is good. However the action part varies: city.list/sample/check are verb-first, commerce.pro_requirements/credits_requirements are noun phrases, swarm mixes swarm.research (verb) with swarm.revenue (noun), and pulse.base/ops.metrics are bare nouns. Readable, but conventions are mixed.

Tool Count3/5

20 tools is on the high side and reflects a grab-bag of seven loosely related sub-domains (x402 pay, commerce quota, swarm, city compliance, Base pulse, host ops, A2A resolve). Several are single-tool domains that feel like attachments rather than a cohesive set. Each tool earns its place individually, but the surface feels heavy for the stated 'micropayments & US city compliance' scope.

Completeness4/5

Core flows are largely covered: discover→probe→pay→verify for buyers, build_seller for sellers, paired requirements+purchase for both Pro and credits, and list→sample→check for city data. Gaps exist around swarm listing lifecycle (no list/delist/update of composite products) and pulse.base/ops.metrics/a2a.resolve_card are lone tools with no companion operations, but the main workflows are workable.

Maintenance

ActivityNo data
ResponsivenessSyncing