Agent402.Tools: pay-per-call web tools MCP Server
by mikeypetrilloio.github.MikeyPetrillo/agent402v0.13.11
Pay-per-call x402 tools and skill packs (headless browser, web search, OCR, wallet-keyed memory), plus a router that finds the cheapest healthy tool.
context tax
queued
security
queued
cold start
queued
freshness
Active1d ago
Install Agent402.Tools: pay-per-call web tools MCP server
Install in Claude Code
claude mcp add agent402 -e AGENT_KEY='<agent-key>' -e AGENT402_CREDITS_KEY='<agent402-credits-key>' -e SOLANA_AGENT_KEY='<solana-agent-key>' -- npx -y agent402-mcpInstall in Cursor
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<agent-key>",
"AGENT402_CREDITS_KEY": "<agent402-credits-key>",
"SOLANA_AGENT_KEY": "<solana-agent-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<agent-key>",
"AGENT402_CREDITS_KEY": "<agent402-credits-key>",
"SOLANA_AGENT_KEY": "<solana-agent-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"agent402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<agent-key>",
"AGENT402_CREDITS_KEY": "<agent402-credits-key>",
"SOLANA_AGENT_KEY": "<solana-agent-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<agent-key>",
"AGENT402_CREDITS_KEY": "<agent402-credits-key>",
"SOLANA_AGENT_KEY": "<solana-agent-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| AGENT_KEY | — | yes | Hex private key of an EVM wallet funded with USDC on any EVM rail the server offers (Base, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism) or USDG on Robinhood Chain; use SOLANA_AGENT_KEY for Solana. Stellar and Algorand are not signed by this package. Unset = proof-of-work mode (free pure-CPU tools). |
| AGENT402_BUDGET | — | — | Optional hard cap on total USDC spent per session (e.g. 1.00). Refused before any payment is signed. |
| AGENT402_MAX_PER_CALL | — | — | Optional max USD price for any single call (e.g. 0.01). |
| AGENT402_CREDITS_KEY | — | yes | Prepaid card-credits key (a402_...) already issued; new credits are not on sale. With it set and no wallet key, every tool except the wallet-scoped ones (memory, usage) is debited from the key; the list price is debited only on a successful call. |
| SOLANA_AGENT_KEY | — | yes | Optional base58 (or JSON byte-array) secret key of a Solana wallet funded with USDC on Solana. |
| AGENT402_NETWORKS | — | — | Optional: restrict and order the chains to pay on (e.g. "base,solana" or a CAIP-2 like eip155:4663). |
Remote endpoints
- streamable-http
https://agent402.tools/mcp
Freshness
Active — last maintenance signal 1d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 1d ago · GitHub
Latest release
2026-10-08 · 1d ago · GitHub · v2.6.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-08 · 1d ago · official registry · v0.13.11
FAQ
›How do I install the Agent402.Tools: pay-per-call web tools MCP server in Claude Code?
Run: claude mcp add agent402 -e AGENT_KEY='<agent-key>' -e AGENT402_CREDITS_KEY='<agent402-credits-key>' -e SOLANA_AGENT_KEY='<solana-agent-key>' -- npx -y agent402-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Agent402.Tools: pay-per-call web tools require an API key?
Yes. It expects AGENT_KEY, AGENT402_CREDITS_KEY, SOLANA_AGENT_KEY, of which 3 are secrets.
›Can I use Agent402.Tools: pay-per-call web tools as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Agent402.Tools: pay-per-call web tools in the official MCP registry?
Yes, as io.github.MikeyPetrillo/agent402.
Alternatives to Agent402.Tools: pay-per-call web tools
Other browser automation MCP servers.