Логотип Agent402

Agent402

Спільнота
MikeyPetrillo

agent402.tools: 500+ pay-per-call tools, metered models and finished reports for AI agents, paid per call in USDC over x402 and MPP or by card. Open source, self-hostable, MCP-native. The applied layer of agentic finance.

ВидавецьMikeyPetrillo
РепозиторійAgent402
МоваJavaScript
Форки
23
Зірки
32
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяAGPL-3.0
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Agent402 надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 32, форки: 23 — у пов’язаному репозиторії.

Agent402: 500+ tools, metered models and finished reports for AI agents

Live at agent402.tools.

The paid door for AI agents: 500+ tools, metered models and finished reports, paid per call in USDC over x402 and MPP, or by card. Open source, self-hostable, MCP-native.

Operated by Havok Holdings LLC · Live · Why pay here · Receipts · Status · Security · Company

Try it in 30 seconds: claude mcp add agent402 -- npx -y agent402-mcp, or paste https://agent402.tools/mcp into any MCP client. The free tier needs no wallet. Verified setup blocks for Cursor, VS Code, Windsurf, Cline, Roo Code, Codex CLI, Gemini CLI, Continue, ElizaOS and AgentCore: agent402.tools/guides/agent-hosts (shortlinks agent402.sh/<host>, e.g. agent402.sh/cursor).

Who pays: agents pay per call (from $0.001; models metered under a quoted ceiling and settled at actual usage); people buy finished reports ($2 to $5) and monitors ($5 a month) by card; sites charge crawlers with the tollbooth.

Live Wellknown CodeQL Secret scan npm npm npm CI License: AGPL-3.0 Listed on Smithery

What Agent402 is

Agentic Finance is software agents paying and getting paid on their own: discovering a service, paying per request from a wallet over open protocols (x402, MPP), receiving a verifiable receipt, and earning per request in return. Agent402 is its applied layer - explainer: agent402.tools/agentic-finance · glossary.

What makes it different: Agent402 is open-source and self-hostable - and a single integration gives a buyer three free primitives over the whole x402 ecosystem:

  • Find - /api/find?q={task} resolves a task description to the best-matching tools (route, price, schema, ready example).
  • Route - POST /api/route is the neutral Smart Order Router: rank tools across every x402 seller crawled (auto-discovered from the Coinbase CDP Bazaar), health-aware, with include=external to exclude us.
  • Leaderboard - GET /api/leaderboard is the public on-chain ranking of every x402 seller by Base USDC settled volume - calls served, totalUsd, unique buyers per seller. Pipeline: Bazaar → eth_getLogs → per-call ceiling → aggregate by payTo. Hourly snapshot.

Plus the catalog - 500+ strong: search/answer as the MCP front door, then 500+ tools and curated skill packs (multi-tool workflows callable as MCP prompts) - all runnable yourself, plus agent402-tollbooth - an open pay-per-crawl gate for the other side of x402.

Two doors, two price lists. Agents pay per call in USDC (x402 / MPP) or free via proof-of-work, and a finished report costs $0.60 to $2.00 that way. People pay by card: the same reports at agent402.tools/reports (company dossier, 13F fund report, insider flow, market brief, deep research, FDA recall, domain audit) are $2 to $5, monitors that re-run on change at /monitors are $5 a month, and prepaid credits at /credits are one a402_ key that pays every tool by card (Authorization: Bearer a402_…, debited per successful call; supported by agent402-mcp via AGENT402_CREDITS_KEY and agent402-client via { creditsKey }). The card price includes payment processing: Stripe charges 2.9% + $0.30 per charge, so under about a dollar the fee costs more than the report. An agent paying per call pays the lower tool price for the same report.

