1,080+ pay-per-call web tools for AI agents over x402 — USDC on Base or proof-of-work
claude mcp add agent402 -- npx -y agent402-mcp{
"mcpServers": {
"agent402": {
"command": "npx",
"args": ["-y", "agent402-mcp"],
"env": {
"AGENT_KEY": "<agent_key>"
}
}
}
}AGENT_KEYResumen de MCP Servers
# Agent402 — pay-per-call web tools for AI agents (x402 + MCP)
[](https://agent402.tools)
[](https://www.npmjs.com/package/agent402-mcp)
[](https://github.com/MikeyPetrillo/Agent402/actions/workflows/deploy.yml)
[](https://github.com/MikeyPetrillo/Agent402/actions/workflows/heartbeat.yml)
[](LICENSE)
**A live node in the machine-to-machine economy: 1,000+ web tools that autonomous
agents pay for per call — USDC on Base via the [x402 protocol](https://x402.org),
or free with proof-of-work.** No humans, no signups, no API keys: an agent calls
an endpoint, gets an `HTTP 402 Payment Required` quote, settles from its own
wallet (or with a fraction of a second of CPU), and gets the result.
**The payment _is_ the identity.**
🟢 **Live at [agent402.tools](https://agent402.tools)** · 📖 **[Full documentation in the wiki](https://github.com/MikeyPetrillo/Agent402/wiki)** · 📊 **[Live stats + revenue wallet](https://agent402.tools/api/stats)**
## Try it in 30 seconds
**In Claude (claude.ai → Settings → Connectors → Add custom connector):**
```
https://agent402.tools/mcp
```
**In Claude Code / any MCP client** (full catalog, payment handled underneath):
```bash
claude mcp add agent402 -e AGENT_KEY=0x... -e AGENT402_BUDGET=1.00 -- npx -y agent402-mcp
```
**Over plain HTTP, no wallet, no install** — watch an autonomous buyer discover
the catalog, get quoted over 402, pay with compute, and use the result:
```bash
curl -s https://agent402.tools/demo.js -o demo.js && node demo.js
```
**With Stripe's [`purl`](https://github.com/stripe/purl)** (we're interop-tested
against it in CI, real settlement included):
```bash
purl "https://agent402.tools/api/convert/kilometers-to-miles?value=42"
```
## What's in the catalog (~1,083 tools)
| | Examples | Price |
|---|---|---|
| **Browser & web** | `render` (headless Chromium, executes JS), `screenshot`, `extract` (article→markdown), `meta` | $0.002–0.02 |
| **Live search** | `search` — paid web index, the wallet is the credential | $0.01 |
| **PDFs & media** | `pdf-to-markdown`, `pdf-merge`/`extract-pages`/`rotate`, `images-to-pdf`, `audio-convert`, `audio-normalize` (EBU R128, real ffmpeg) | $0.005–0.02 |
| **Agent memory** | wallet-keyed KV + TTL, atomic counters, **cross-wallet grants**, hash-chained audit log, similarity recall | $0.002–0.003 |
| **Network truth** | `dns`, `tls-cert`, `whois`, `http-check`, `robots-check`, `email-validate`, `ip-info` | $0.002–0.005 |
| **Open data** | `gov-data` (data.gov), `weather-alerts`, `earthquakes` (USGS) | $0.003 |
| **~1,040 pure-CPU utilities** | hashing, JWT, base58, JSON⇄CSV/YAML, text stats, cron math, validators, ~970 unit conversions | $0.001 · **free via proof-of-work** |
Everything is deterministic — **no LLM in the serving path** — with full schemas
in [`/openapi.json`](https://agent402.tools/openapi.json) and a machine-readable
catalog at [`/api/pricing`](https://agent402.tools/api/pricing) /
[`/llms.txt`](https://agent402.tools/llms.txt). Every endpoint is re-tested
against its own documented example before every deploy.
## How agents pay
Three ways, all standard ([wiki: Paying with x402](https://github.com/MikeyPetrillo/Agent402/wiki/Paying-with-x402) · [Paying with Compute](https://github.com/MikeyPetrillo/Agent402/wiki/Paying-with-Compute)):
```js
// x402 v2 — any client works; this is @x402/fetch
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" }),
});
```
No wallet? The ~1,040 pure-CPU tools take a sha256 proof-of-work instead
(single-use, tool-scoped challenges — sub-second on any CPU). The MCP servers
solve it for you automatically.
## Verify, don't trust
Every claim here is machine-checkable:
- **Revenue is on-chain** — every paid call settles to the public wallet shown at [`/api/stats`](https://agent402.tools/api/stats); audit it on [Basescan](https://basescan.org/address/0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0#tokentxns).
- **Listed in the [official MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.MikeyPetrillo/agent402)** (`io.github.MikeyPetrillo/agent402`, with the hosted remote) and on [npm](https://www.npmjs.com/package/agent402-mcp).
- **Discoverable in the [Coinbase CDP x402 Bazaar](https://docs.cdp.coinbase.com/x402/docs/bazaar)** — the index agents browse for x402 services.
- **CI is public**: the full test gauntlet, a production heartbeat every 15 minutes, and interop runs against Stripe's x402 client.
- **A named maintainer** — most x402 sellers are anonymous wallets. This one is [Mikey Petrillo](https://github.com/MikeyPetrillo).
## Run your own
```bash
npm install
FREE_MODE=true npm start # demo mode, no payments
# or with payments: set WALLET_ADDRESS + CDP_API_KEY_ID/SECRET (free at portal.cdp.coinbase.com)
```
Deploying to Railway, the CI pipeline, the heartbeat watchdog, and the
persistence model are documented in
[wiki: Operations](https://github.com/MikeyPetrillo/Agent402/wiki/Operations);
the SSRF defenses and proof-of-work hardening in
[wiki: Security Model](https://github.com/MikeyPetrillo/Agent402/wiki/Security-Model);
the request path and design positions in
[wiki: Architecture](https://github.com/MikeyPetrillo/Agent402/wiki/Architecture).
## Repository map
| Path | What |
|---|---|
| `src/server.js` | Express app + the tool catalog (prices, schemas, discovery) |
| `src/payments.js` | x402 v2 wiring: USDC on Base, CDP facilitator, Bazaar discovery |
| `src/pow.js` | Proof-of-work tier (signed, single-use, slug-scoped challenges) |
| `src/mcp-http.js` | Hosted MCP connector (streamable HTTP, authless free tier) |
| `src/tools/` | The tool kits (web, PDF, media, gov data, ~1,040 pure-CPU utilities) |
| `mcp/` | The `agent402-mcp` npm package (stdio MCP server with spend controls) |
| `wiki/` | Source of truth for the [GitHub wiki](https://github.com/MikeyPetrillo/Agent402/wiki) (CI-synced) |
| `scripts/` | Tests, demos (`demo-payment.js`, `demo-coordination.js`), ops tooling |
MIT licensed. Issues and integration ideas welcome →
[github.com/MikeyPetrillo/Agent402/issues](https://github.com/MikeyPetrillo/Agent402/issues).
Lo que la gente pregunta sobre Agent402
¿Qué es MikeyPetrillo/Agent402?
+
MikeyPetrillo/Agent402 es mcp servers para el ecosistema de Claude AI. 1,080+ pay-per-call web tools for AI agents over x402 — USDC on Base or proof-of-work Tiene 1 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala Agent402?
+
Puedes instalar Agent402 clonando el repositorio (https://github.com/MikeyPetrillo/Agent402) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar MikeyPetrillo/Agent402?
+
MikeyPetrillo/Agent402 aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene MikeyPetrillo/Agent402?
+
MikeyPetrillo/Agent402 es mantenido por MikeyPetrillo. La última actividad registrada en GitHub es de today, con 0 issues abiertos.
¿Hay alternativas a Agent402?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega Agent402 en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/mikeypetrillo-agent402)<a href="https://claudewave.com/repo/mikeypetrillo-agent402"><img src="https://claudewave.com/api/badge/mikeypetrillo-agent402" alt="Featured on ClaudeWave: MikeyPetrillo/Agent402" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。