Labsco
MCP SERVER

Weather MCP Tool

by Latinum-Agentic-Commerce

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.

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
  • A published package — `weather-mcp` on PyPI — alongside the editable install for local work
Requirements

Python with a virtualenv and `pip install --editable .` from a clone, or the published `weather-mcp` package. 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 version in pyproject is 0.0.1.

Setup effort

One command — uvx weather-mcp