Two payment wires, one URL. Every paid endpoint accepts x402 (PAYMENT-SIGNATURE, USDC on 12 chains) and MPP (Machine Payments Protocol, the IETF-track Payment HTTP auth scheme co-authored by Tempo and Stripe): the same 402 carries both, an mppx client pays out of the box, and MPP settles on Base and Celo (USDC), natively on Tempo (USDC.e or PathUSD via Tempo's relay), or by card over MPP (Stripe stripe/charge, offered on routes priced $0.50 and up when the operator configures it). The MPP marketplace lists every MPP seller we can verify live. Details: What is MPP · live MPP settlements.

Framework adapters (drop-in tools for the major agent stacks - auto-payment underneath): npm npm npm npm npm npm npm npm npm

500+ strong - live web search and cited answers as the MCP front door, then ready-to-use web tools and multi-tool skill packs for your AI agent, from one server. Every one tested, priced, and settled on-chain; every one earns its place. Browser rendering, web search, PDFs, images, OCR, live financial/crypto/macro data, SEC EDGAR, deterministic stats, forecasting, and options/bond pricing (Black-Scholes, YTM), compression, and 200+ pure-CPU utilities. Run it yourself for free in 30 seconds (MCP or plain HTTP, no API keys, no signup - the free tier and x402/MPP payments never need a key; only the optional prepaid card credits use one bearer key), connect it to Claude/ChatGPT/any MCP client, and add your own tools in a few lines. Every utility tool is deterministic - no LLM in the serving path - and re-tested against its own example before every release. The model-backed surfaces are explicit and priced as such: the /v1 gateway (metered under a quoted ceiling, or flat tiers) and the finished report products (/v1/research, /v1/dossier, ... below).

Optionally, the same server can charge per call over the x402 protocol (USDC on Base, Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Stellar & Algorand, plus USDG on Robinhood Chain - 12 chains) - so the instance you self-host for free can also be a hosted, monetized one. That part is opt-in; by default everything runs free.

🟢 Hosted demo: agent402.tools · 📖 Wiki · 📦 npm · 🔌 MCP Registry · 🧩 Smithery

Run it yourself in 30 seconds

Pick whichever fits. They are all free and need no wallet:

1. Zero install - add the hosted connector to Claude (claude.ai → Settings → Connectors → Add custom connector):

https://agent402.tools/mcp

2. One command - run the MCP server locally (the pure-CPU tools work with no key; it pays the tiny proof-of-work for you):

bash
npx -y agent402-mcp
# in Claude Code:  claude mcp add agent402 -- npx -y agent402-mcp

3. Clone and host the whole thing (all 500+ tools as an HTTP API + MCP, free mode, no payments):

bash
git clone https://github.com/MikeyPetrillo/Agent402 && cd Agent402
npm install
FREE_MODE=true npm start          # → http://localhost:3000  (HTTP API + /mcp)
bash
# try a tool over HTTP - no auth in free mode
curl -s -X POST localhost:3000/api/hash -H 'content-type: application/json' \
  -d '{"text":"hello world","algo":"sha256"}'

4. One-click deploy to Railway (full self-hosted instance - adds optional Postgres + Redis plugins for analytics + response caching):

Deploy on Railway

Boots straight from the repo's railway.toml + Dockerfile. Optional plugins are auto-detected via env: add Redis → REDIS_URL enables the upstream response cache (X-Cache: hit|miss), add Postgres → DATABASE_URL enables the public /api/analytics dashboard and the tollbooth waitlist. No env vars required to boot in free mode.

What's in the catalog (500+ tools)

Every tool earns its place: deterministic, tested against its own example on every CI run, priced to market, settled on-chain. CI holds a 400-entry catalog floor and verifies the “500+” claim against the running catalog (scripts/sync-count.js --check). The catalog grows only when a tool is worth calling.

Examples
Browser & webrender (headless Chromium, executes JS), screenshot, extract (article→markdown), meta
Live search & answerssearch (real web index), answer (web answer with citations), search-news/search-images/search-videos variants, search-suggest, multi-search
PDFs & mediapdf-to-markdown, pdf-merge, pdf-extract-pages, pdf-rotate, images-to-pdf, audio-convert, audio-normalize (EBU R128, real ffmpeg)
Imagesimage-resize, image-convert, image-thumbnail, barcode-decode (jimp/zxing, pure-CPU)
OCRimage-ocr (text out of any image - pure-CPU, no model)
Geogeo-distance (haversine, pure-CPU), geocode, reverse-geocode, place-search, geo-lookup
Live datafx-rate (ECB), barcode-lookup (Open Food Facts), gov-data (data.gov), weather-forecast/weather-alerts, earthquakes (USGS)
Finance & cryptostock-quote/stock-history (Databento, four-venue consolidation), crypto-price/crypto-market/crypto-history/crypto-trending/crypto-global (CoinGecko)
Crypto derivatives & optionsperp-markets, perp-funding, perp-funding-screener, perp-basis, perp-open-interest, perp-klines, perp-orderbook (live perpetuals: mark/oracle price, funding, OI, candles, depth); options-summary, crypto-options-chain, options-ticker, options-volume (options book, IV and greeks, onchain options volume) - $0.002 to $0.005 a call, no exchange account
DeFi & stablecoinsdefi-yields (screen pools by chain, project, TVL and stablecoin-only), defi-yield-history, defi-protocols, defi-protocol, defi-chains, defi-chain-tvl-history, defi-fees, defi-dex-volume, stablecoins, stablecoin-supply-history - $0.001 to $0.003 a call
Solana token intelsol-token-safety (authorities, liquidity, holder concentration, graded), sol-token-report (full risk write-up), sol-token-holders, sol-token-pairs, sol-token-search, sol-trending, sol-price, sol-swap-quote, sol-token-lookup - the due-diligence pass an agent needs before it touches a mint
Crypto market coveragecrypto-news, crypto-indicators (RSI, MACD, moving averages, computed here), crypto-market-pulse, coin-profile, coin-history, coin-ohlc, coin-market-chart-range, coin-categories, coin-price-by-contract (price by token ADDRESS, no coin id needed), global-defi, exchanges, exchange-tickers, exchange-rates, coin-search, coins-list - plus tokenized real-world assets from the same CoinGecko key: rwa-list, rwa-markets, rwa-asset, rwa-issuers, rwa-issuer (tokenized stocks, ETFs and commodities with onchain market data and the issuers behind them)
Indexed chain dataasset-transfers (filtered transfer history), token-balances, token-allowance, tx-receipt (decoded transfers), block-receipts, token-price-history - indexed reads across the major EVM chains, no node and no key of your own
Farcaster socialfc-cast-search, fc-channel-feed, fc-trending, fc-user-casts, fc-cast, fc-cast-replies, fc-channel, fc-user-search, fc-cast-metrics - search, feeds and engagement metrics on the onchain social graph
Site crawlingsite-map (enumerate a site's URLs) and site-crawl (breadth-first crawl to clean markdown, robots-respecting, hard page/depth/time budgets) - the deterministic pair behind any "read this whole site" task
Macro (FRED + more)yield curve, treasury, fiscal, Fed funds, CPI, unemployment, Sahm rule, ECB FX, World Bank, FRED bulk release observations
SEC EDGARticker→CIK, filing list, 10-K/10-Q text, XBRL frames, insider transactions, 13F holdings, IPO calendar, full-text search
Finished reports (cited)research/research-pro/research-max (grounded deep research), market-brief, dossier/dossier-max (company due diligence), fund-report/fund-report-max (13F portfolio), domain-audit/domain-audit-pro (graded security + deliverability), recall-report (FDA), insider-report (Form 4 flow), token-risk/token-risk-pro (on-chain contract risk), filing-report (latest SEC filing), token-brief (Solana mint due diligence), ticker-pack (dossier + insider flow + holders), ipo-report (S-1 + 424B4 digest, deterministic) - $0.05 to $2.00 per report over x402 / MPP, or $2 to $5 by card at /reports; see the /v1 table below
Network truthdns, dns-lookup, tls-cert, whois, http-check, robots-check, email-validate, ip-info
Crypto & paymentsusdc-balance, tx-status, gas-estimate, ens-resolve, x402-quote, x402-verify, transfer-authorization - non-custodial, multi-chain (Base/Polygon/Arbitrum/Optimism/Ethereum)
Agent memorywallet-keyed KV + TTL, atomic counters, cross-wallet grants, hash-chained audit log, similarity recall
Stats & forecastingstats-summary, correlation, linear-regression, moving-average, outliers; forecast-naive, forecast-ses, forecast-holt, forecast-holt-winters + forecast-eval (MAPE/RMSE backtest)
Finance mathblack-scholes (option pricing + greeks), bond-price/bond-ytm, cagr, sharpe-ratio, annuity, npv/irr, compound-interest, loan-payment/amortization, break-even, effective-annual-rate (pure-CPU, deterministic)
Compressiongzip/gunzip, brotli-compress/brotli-decompress, compress-compare (algorithm shootout, pure-CPU via node:zlib)
HTML extractionhtml-select (CSS query), html-table, html-strip, html-links, html-meta - deterministic counterpart to extract
Network opsdns-lookup, dns-propagation, spf-check/dmarc-check/dkim-lookup, email-deliverability; cert-transparency, http-headers (security audit), tech-stack, asn-info (IP geo)
Chain readsblock-number, chain-info, block-info, contract-code, erc721-owner, event-logs - keyless JSON-RPC reads with multi-endpoint failover on Ethereum/Base/Polygon/Arbitrum/Optimism, from $0.001
SQL policysql-guard ($0.004 - pass/warn/block verdict with named risks on a SQL statement, plus an Ed25519 execution certificate when a signing key is configured), sql-cert-verify ($0.001 - verifies that certificate against the exact statement)
x402 seller intelligenceThree rungs on the same question, cheapest first. seller-trust (GET /api/x402/seller-trust, $0.005) - the router's gate field by field: indexed, manifest parses, chains advertised, settled calls observed, would we spend buyer money there. seller-dossier (POST /api/seller-dossier, $0.05) - the assembled record: every price with its provenance, advertised wallets against the wallets actually paid, settlement evidence per source, the dispatch verdict per chain with its reason, and what happened the times our router paid it. seller-payability (POST /api/seller-payability, $0.10) - buys one real call right now and reports every leg, including whether the accept's EIP-712 domain matches the token it names. The first two are offline reads of what we already know; the third spends USDC to find out
200+ pure-CPU utilitieshashing, JWT, base58, JSON⇄CSV/YAML, token-count, text-chunk, json-validate, text stats, cron math, validators, unit conversions across 13 categories (one parametric tool)

Full schemas live in /openapi.json; a machine-readable catalog is at /api/pricing and /llms.txt. Don't know which tool you need? /api/find?q=<task> resolves a task description to the right tool - route, price, schema, and a ready example - so an agent skips the token-heavy "search around to find a tool" step.

LLM gateway (/v1) - chat, embeddings, rerank, images, speech & finished reports, pay per call

Point any OpenAI SDK at base_url = https://agent402.tools/v1 and pay per call in USDC over x402 or MPP - no API key, no signup, no account (or pay by card with a prepaid credits key, see For humans):

EndpointPriceServes
POST /v1/nano/chat/completions$0.003nano models - priced for high-frequency agent loops
POST /v1/auto/chat/completions$0.01no model needed - deterministic eval-ranked routing (code / reasoning / long / general), optional quality: fast | balanced | best at the same price, decision disclosed via agent402_router
POST /v1/chat/completions$0.02budget/mid models (gpt-4o-mini, claude haiku, gemini flash, deepseek, llama…)
POST /v1/pro/chat/completions$0.10mid-frontier (gpt-4o, gpt-4.1, claude sonnet, gemini pro, grok)
POST /v1/premium/chat/completions$0.50frontier (gpt-5 and gpt-6 astra, o3 and o4-mini, claude opus and claude fable 5.1)
POST /v1/grounded/chat/completions$0.03the auto router plus a live web search on every call - answers carry OpenAI-wire url_citation annotations; never cached
POST /v1/{nano,auto,pro,premium}/messages, POST /v1/messagestier pricethe Anthropic Messages wire on every tier (same allowlist, caps and failover as the chat route); effort (low to max) is the depth control on Claude 4.7+, older Claude takes thinking.budget_tokens
POST /v1/{nano,auto,pro,premium}/responses, POST /v1/responsestier pricethe OpenAI Responses wire on every tier (function tools only, no server state)
POST /v1/embeddings$0.002OpenAI embeddings, batch up to 64 inputs - identical repeats are free (deterministic output, cache default-on)
POST /v1/rerank$0.002Cohere-compatible rerank ({query, documents[], top_n}), up to 50 documents, cache default-on
POST /v1/images/generations$0.08image generation (Gemini 2.5 Flash Image) - OpenAI images wire, inline base64 out
POST /v1/images/fast$0.02budget text-to-image, same OpenAI images wire, about two seconds a picture
POST /v1/images/pro$0.05higher-fidelity text-to-image, one picture a call
POST /v1/videos/generations$0.20text-to-video: one silent 4-second 720p clip, MP4 inline base64, 16:9 or 9:16
POST /v1/audio/speech$0.06text-to-speech, OpenAI audio.speech.create() wire - up to 2,000 chars in, raw mp3 (default) or pcm bytes out, five-model failover chain

Streaming (stream: true), full tools/function-calling passthrough, an opt-in prompt cache on the chat tiers (cache: true → byte-identical repeats free for 10 minutes), upstream failover chains that end in a canary-proven model, and a free GET /v1/models listing every model with its tier and caps. A real-money canary buys from every one of these surfaces daily - streaming, routing disclosure, and both cache behaviors included.

Finished report products live on the same /v1 prefix: one paid call returns a complete, cited report (JSON, with a sources appendix) rather than a raw model turn. Every report is grounded in primary data the server fetches itself (EDGAR filings, openFDA, DNS/TLS probes, on-chain reads, a live web search) before synthesis; ipo-report is fully deterministic (no model at all):

EndpointPriceReport
POST /v1/research · /v1/research/pro · /v1/research/max$0.60 · $0.85 · $1.10deep research report ({query}) - grounded multi-search, rerank, cited synthesis
POST /v1/research/market-brief$0.85market / competitor brief ({query})
POST /v1/dossier · /v1/dossier/max$0.85 · $1.10company due-diligence dossier ({ticker}) - filings, insider flow, web
POST /v1/fund · /v1/fund/max$0.60 · $0.85fund portfolio report from the latest 13F ({manager}) - bought/sold last quarter
POST /v1/domain-audit · /v1/domain-audit/pro$0.60 · $0.85graded domain security + deliverability audit ({domain})
POST /v1/recall-report$0.60FDA recall report, drug/food/device ({query})
POST /v1/insider-report$0.60insider flow report from parsed Form 4 filings ({ticker})
POST /v1/filing-report$0.85latest SEC filing read and summarized with the facts that moved ({ticker})
POST /v1/token-brief$0.60Solana token due-diligence brief from on-chain and market evidence ({mint})
POST /v1/ticker-pack$2.00one ticker, three reports: dossier, insider flow and 13F holders
POST /v1/token-risk · /v1/token-risk/pro$0.60 · $0.85token and contract risk report from on-chain evidence ({address, chain})
POST /v1/ipo-report$0.05IPO pipeline digest, S-1 + 424B4 from EDGAR full-text search ({days, keyword}), deterministic

Reports are wallet-only (x402 / MPP / prepaid credits, never proof-of-work) and take a few minutes to generate. The same reports are sold to people by card at agent402.tools/reports for $1, or $2 for the three biggest. The card price includes payment processing; an agent paying per call over x402 or MPP pays the lower tool price for the same report.

Two companion tools close the loop: POST /api/route/execute ($0.01, with execute-plus $0.05 and execute-max $0.55 tiers for pricier tools) resolves a task description to the best tool and runs it in one paid call, including, with include:"external", tools sold by other x402 sellers (it routes on proven on-chain settled volume, with one exception - a Solana seller with no history yet is tried only after every proven candidate, under a small per-call ceiling, and flagged unproven on the receipt - pays them on your behalf on the chain you paid on - Base or Algorand - and relays the result; see the Smart Order Router guide), and POST /api/my-usage ($0.005) returns the paying wallet's own purchase history - no wallet parameter; the x402 payment is the identity, so nobody can read another wallet's profile.

For humans: reports, monitors and prepaid credits

The same catalog has a card-paying front door (Stripe Checkout; the operator enables it with STRIPE_SECRET_KEY, otherwise these pages simply do not mount):

PageWhat you get
agent402.tools/reportsBuy any finished report from the table above by card (POST /api/buy) for $2 to $5 (the deepest tiers and the ticker pack sit at the top of that range; current prices on the page), delivered at /r/<session> - no wallet, no account. The card price includes payment processing; an agent paying per call pays the lower tool price for the same report. A report is generated only against a Stripe-verified paid session, once; a failed generation is refunded automatically.
agent402.tools/monitors$5/month subscriptions that re-run a report when something changes and email you: domain security monitor (free daily re-probe, full paid re-run on a security change, a certificate inside 14 days of expiry, or every 30 days), SEC filing watch (new filing), Solana token safety watch (changed safety facts), fund 13F watch (new filing), FDA recall watch (new recall number), insider flow watch (new Form 4), IPO pipeline watch (weekly digest). Reports land at /m/<id>; manage or cancel through the Stripe Customer Portal at /monitors/manage.
agent402.tools/creditsPrepaid credits in $20 / $50 / $100 packs. You get one a402_… key (shown once on the thanks page and emailed); send it as Authorization: Bearer a402_… on any priced route and the call is paid from the balance - debited only on a successful response, integer micro-dollars so sub-cent prices are exact, never expires. GET /api/credits/balance (same header) reads the balance; a 402 with {reason, balanceUsd, topup} means insufficient. Identity-bound tools (/api/memory*, my-usage) refuse credits because the payment is the identity there; pay those over an x402 rail.

The credits key is understood by the SDKs: agent402-mcp reads AGENT402_CREDITS_KEY and agent402-client takes { creditsKey }, so a wallet-less agent can still call every wallet-only tool by card.

Skill packs - 70+ multi-tool workflows

For jobs that span several tools - "audit a domain", "diagnose deliverability", "work up a time-series", "peel an opaque blob" - Agent402 ships curated skill packs: ordered, typed sequences of tool calls with a Claude-ready prompt template. Callable as MCP prompts (prompts/list → prompts/get { name, arguments }) or plain HTTP at GET /api/skill-packs/{slug}/prompt (every slug is listed in the free JSON index at /api/skill-packs.json). A task-shaped query to catalog.search (the hosted connector's search tool; the older search_tools name still works as an alias) returns the matching pack alongside individual tools.

Featured packChainsUse it for
security-auditcert-transparency · dns-lookup · spf-check · dmarc-check · http-headers · tls-cert · tech-stackDomain security posture
trend-analysisstock-history · fred-series · stats-summary · moving-average · linear-regression · outliers · correlation · forecast-evalQuant workup on any time series
structured-scrapeextract · render · html-select · html-table · html-strip · html-links · html-metaDeterministic scraping decision tree
decode-blobjwt-decode · gunzip · brotli-decompress · base64 · hex · json-format · hashIdentify and peel any opaque string
forecasting-bake-offstock-history · fred-series · forecast-eval · forecast-naive · forecast-ses · forecast-holt · forecast-holt-wintersRank 4 forecasters by RMSE, pick the winner
document-intelpdf-info · pdf-to-markdown · pdf-extract-pages · image-ocr · barcode-decode · pdf-merge · images-to-pdfPDF/OCR/barcode pipeline
status-snapshotdns-lookup · http-check · http-headers · tls-cert · robots-checkOne-shot service-health sweep

All 100+ packs at /skills · JSON index at /api/skill-packs.json · on MCP the packs appear under prompts/list so any MCP-aware client picks them up automatically.

x402 Index - Find · Route · Leaderboard

Agent402 is also the open routing + ranking layer for the whole x402 ecosystem: it crawls public x402 sellers (the local catalog + an auto-discovered set from the Coinbase CDP Bazaar, refreshed hourly) and exposes them through three free surfaces - same logic as /api/find: discovery primitives shouldn't cost money.

SurfaceWhat
GET /api/find?q={task}Resolve a task to the best-matching tools (route, price, schema, ready example)
POST /api/routeSmart Order Router: { query, top, include } → ranked tools across sellers (match score, then health, then price). include=external excludes Agent402 itself
GET /api/leaderboardOn-chain ranking of every x402 seller by Base USDC settled volume (callsSettled, totalUsd, uniqueBuyers per seller). Pipeline: Bazaar → eth_getLogs → per-call ceiling → aggregate. Hourly snapshot
/marketplacePublic HTML dashboard: every seller, tool count, network, last-fetched, rolling health
GET /api/indexJSON snapshot of the same data (totals, per-seller health/routable flags)
/stellar · /algorandPer-chain marketplace pages: sellers and tools settling on that rail specifically
bash
# "I need an OCR tool - find me the cheapest healthy one anywhere on x402"
curl -X POST https://agent402.tools/api/route \
  -H 'content-type: application/json' \
  -d '{"query":"ocr image to text","top":5}'

# "Who are the most-used x402 sellers right now? (on-chain proof, not self-reports)"
curl 'https://agent402.tools/api/leaderboard?top=25&include=external'

Dispatch is labelled, never implied: every /api/route row and /api/index seller carries routerDispatchEligible and routerDispatchReason (crawl_failed, network_unknown, settlement_required, settlement_checked_at_pay_time, eligible, ...); executeVia appears only on a row the router will pay right now (executeViaCallableNow: true), otherwise the tier moves to executeViaWhenEligible. routable is crawl readiness, never a promise to pay. A manifest-priced route is also read live once and then weekly, so the chains its 402 actually offers reach the row even when the seller's manifest lags.

Health-aware: sellers whose last few crawls errored are excluded from the router (a buyer routed to a dead seller wastes money). Healthier sellers also break ties at equal match score and price, so flaky-but-cheap sellers lose to reliable ones. Brand-new sellers (no history yet) get the benefit of the doubt.

Operators get 3-rail attribution on the dashboard (/api/stats, /__operator, token-gated - it answers 404 without the operator token): USDC vs. proof-of-work vs. heartbeat-probe traffic are counted separately - and the heartbeat rail is gated on a POW_SECRET-signed token (not a spoofable User-Agent), so the operator view reflects real external demand.

For API sellers: /sell is the front door - list an existing x402-speaking API on the index for free with POST /api/index/register (health-routed, 0% take, self-serve, no signup), or install agent402-tollbooth to put a pay-per-crawl gate in front of a site that isn't x402-native yet.

From code, the agent402-client npm package wraps all of this - find() a tool, then call() it, paying automatically (a built-in proof-of-work for free tools, your x402 wallet for paid ones), with caching and idempotent retries:

bash
npm install agent402-client
js
import { Agent402 } from "agent402-client";
const a = new Agent402();                       // free tier (proof-of-work)
const out = await a.call("hash", { text: "hello world", algo: "sha256" });

// no wallet? pay wallet-only tools by card with a prepaid credits key from /credits
const b = new Agent402({ creditsKey: "a402_..." });

Plug into your agent framework (zero-dep adapters)

If you're already on one of the stacks below - OpenAI, Anthropic, the Vercel AI SDK, LangChain (JS or Python), LlamaIndex, Strands, Google ADK, or the OpenAI Agents SDK - skip the wiring: there's a drop-in package that turns the Agent402 catalog into native tool objects for your framework, with payment handled underneath (proof-of-work for free tools, x402+USDC when you pass an @x402/fetch):

StacknpmReturns
OpenAI function-calling (chat.completions / Assistants v2 / Responses)agent402-openai-toolstools[] for tools: param
Anthropic Messages API (tool_use)agent402-anthropic-toolstools[] for tools: param
Vercel AI SDK (streamText / generateText)agent402-ai-sdkRecord<name, tool()>
LangChain JS / LangGraphagent402-langchainDynamicStructuredTool[]
LlamaIndex TSagent402-llamaindexFunctionTool[]
Strands Agents (AWS Bedrock AgentCore)agent402-strandsStrandsTool[] for new Agent({ tools })
Google ADK (Agent Development Kit)agent402-google-adkFunctionTool[] for ADK agents
OpenAI Agents SDKagent402-openai-agentsAgent tools for @openai/agents
Coinbase AgentKit (CDP, Privy, ZeroDev, viem wallets)agent402-agentkitan ActionProvider for AgentKit.from({ actionProviders })
LangChain Python / CrewAIagent402-langchain (PyPI)StructuredTool[] from Agent402Toolkit.get_tools() - four meta-tools (find / route / call / about), not one per slug
js
// e.g. OpenAI - every adapter has the same surface.
import OpenAI from "openai";
import { agent402Tools } from "agent402-openai-tools";

const openai = new OpenAI();
const { tools, execute } = await agent402Tools({ slugs: ["extract", "hash", "render"] });
const res = await openai.chat.completions.create({ model: "gpt-4o-mini", tools, messages: [...] });
// when the model returns a tool call: await execute(call.function.name, JSON.parse(call.function.arguments));

Already a Claude/MCP user? agent402-mcp is still the better path - paste https://agent402.tools/mcp into your client. The adapters are for direct API integrations where MCP isn't available. Sources: adapters/.

OpenClaw agents: drop in skills/openclaw/agent402/SKILL.md - teaches an OpenClaw agent to find, pay (x402 USDC on Base, eleven other chains accepted, or free proof-of-work), and call any of the 500+ tools and packs.

Add your own tool (~15 lines)

A tool is just an object in a kit array. Drop this into any file in src/tools/ (e.g. append to AGENT_TOOLS in src/tools/agent-kit.js) and it's live - routed, schema-published, MCP-exposed, and covered by the "every tool answers its own example" CI check:

js
{
  route: "POST /api/reverse",
  name: "Reverse text",
  slug: "reverse",
  category: "text",
  price: "$0.001",                       // free via proof-of-work for pure-CPU tools
  description: "Reverse a string. Example: {\"text\":\"abc\"} → {\"reversed\":\"cba\"}",
  discovery: {
    inputSchema: { properties: { text: { type: "string" } }, required: ["text"] },
    example: { text: "abc" },            // CI calls this and checks it works
  },
  handler: (input) => {
    if (typeof input.text !== "string") { const e = new Error('"text" required'); e.statusCode = 400; throw e; }
    return { reversed: [...input.text].reverse().join("") };
  },
}

That's the whole contract: handler(input) returns a JSON-serializable object (or throws an Error with .statusCode for a 4xx). Pure-CPU tools are automatically free-via-proof-of-work; tools that hit the network or disk stay wallet-only. See CONTRIBUTING.md for the full walkthrough.

Optional: charge per call with x402

The same server can require payment per call - useful if you host a public instance. Payments are the default posture: a bare npm start fails closed, exiting unless WALLET_ADDRESS is set - running without payments is the explicit opt-in (FREE_MODE=true npm start). To charge, set WALLET_ADDRESS

  • CDP facilitator keys (free at portal.cdp.coinbase.com) and agents pay in USDC on Base (or Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Stellar, Algorand - or USDG on Robinhood Chain via PAYMENT_NETWORKS=…,robinhood + ROBINHOOD_FACILITATOR_URL) via standard x402 clients:

Every 402 is valid under @x402/core's own schemas (at most five tags, CI-checked on all routes) and carries a typed output schema twice: in the bazaar discovery extension and as accepts[0].outputSchema on the first accept, so a client that reads the spec's field sees the response shape before paying.

js
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/extract", {
  method: "POST", headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ url: "https://example.com/article" }),
});

