---
name: x402-agent-toolkit
description: Pay-per-call Base Mainnet USDC x402 v2 + Streamable HTTP MCP intelligence & security tools (TWSE financials, institutional flows, 24-company Taiwan AI supply chain, Polymarket/Kalshi/DEX arb signals, Safe-Fetch prompt-injection firewall, MCP tool-poisoning scanner).
---

# x402 Agent Toolkit (v3.4)

> Pay-per-request edge APIs & Remote MCP Server for AI agents. No API keys or accounts — pay automatically via HTTP 402 (USDC on Base Mainnet).

## Discovery & Integration
- Remote MCP Server (tools/list FREE, tools/call x402): https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp
- A2A Agent Card: https://x402-agent-toolkit.x402-edge-tools.workers.dev/.well-known/agent-card.json
- OpenAPI 3.1 Spec: https://x402-agent-toolkit.x402-edge-tools.workers.dev/openapi.json
- x402 Manifest: https://x402-agent-toolkit.x402-edge-tools.workers.dev/.well-known/x402.json
- Free Live Web Dashboard: https://taiwan-market-pulse.x402-edge-tools.workers.dev
- Payment Network: eip155:8453 | Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | PayTo: 0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417

## Paid Endpoints & Tools
- safe_fetch ($0.015 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/safe-fetch — Security shield for wallet-enabled AI agents: fetches any public URL, strips hidden prompt injections (zero-width unicode, invisible CSS/HTML comments, system-override directives, data-exfiltration links), and returns sanitized Markdown + SHA-256 digest + GO/WARN/BLOCK verdict.
- ai_supply_chain ($0.03 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/ai-supply-chain — Real-time leading indicator for $NVDA/$TSM/$AVGO/$AMD/$SMCI: aggregates 24 curated Tier 1-3 Taiwan TWSE AI suppliers (Foundry/CoWoS, AI Server ODMs, Liquid Cooling, ABF Substrates, CCL/PCB, 800G Networking, ASICs) with live monthly revenue YoY/MoM, US ticker read-through & composite AI Hardware Demand Index.
- tw_institutional_flows ($0.02 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/tw-institutional-flows — Official TWSE daily institutional money-flow intelligence in clean English JSON: market-wide Foreign, Investment Trust & Dealer net buy/sell (TWD), per-stock institutional net shares (T86), margin financing & short-selling balances (MI_MARGN), top foreign net-bought/sold leaders, and 24-company AI hardware supply chain institutional positioning.
- funding_arb ($0.005 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/funding-arb — Real-time cross-venue perpetual funding-rate arbitrage scanner for quant & trading agents: aggregates 235+ Hyperliquid and dYdX v4 perpetual markets, normalizes hourly funding to annualized APR, computes exact long/short venue carry spreads, oracle basis bps, open interest & 24h volume.
- prediction_arb ($0.01 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/prediction-arb — Real-time prediction market arbitrage intelligence for trading agents: scans top active Polymarket and Kalshi markets for cross-exchange probability spreads, intra-market YES+NO sum mispricings, and high-liquidity near-resolution carry opportunities.
- mcp_security_scan ($0.01 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/mcp-security-scan — Before your AI agent connects to an unknown remote Streamable HTTP MCP server, scan it: executes initialize + tools/list, inspects every tool description & JSON schema for hidden prompt injections, zero-width/bidi unicode stealth chars, credential/wallet exfiltration instructions, and dangerous shell/execution surfaces, returning a 0-100 risk score, verdict & SHA-256 manifest digest.
- x402_preflight ($0.005 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/x402-preflight — Before your AI agent pays an unknown x402 URL, audit it: checks latency, HTTP 402 compliance, decodes PAYMENT-REQUIRED, verifies official USDC contract & valid payTo address, checks Bazaar schema, and returns a 0-100 trust score.
- repo_intel ($0.005 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/repo-intel — Single-call structured GitHub intelligence for coding & research agents: stars, forks, open issues, latest release, language mix, maintenance health score, and npm/PyPI registry metadata.
- tw_stock_intel ($0.02 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/tw-stock-intel — Structured English-keyed Taiwan listed company intelligence from official TWSE OpenAPI: daily OHLCV, P/E, dividend yield, P/B, monthly revenue YoY/MoM growth, and material disclosures (or quantitative market screeners).
- market_signals ($0.025 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/market-signals — Cross-source quantitative signals for trading agents: (1) Polymarket Gamma + live CLOB orderbook spread, depth imbalance, YES+NO mispricing & breakout turnover; (2) Multi-DEX cross-pool price spread & arbitrage feasibility.
- deep_extract ($0.015 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/deep-extract — Heavy-duty extraction for AI agents: parses all HTML tables into typed JSON objects/rows, extracts hidden SPA hydration JSON (__NEXT_DATA__, JSON-LD, embedded data islands), heading outline, OpenGraph metadata, and clean Markdown.
- web_to_markdown ($0.002 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/web-to-markdown — Convert any public web page into clean, LLM-ready Markdown + metadata & links.
- token_check ($0.005 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/token-check — Aggregate DexScreener liquidity/volume and GoPlus contract security into a 0-100 risk report.
- site_intel ($0.003 USDC): GET/POST https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/site-intel — Audit HTTP security headers, metadata, OpenGraph, tech stack hints, robots.txt, and llms.txt.
