Agent♥︎Age
Catalog

io.github.lonniev/tollbooth-sample

Official52 tools

by lonniev · Python

Educational Weather Stats MCP Service — Tollbooth DPYC monetization sample

io.github.lonniev/tollbooth-sample MCP Server

The io.github.lonniev/tollbooth-sample server is an Educational Weather Stats MCP Service reference implementation. It wraps the free Open-Meteo weather API and gates paid tool calls through the Tollbooth credit system using the @runtime.paid_tool() decorator. It is described as a Tollbooth DPYC monetization sample.

🛠️ Key Features

  • Open-Meteo weather API wrapper
  • Paid tool gating via @runtime.paid_tool()
  • Uses the Tollbooth credit system
  • Tool debits/rollback handled by OperatorRuntime
  • Balance warnings and constraint evaluation handled automatically

🚀 Use Cases

  • Building Tollbooth DPYC monetized API services
  • Creating paid, tool-based weather stats access
  • Using a template/tutorial-style reference for MCP services

⚡ Developer Benefits

  • Domain tools contain only business logic
  • Centralized monetization logic through OperatorRuntime
  • Reference implementation for integrating Lightning micropayments

⚠️ Limitations

  • Described content focuses on the Tollbooth DPYC monetization pattern and weather API wrapping; other behaviors are not specified.

Topics

bitcoindpycexamplefastmcplightningmcpmicropaymentsmodel-context-protocolnostrtemplatetollboothtutorialweather