MPP dual-stack. The paywall also speaks MPP (Machine Payments Protocol - the IETF-track Payment HTTP auth scheme from tempoxyz/mpp): the same 402 carries a WWW-Authenticate: Payment challenge, Authorization: Payment credentials settle, and settled responses return a Payment-Receipt. MPP has two methods here: evm settles identically to x402 (EIP-3009 USDC, same facilitator, same price); tempo settles natively via Tempo's own relay (TIP-1034/TIP-20, no x402 facilitator involved) - a genuinely separate settlement path, set TEMPO_API_KEY to enable it. An mppx client works out of the box for either method; set MPP_SECRET_KEY to enable the shim on your own instance. Same URL either way - the buyer's client picks the dialect.

Agents without a wallet still use every pure-CPU tool by solving a single-use sha256 proof-of-work (sub-second; the MCP servers do it automatically). Details: wiki: Paying with x402 · Paying with MPP · Paying with Compute.

Why pay here - seven things that are different

Every claim links to the surface that proves it (the one-page version: agent402.tools/why).

  1. Pay for what the model used, with the ceiling quoted first. The metered gateway (POST /v1/metered/chat/completions) quotes each 402 from the request's own body; a wallet paying upto settles actual usage under that ceiling, provider discounts such as prompt-cache reads pass through at cost, and every settled x402 or MPP response carries a receipt.
  2. A failed call is not charged, and the response proves it. Settlement runs after the handler and an error status cancels it, so a response with no payment receipt, or a receipt marked success:false, moved no money; a retry carrying the same Idempotency-Key and the same payment credential replays the paid answer instead of paying again; the one residual case (a settled receipt on an error response) is detected by our own alarm and recorded as a debt in a refund ledger, never written off silently.
  3. One key buys everything. The same wallet or credits key pays for five LLM tiers on three wires (OpenAI chat, OpenAI Responses, Anthropic Messages), embeddings, rerank, images, video, speech, transcription, grounded answers with citations, 500+ tools, wallet-keyed memory and finished reports.
  4. No wallet required. Prepaid credits by card, cards over MPP and card checkout for reports sit beside USDC or USDG on twelve chains and native MPP on Tempo.
  5. Finished work, ready to use. Dossiers, insider flow, 13F holdings, filing reports, IPO digests, domain audits, token risk, deep research, market briefs, recall watch and a LinkedIn article package, grounded in primary sources with a data appendix; monitors probe daily for free and re-run the paid report when the facts change.
  6. We buy on your behalf. POST /api/route/execute resolves a task to the best seller across the ecosystem, pays them from our wallet and relays the result under one receipt. Sellers are routable on proven on-chain settlement, with one bounded exception for a zero-history Solana seller under a small per-call ceiling.
  7. Everything is checkable. Uptime observed by two probes outside production (/status), a real-money canary through every rail daily, transactions published by rail and wire (/revenue), open source and self-hostable. The deterministic tools run no model; the ones that do are named (the /v1 tiers, the report products, and the image, speech, transcription, embedding and AI-answer tools). The operator is identified on-chain: Agent402 is agent 94639 in the ERC-8004 Identity Registry on Base, resolving to /.well-known/agent-registration.json, with an A2A agent card at /.well-known/agent-card.json.

