Weather MCP Tool is an MCP server that provides real-time meteorological conditions and forecasts for cities worldwide, integrating agentic micropayments directly into data retrieval workflows. Built to demonstrate automated commerce capabilities in LLM agents, it connects client environments such as Claude Desktop to live weather data feeds and a crypto wallet backend. When a client requests weather forecasts that require a fee, the server returns an HTTP 402 payment required status, triggering an automated settlement sequence through the Latinum Wallet MCP server using the Solana Devnet. Developers and AI researchers building autonomous purchasing agents, paid API gateways, and commercial toolchains use this tool to evaluate machine-to-machine commerce without manual transaction approval. While queries for certain endpoints such as Dublin remain free for testing purposes, other city queries demonstrate how agents manage paid access protocols, handle digital currency wallets, and retry blocked requests automatically upon successful settlement.
Category: Maps, Weather & Local Data
Tags: climate, forecast, meteorology, weather
bash git clone https://github.com/Latinum-Agentic-Commerce/latinum-wallet-mcp.git cd weather_mcp python3 -m venv .venv source .venv/bin/activate pip install --upgrade pip setuptools wheel pip install --upgrade --upgrade-strategy eager -r requirements.txt pip install --editable . 2. Open your Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json. 3. Add the server under mcpServers using your absolute Python path: json { "mcpServers": { "weather_mcp": { "command": "/Users/{YOUR_USER}/workspace/weather_mcp/.venv/bin/python", "args": [ "/Users/{YOUR_USER}/workspace/weather_mcp/weather_mcp/server_stdio.py" ] } } } 4. Restart Claude Desktop to apply the configuration.Part of MCP Servers
Clone the repository from GitHub and create a local Python virtual environment. Install the dependencies and editable package using pip, then add the executable and script path to your Claude Desktop configuration file under mcpServers.
It supplies real-time weather information and forecasts for cities globally. The tool demonstrates autonomous agent commerce by paywalling specific forecast requests, requiring the client to execute Solana Devnet payments before returning the requested meteorological data.
The server runs via standard input/output using server_stdio.py and works with Claude Desktop. It operates alongside the Latinum Wallet MCP server to handle required automated micropayments when paywalled city data is requested.
Access to forecasts is paywalled using the Latinum Wallet MCP server and requires Solana Devnet payments, although weather data for Dublin is available for free testing purposes.