LabscoMCP early access ↗
Latinum-Formal-MethodsMCP SERVER · OFFICIAL PROJECT

Weather MCP Tool

A weather tool that charges per call — the demo for agent payments, where a 402 makes the assistant pay from a Solana wallet and retry.

by Latinum-Formal-Methods ↗Weather & Environmental Conditions✓ Official

LABSCO SUMMARY

The weather is the excuse.

Read this as a demonstration of pay-per-call tooling rather than as a forecast source: the interesting part is watching a 402 turn into a payment and a retry without a human in the loop. Set up the wallet server first — without it, everything except the free city stops at the payment challenge.

What it is

A minimal weather MCP server built to demonstrate paid tool calls. Forecast access is gated behind the Latinum Wallet MCP server and settled on Solana Devnet; the README names Dublin as the city available without payment.

What you get

  • Real-time weather for a city, requested as an ordinary tool call
  • A working payment loop: an unpaid request returns 402, the client pays through the Latinum Wallet MCP server, and the call is retried automatically
  • One free city so the flow can be seen from both sides — the README's walkthrough contrasts a request that answers instantly against one that triggers the wallet
  • Settlement on Solana Devnet, so the demonstration costs nothing real
  • An editable install from the clone, so the demo can be changed and rerun locally

Requirements

Python 3.10 or newer, with a virtualenv and pip install --editable . from a clone of this repository. The Claude Desktop entry points at the venv's Python and weather_mcp/server_stdio.py. Paid calls need the Latinum Wallet MCP server configured alongside it, with a Solana Devnet wallet behind it; the free city works without either. The current version is 0.0.1.

Setup effort

Build from source — git clone https://github.com/Latinum-Formal-Methods/weather_mcp.git