AfaAgent x402 API Suite
OfficialAfaAgent x402 API Suite
43 production-grade APIs — all pay-per-call via x402 protocol with USDC on Base network.
Built for AI agents, autonomous systems, and developers who need instant API access without subscriptions or API keys.
Live Endpoint
Base URL: https://afaagent-x402.loca.lt
Status: https://afaagent-x402.loca.lt/health
Related MCP server: 2s
Quick Start
# 1. Try any endpoint (returns 402 with payment details)
curl -X POST https://afaagent-x402.loca.lt/api/v1/wallet-risk \
-H "Content-Type: application/json" \
-d '{"address":"0x742d35Cc6634C0532925a3b844Bc9e7595f7AAA0"}'
# 2. Pay the USDC amount on Base to the wallet shown
# 3. Resend with the X-Payment header
curl -X POST https://afaagent-x402.loca.lt/api/v1/wallet-risk \
-H "Content-Type: application/json" \
-H "X-Payment: <tx_hash>" \
-d '{"address":"0x742d35Cc6634C0532925a3b844Bc9e7595f7AAA0"}'Service Categories (43 services)
Category | Services | Price Range |
Blockchain & DeFi | 16 | $0.03 — $19.99 |
AI & ML Tools | 9 | $0.02 — $0.15 |
Developer Tools | 14 | $0.01 — $0.10 |
Marketing & SEO | 4 | $0.08 — $0.15 |
Premium Services (High-Margin)
Service | Price | Description |
| $19.99 | Personalized DeFi yield farming strategy with risk assessment |
| $14.99 | Optimal crypto portfolio allocation across tokens and protocols |
| $9.99 | Smart contract security audit — detect vulnerabilities |
| $7.99 | Evaluate tokenomics, team, risks, and potential |
| $4.99 | Rug pull detector — analyze any token for scam risk |
Popular Services
Service | Price | Description |
| $0.85 | Security analysis for any EVM address |
| $0.85 | Predict transaction outcome before signing |
| $0.99 | Find best DEX swap price across DEXes |
| $0.99 | Balance & P&L for any wallet |
| $0.50 | DeFi yield calculator — APY/APR |
| $0.30 | Risk & fundamentals for any ERC20 |
Discovery Endpoints (Machine-Readable Marketing)
/.well-known/x402— x402 service discovery (RFC-style)/openapi.json— OpenAPI 3.0 spec withx-payment-infoextensions/llms.txt— LLM-friendly API documentation (for AI agents)/agents.json— AI agent manifest (ERC-8004 style)/mcp— MCP server endpoint (Streamable HTTP transport)/health— Health check
MCP Integration
Use as an MCP server in Claude Desktop, Cursor, Cline, or any MCP-compatible agent:
{
"mcpServers": {
"afaagent-x402": {
"transport": "streamableHttp",
"url": "https://afaagent-x402.loca.lt/mcp"
}
}
}All 43 tools are available as MCP tools with inline pricing info.
Payment Details
Network: Base (eip155:8453)
Token: USDC (
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)Wallet:
0x7B8401b5B4ee319aa47DC5F12b869e5Be460A9B2Decimals: 6
Facilitator: Coinbase CDP (x402 v2)
Architecture
Client / AI Agent
│
▼ POST /api/v1/{service}
Cloudflare Worker (Global Edge, <50ms)
│
├─► 402 Payment Required (x402 v2)
│ {amount, payTo, asset, network}
│
├─► Client pays USDC on Base
│
└─► POST /api/v1/{service} + X-Payment: <tx_hash>
│
▼
Coinbase CDP verifies payment
│
▼
JSON result returnedListed In
x402Scout — x402 service directory
Agent402 — AI agent marketplace
mcp.so — MCP server directory
Glama — MCP server registry
awesome-mcp-servers (PR pending)
Development
# Install dependencies
npm install
# Run local server (port 3000)
npm start
# Deploy to Cloudflare Workers
npx wrangler deploy --temporaryLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
38 x402 pay-per-call tools for AI agents (USDC/USDT on Base): web, crypto, on-chain, geo, packages
63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.
Pay-per-call data APIs for AI agents. USDC on Base via x402. 33 tools, no signup.
x402 paid APIs for AI agents on Base. Blockchain, wallet, DEX, crypto, web search.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenancePay-per-use AI security and research tools for autonomous agents on Base, enabling honeypot detection, risk assessment, wallet analysis, and yield optimization via the x402 protocol.-
- AlicenseBqualityAmaintenancePay-per-call AI agent APIs on Base via x402. Multiple tools across patents, law, AI, geo, weather, crypto, and more. Always growing.2018MIT
- AlicenseAqualityDmaintenancePay-per-call x402 data products on Base mainnet — sanctions screening, aviation weather, mortgage rates, US property dossier, title chain, wallet balance, and agent session auth. Every call settles in USDC with an on-chain receipt, no accounts or API keys.727 npmMIT
- FlicenseAqualityDmaintenancePay-per-call tools for AI agents including trust checks, due diligence, market data, and human-verified approvals, settled in USDC on Base via the x402 protocol.16-