The x402 Agent Hub MCP server is a toolkit for autonomous AI agents, LLM routers, and coding assistants, providing 25 deterministic execution and intelligence APIs through the open x402 v2 payment protocol and Streamable HTTP MCP. Each call is paid in USDC on Base mainnet, with prices ranging from 0.002–0.050 USDC, with no API keys, account registration, or monthly subscription. The official MCP registry ID is io.github.BlackCat-cyber-creator/x402-agent-hub (v1.6.0).
Main capabilities
- On-chain state queries: chain_* tools (0.002–0.005 USDC) can query balances, token metadata, whether a payment/transaction has landed, whether an address is a contract or proxy, ENS names, and a wallet's holdings across 7 chains. Read failures (bad input, not found, RPC failure) are not charged.
- U.S. public company research: company_* tools (0.002–0.005 USDC) come directly from SEC EDGAR and support ticker lookup, company profiles, latest 10-K/10-Q/8-K, revenue/earnings/free cash flow history, and insider buying and selling. Failed queries are not charged.
- Entity information enrichment: entity_company / entity_person (0.003 USDC) can enrich company or person information from a name or website domain, including private, startup, and non-U.S. companies, returning headquarters, industry, CEO, founders, employee count, listing information, LEI, and official social accounts, with data from Wikidata.
- Token safety rating: token_verdict (0.015 USDC) gives an A–F rating, a one-sentence conclusion, and a plain-language explanation based on real-time honeypot, tax, and liquidity audits, and provides a shareable conclusion page and card image.
- Crypto token audit: audit_crypto_token (0.010 USDC) checks for honeypots, hidden transfer taxes, closed-source proxies, thin DEX pools, or AMM slippage before swapping Base/EVM/Solana tokens, helping avoid losses.
- CFD/forex trading assistance: get_ict_sessions (0.005 USDC), get_cfd_microstructure (0.010 USDC), and calculate_prop_firm_risk (0.010 USDC) is used to check active ICT Killzones/Silver Bullets, ECN spreads and ATR drag, and prop firm daily/max drawdown lockout thresholds before trading forex, gold (XAUUSD), indices (NAS100, US30), or crypto CFDs.
- B2B sales and lead enrichment: generate_outreach_dossier (0.050 USDC) or the modular extract_clean_markdown, enrich_business_lead, audit_technical_seo, which can obtain cleaned brand names, verified E.164 WhatsApp/mobile numbers (filtering out office PSTN landlines), a 0–100 SEO revenue leakage diagnosis, and customized WhatsApp and cold email scripts.
- Visual card generation: render_visual_card (0.025 USDC) generates crisp, zero-typo deterministic 1200x630 / 1080x1350 SVG and PNG visual cards, suitable for social banners, KPI slides, or signal cards.
How to use
- Option 1: Zero-install remote Streamable HTTP MCP, for Cursor / Claude / Windsurf / VS Code, connecting directly to the endpoint hosted on Cloudflare Edge https://x402-agent-hub.x402-agent-hub.workers.dev/mcp。注意不要将钱包密钥发送到远程端点;检查工具和调用 get_hub_catalog is free; paid tools require signing an x402 payment on the local machine and passing it as the paymentSignature parameter.
- Option 2: Local npx stdio MCP, for Claude Desktop / Cursor / Windsurf. After setting X402_BUYER_PRIVATE_KEY, @x402/fetch signs the EIP-3009 USDC authorization on the local machine; the key is never sent to the hub, and automatic payment is supported.
- Option 3: Install as an Agent Skill (SKILL.md).
- Direct HTTP / OpenAPI discovery: /openapi.json at the root URL discovers 25 paid HTTP resources; the /mcp endpoint provides 26 MCP tools (including the free get_hub_catalog handshake tool).
- Payment method: x402 v2 on Base mainnet USDC (eip155:8453), supporting local MCP automatic payment, or direct HTTP 402 challenge-response: call the /v1/* route, check the PAYMENT-REQUIRED header, then retry with a signed PAYMENT-SIGNATURE header.
Use cases Suitable for AI agents and coding assistant workflows that need on-chain data, US public company research, entity enrichment, token security audits, CFD/forex trading risk checks, B2B sales lead enrichment and SEO audits, and deterministic visual card generation.
Limitations and notes
- Each paid call is an irreversible USDC payment sent from the wallet, at a fixed price; repeated calls with the same parameters will be charged again, and paid tools are not read-only and not idempotent.
- The tools do not delete or overwrite user data, so they are not marked as destructive; all tools read the live hub over the network and are open-world.
- The local stdio server sets a title and all four MCP annotation hints for each tool; the hosted /mcp endpoint does not yet carry annotations.
- It is recommended to use a dedicated, disposable agent wallet funded with only 2–5 USDC on Base mainnet, and never use your main savings wallet.
- The remote endpoint does not receive wallet keys; automatic payment requires the local MCP option.
- GET /mcp returns405 Method Not Allowed per the MCP Streamable HTTP specification; clients should use stateless request/response calls.
- There are three runnable client examples in examples/ (plain @x402/fetch, AgentCash CLI, remote MCP), all of which can run up to the quote or price step without a wallet; the paid paths are documented but have not actually been run.