HTTP 402 AI Tollbooth — a pay-per-call API tollbooth demo with free previews, Lightning Network settlement, and MCP server integration. Includes a runnable Node 22+ agent recovery sample.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/RobotFleet-HQ/http-402-ai-tollbooth-public{
"mcpServers": {
"http-402-ai-tollbooth-public": {
"command": "node",
"args": ["/path/to/http-402-ai-tollbooth-public/dist/index.js"]
}
}
}Resumen de MCP Servers
# HTTP 402 AI Tollbooth
> Agent-ready developer troubleshooting data, sold per request over Bitcoin Lightning.
**Live:** https://http-402-ai-tollbooth.rsaun-lightning.workers.dev
HTTP 402 AI Tollbooth gives developers and AI agents three useful records free, then unlocks complete structured datasets with a BOLT11 Lightning payment. There are no accounts, subscriptions, credit cards, or API keys.
This is a public, documentation and example repository. The production Worker implementation remains private and is not included here.
## Try it now
List the complete catalog:
```bash
curl -sS https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/api/catalog
```
Preview exactly three records without payment:
```bash
curl -sS https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/api/preview/api-error-fixes
```
Request the full product and receive an HTTP 402 Lightning challenge:
```bash
curl -i https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/api/data/api-error-fixes
```
The last command creates an invoice. Do not run it unless you intentionally want a payment challenge; simply requesting it does not spend sats.
## Why agents use it
- 203 products across DevOps, APIs, ML/AI, Web/Frontend, and Databases
- Entry, Standard, and Premium datasets with 50, 100, or 200 records
- Exactly three free records per product for try-before-you-buy discovery
- Stable `error_code`, `description`, and `programmatic_fix` fields
- HTTP 402 and Bitcoin Lightning payments without user accounts
- OpenAPI 3.1, MCP discovery metadata, and `llms.txt`
- Deterministic fallback generation for resilient dataset delivery
- Durable one-time redemption and replay protection
- Future x402 settlement is documented but remains disabled pending verification
## Architecture
```text
AI agent / developer
|
| HTTPS: catalog, preview, paid dataset
v
Cloudflare Worker
| | |
| | +--> Alby --> Bitcoin Lightning invoice
| |
| +--> Durable Objects --> atomic redemption + counters
|
+--> Workers KV --> invoice challenges + generated dataset cache
```
## Pricing
| Tier | Price | Records |
|---|---:|---:|
| Entry | 2,000 sats | 50 |
| Standard | 5,000 sats | 100 |
| Premium | 10,000 sats | 200 |
See [the pricing rationale](docs/PRICING.md), including the live-verified 2,000-sat receiving floor.
## How to pay
1. Request a paid product endpoint.
2. Receive `402 Payment Required` with a BOLT11 invoice and payment hash.
3. Pay the invoice in a Lightning wallet.
4. Retry the same endpoint with `X-Payment-Hash` and `X-Payment-Preimage`.
5. Receive the full dataset once; replayed proofs are rejected.
Never publish or share a payment preimage before using it for its intended redemption. Future Solana USDC/x402 support is disabled until its manual verification process is completed.
## Discovery documents
- [Smithery server card](docs/server-card.json)
- [OpenAPI 3.1 document](docs/openapi.json)
- [llms.txt](docs/llms.txt)
- [Billboard integration summary](BILLBOARD.md)
- [Official MCP Registry readiness](docs/MCP-REGISTRY-SUBMISSION.md)
## Integrations
- **MCP metadata:** tool descriptions for catalog, preview, and purchase discovery
- **MCP transport:** a live Streamable HTTP JSON-RPC endpoint at `/mcp` with four read-only tools
- **OpenAPI:** complete HTTP endpoint descriptions for agent frameworks
- **LLMs.txt:** concise machine-readable project and payment guidance
Connect an MCP client to `https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/mcp`. The server supports `list_products`, `preview_product`, `list_payment_methods`, and `buy_product`. The last tool only returns payment directions and an HTTP 402 challenge; it never pays an invoice or creates a purchase on the caller's behalf.
For a complete no-payment example, see [the Node agent recovery sample](examples/node-agent-recovery/).
## Runnable free sample
The sample shows how an agent can inspect malformed JSON, retry a transient `429` once after `Retry-After`, and safely stop when a response is not recoverable. It uses Node 22+ built-ins only:
```bash
cd examples/node-agent-recovery
npm test
npm start
```
The demo calls only the public three-record preview endpoint. It does not call a paid route, create an invoice, or automatically replay a payment proof.
## License
The documentation in this billboard repository is available under the MIT License. The private production source code is not covered by this repository or license.
Lo que la gente pregunta sobre http-402-ai-tollbooth-public
¿Qué es RobotFleet-HQ/http-402-ai-tollbooth-public?
+
RobotFleet-HQ/http-402-ai-tollbooth-public es mcp servers para el ecosistema de Claude AI. HTTP 402 AI Tollbooth — a pay-per-call API tollbooth demo with free previews, Lightning Network settlement, and MCP server integration. Includes a runnable Node 22+ agent recovery sample. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-07.
¿Cómo se instala http-402-ai-tollbooth-public?
+
Puedes instalar http-402-ai-tollbooth-public clonando el repositorio (https://github.com/RobotFleet-HQ/http-402-ai-tollbooth-public) 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 RobotFleet-HQ/http-402-ai-tollbooth-public?
+
Nuestro agente de seguridad ha analizado RobotFleet-HQ/http-402-ai-tollbooth-public y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene RobotFleet-HQ/http-402-ai-tollbooth-public?
+
RobotFleet-HQ/http-402-ai-tollbooth-public es mantenido por RobotFleet-HQ. La última actividad registrada en GitHub es del 2026-09-07, con 0 issues abiertos.
¿Hay alternativas a http-402-ai-tollbooth-public?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega http-402-ai-tollbooth-public 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/robotfleet-hq-http-402-ai-tollbooth-public)<a href="https://claudewave.com/repo/robotfleet-hq-http-402-ai-tollbooth-public"><img src="https://claudewave.com/api/badge/robotfleet-hq-http-402-ai-tollbooth-public" alt="Featured on ClaudeWave: RobotFleet-HQ/http-402-ai-tollbooth-public" 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.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
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!