Why it's solid

  • Everything is tested - CI calls all 500+ tools with their own documented examples and blocks the release on any failure. Two independent probes outside production watch the live instance (one every 5 minutes, on separate infra from the other), and what they observe is public at /status - where a day with no observation reads "no data", never uptime, because an outage is exactly when a probe cannot report.
  • Hardened - connect-time SSRF guard on every URL tool (DNS-rebind safe), proof-of-work that's signed/single-use/slug-scoped, per-IP rate limits, and security headers. See wiki: Security Model.
  • Deterministic utilities - no model in the serving path of the utility tools, so the same input always gives the same output, with full OpenAPI schemas.
  • Auditable, on-chain revenue - every paid call settles in USDC to agent402.base.eth (a Base name resolving to the public receiving wallet) - verifiable by anyone on Basescan; live counts at /api/stats.
  • AGPL-3.0 licensed, self-host-friendly - clone it, strip what you don't need, add what you do.

Agent402 in the x402 ecosystem

x402 is an open payment protocol built on HTTP 402 Payment Required for machine-to-machine, pay-per-call payments in stablecoins (USDC). Most projects in the space are the protocol + SDKs, a starter template, or a payment facilitator. Agent402 is the applied layer - a ready-to-run x402 server that already speaks the protocol and ships 500+ working tools, so you don't have to build the catalog yourself.

  • Want the protocol or an SDK? → coinbase/x402.
  • Want a server you can run today that actually does things over x402 + MCP? → you're here.
  • Self-hostable, deterministic, free via proof-of-work without a wallet, and non-custodial on the payment tools (your agent signs with its own key and we hold no crypto balance for it; prepaid card credits are a held balance and are named as one).

