Pay for HTTP APIs and charge for your own: x402 micropayments in USDC on Base.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Production MCP server for the x402 HTTP micropayment protocol β live on Base mainnet, selling real data products to AI agents for USDC today. Agents discover paid services, probe 402 Payment Required responses, pay with stablecoins, and build/verify seller payment configs; the server runs both sides of that market.
Storefront: https://x402-mcp.onrender.com β x402 v2 challenges served, USDC verified + settled through the Coinbase CDP facilitator (eip155:8453).
| Product | Price | What you get |
|---|---|---|
GET /mn/property-check?address=β¦ | $0.01 USDC | Minneapolis rental-compliance snapshot composed from 3 live City of Minneapolis open datasets β the first machine-payable housing-compliance data for agents |
GET /us/{code}/property-check?address=β¦ | $0.01 USDC | US City Open-Data Compliance Network (14 jurisdictions) β same wire protocol; free catalog /us/cities + free /sample; MCP: list_us_cities β get_us_city_property_sample β check_us_city_property |
GET /swarm/products/{id}/purchase | $0.25 USDC | Base Network Pulse: live settlement-conditions intelligence (EIP-1559 math + real RPC + ETH spot), listed with the x402 Bazaar discovery extension |
The public seller host holds no spend key β it only verifies and settles inbound payments (docs/SELLER-STOREFRONT.md). Roadmap: ROADMAP.md.
app/tools_registry.py (single source for README, /.well-known/mcp, and tests); guarded by tests/test_readme.py and tests/test_manifest.pycreate_stripe_checkout + POST /stripe/checkout + POST /stripe/webhook for card/bank paymentsmeta envelope on every response/.well-known/mcp manifest/dashboard β live health, per-agent quota burn-down meters, tool matrix, and revenue paths (single-file, zero build step)X402_LIVE_TESTS=1 to run against x402.orgOpen http://localhost:5173 β setup wizard runs with doctor checks. Toggle Demo to preview every panel with zero wallet.
Docs: docs/SETUP.md Β· docs/USER-GUIDE.md Β· docs/UI-HANDOFF-v2.md
Add to Cursor MCP config (manifests/cursor-mcp.json).
First-party sellable endpoint (the seller side of this repo's own tooling):
x402-gated at $0.01 USDC (MN_PROPERTY_CHECK_PRICE). Unpaid requests get a
402 with x402 v2 PAYMENT-REQUIRED terms; paid requests are verified and
settled via the facilitator, then served with a PAYMENT-RESPONSE receipt.
One call returns a composite Minneapolis rental-compliance snapshot from live City of Minneapolis Open Data: active rental license (status, tier, licensed units, expiration, ward/neighborhood), regulatory violation case history (APN-joined), and condemned/boarded status. Owner phone/email in the source data are intentionally never served. Public records, as-is; not legal advice.
| Tool | Description |
|---|---|
discover_services | Query x402 Bazaar for paid HTTP APIs |
get_payment_requirements | Probe URL for PAYMENT-REQUIRED on 402 |
pay_and_fetch | Auto-pay and fetch protected resource |
build_seller_requirements | Build seller payment requirements |
verify_payment_payload | Verify payment via facilitator |
get_supported_networks | Networks, facilitators, v2 headers |
get_pro_upgrade_requirements | Build x402 payment requirements for Pro tier upgrade |
activate_pro_tier | Verify x402 payment and unlock Pro tier quota |
get_tool_credits_requirements | Build x402 payment requirements for per-use tool credits |
purchase_tool_credits | Verify x402 payment and add per-use tool credits |
create_stripe_checkout | Create Stripe Checkout Session for pro tier or credits |
run_swarm_research | Swarm Agency: buy cheap upstream x402 services, compose a research report, list it for resale |
settle_composite_sale | Verify + settle a buyer's payment for a listed composite and record revenue |
swarm_revenue_report | Portfolio revenue intelligence: spend, revenue, LTV:CAC, margins, per-source profit scores |
get_base_pulse | Live Base Network Pulse: synthesized settlement-conditions intelligence (base fee, utilization, USD cost, verdict) from real RPC data |
get_os_metrics | Host OS telemetry: CPU, memory, swap, disk, network, and process signals with an ok/warn/critical health verdict |
list_us_cities | Free US City Open-Data Compliance catalog (codes, paid_url, sample_url, MCP golden path) |
get_us_city_property_sample | Free fixed-address property compliance sample for one city code |
check_us_city_property | Paid city property compliance via x402 (same HTTP resource external buyers use) |
| Variable | Required | Description |
|---|---|---|
X402_PAY_TO_ADDRESS | For selling | Recipient wallet β all x402 sales settle here |
CDP_API_KEY_ID / CDP_API_KEY_SECRET | For Base mainnet | Coinbase CDP facilitator creds (verify + settle on eip155:8453) |
SWARM_SELL_NETWORK | For mainnet listings | Set eip155:8453 to list products on Base mainnet (default: Base Sepolia) |
EVM_PRIVATE_KEY | For pay_and_fetch | Buyer wallet private key β never set this on a public seller host |
STRIPE_SECRET_KEY | For Stripe checkout | Fiat payment rail |
STRIPE_WEBHOOK_SECRET | For /stripe/webhook | Webhook signature verification |
X402_FACILITATOR_URL | No | Default: https://x402.org/facilitator (testnet; CDP handles mainnet) |
UPGRADE_URL | No | Commerce tier upgrade link |
Every tool response includes:
Cost-effective multi-agent operating group (scout, warden, treasurer, archivist, sovereign, merchant) with budget policy and ledger. See docs/agent-ops.md. Dashboard handoff: docs/UI-HANDOFF.md.
The Swarm Agency (app/swarm/) implements the hybrid resale loop end-to-end:
scout discovers cheap upstream x402 services β warden enforces ledger/policy.json spend caps β treasurer pay_and_fetches and records cost basis to ledger/spend.jsonl β archivist composes a research report priced at cost Γ SWARM_MARKUP β sovereign (profit optimizer) reprices the composite to hit a target LTV:CAC (SWARM_TARGET_LTV_CAC, default 3.0), enforces a margin floor, and scores which upstream sources are actually profitable β merchant lists it via build_seller_requirements; settle_composite_sale records realized revenue. Portfolio economics (spend, revenue, LTV:CAC, per-source profit) surface via swarm_revenue_report / GET /swarm/revenue. Every phase streams to the dashboard's Swarm Activity panel over SSE. Run via the run_swarm_research MCP tool (needs EVM_PRIVATE_KEY + X402_PAY_TO_ADDRESS).
Multi-chain (EVM + Solana). The resource server registers ExactEvmServerScheme for eip155:* and ExactSvmServerScheme for solana:* (via the x402[svm] extra; solana>=0.36,<0.40). Seller requirements build on Base and Solana mainnet (solana:EtWTRABβ¦), and the buyer client registers an EVM and/or Solana signer from EVM_PRIVATE_KEY / SVM_PRIVATE_KEY β no marketing-vs-code gap.
Selling network / facilitators. The merchant lists on SWARM_SELL_NETWORK (default eip155:84532). The free x402.org facilitator only settles exact on Base Sepolia; to sell/settle on Base mainnet set SWARM_SELL_NETWORK=eip155:8453 and provide Coinbase CDP credentials (CDP_API_KEY_ID + CDP_API_KEY_SECRET) β the seller then routes verify/settle through the CDP facilitator with a per-request Ed25519 JWT (app/cdp_auth.py).
Base Network Pulse (app/pulse.py + app/swarm/publisher.py) is a synthesis publisher: it turns free, high-quality Base RPC data (latest block, EIP-1559 base fee, block gas utilization) plus a live ETH spot price into a priced, x402-payable intelligence report. It projects the next-block base fee from the EIP-1559 formula, converts settlement gas into a live USD cost, and renders a settle-now / hold verdict on current Base settlement conditions. All inputs are real data β no mocks: real Base RPC calls, real Coinbase ETH price, real base-fee math.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/x402-mcp-2)<a href="https://allmcps.com/mcp/x402-mcp-2"><img src="https://allmcps.com/api/badge/x402-mcp-2?style=directory" alt="X402 MCP on AllMCPs" /></a>