Skip to main content
Glama
AfaAgent

AfaAgent x402 API Suite

Official
by AfaAgent

AfaAgent 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: BlueAgent x402 Services

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

defi-strategy

$19.99

Personalized DeFi yield farming strategy with risk assessment

portfolio-rebalancer

$14.99

Optimal crypto portfolio allocation across tokens and protocols

smart-contract-audit

$9.99

Smart contract security audit — detect vulnerabilities

token-launch-analysis

$7.99

Evaluate tokenomics, team, risks, and potential

rug-detect

$4.99

Rug pull detector — analyze any token for scam risk

Service

Price

Description

wallet-risk

$0.85

Security analysis for any EVM address

transaction-simulator

$0.85

Predict transaction outcome before signing

swap-routing

$0.99

Find best DEX swap price across DEXes

portfolio-tracker

$0.99

Balance & P&L for any wallet

yield-calculator

$0.50

DeFi yield calculator — APY/APR

token-screener

$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 with x-payment-info extensions

  • /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: 0x7B8401b5B4ee319aa47DC5F12b869e5Be460A9B2

  • Decimals: 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 returned

Listed In

Development

# Install dependencies
npm install

# Run local server (port 3000)
npm start

# Deploy to Cloudflare Workers
npx wrangler deploy --temporary

License

MIT

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Provides 19 AI-powered business intelligence tools for tasks such as SEO audits, company enrichment, and market analysis. These services are accessible through a pay-per-use model utilizing the x402 protocol on the Base network.
  • A
    license
    A
    quality
    C
    maintenance
    Pay-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.
    7
    95
    MIT

View all related MCP servers

Related MCP Connectors

  • 63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.

  • 30 pay-per-call APIs for AI agents: compliance, trade, safety, web, data. USDC on Base via x402.

  • Pay-per-call data tools for AI agents: crypto signal, web reader, SEO audit. x402 USDC on Base.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AfaAgent/x402-api-suite'

If you have feedback or need assistance with the MCP directory API, please join our Discord server