Listed in the official MCP Registry and discoverable in the Coinbase x402 Bazaar.

Works with AWS Bedrock AgentCore Payments out of the box - AgentCore orchestrates x402, which is the protocol Agent402 already speaks. Point the AgentCore Gateway at https://agent402.tools/mcp for all 500+ tools, or use agent402-strands for a curated subset inside a Strands agent. Five-minute recipe: wiki: AWS Bedrock AgentCore.

Tollbooth - pay-per-crawl for your site (the other side of x402)

Charge AI crawlers that hit your site. Humans browse free; known bots get 402 Payment Required and can pay in USDC over x402 - or solve a free proof-of-work. The open, crypto-native answer to Cloudflare's closed pay-per-crawl: no CDN lock-in, no Stripe, no merchant-of-record, no signup.

Runs as Express middleware, a Next.js / Vercel Edge middleware, a Cloudflare Worker, a reverse proxy, or a WordPress plugin (beta). Drop-in templates in tollbooth/deploy/. One Web-Crypto core powers all of them. Since 0.9.x the gate also speaks MPP natively: hand it your @x402/express middleware (createTollbooth({ x402 })) and it mints WWW-Authenticate: Payment evm challenges from the same 402, or give it a Tempo relay key (createTollbooth({ tempo: { apiKey, recipient, currency, splits } })) and it settles MPP tempo/charge credentials on Tempo with optional split payments, with no x402 middleware at all. Since 0.10.0 the edge build speaks MPP too: with secret, payTo and your verifyX402 callback set, every 402 carries a WWW-Authenticate: Payment challenge beside the x402 quote, and an Authorization: Payment credential (HMAC-bound to that challenge, unexpired, minted for that exact resource) is translated to PAYMENT-SIGNATURE and handed to the same verifier.

Repository map

PathWhat
src/server.jsExpress app + the tool catalog (routes, prices, schemas, discovery)
src/tools/The tool kits (web, PDF, media, images, live data, crypto/x402, 200+ pure-CPU utilities) - add tools here
src/mcp-http.jsHosted MCP connector (streamable HTTP, authless free tier)
src/pow.jsProof-of-work tier (signed, single-use, slug-scoped challenges)
src/payments.jsOptional x402 v2 wiring: USDC on Base/Solana/Polygon/Arbitrum/Monad/Celo/Avalanche/Sei/Optimism/Stellar/Algorand

Використовуйте MCP Agent402 з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Agent402 ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Agent402 як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Agent402.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "agent402": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Agent402, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Agent402.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Agent402?
Agent402
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Agent402.

Поширені запитання

Для чого використовується сервер MCP Agent402?

Agent402 — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Agent402 з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Agent402 з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Agent402 із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Agent402, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Agent402 до TypingMind?

Agent402 працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Agent402 у TypingMind?

Agent402 надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Agent402?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Agent402 потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