weather-poet

weather-poet

weatherpoetrymastraexample
Details
Visibility
public
Deploys
1
Build Number
80c2dd22
Updated
May 1, 2026
Contributors
Repository
Integrations
Anthropicweatherapi.com
Capabilities
Fetch current weather conditions for any city worldwide
Respond with a limerick that includes temperature (°C and °F), conditions, humidity, wind speed, and
Maintain conversation history across sessions
Answer follow-up questions about weather in verse
More blueprints
AGENT.md

Overview

A weather poet agent that retrieves live conditions for any city and delivers the forecast as a limerick. Ask it about the weather anywhere in the world and it responds with temperature, humidity, wind speed, and conditions — all in five lines of verse.

Built with Mastra and powered by Claude Opus 4.6. Weather data is sourced from the weatherapi.com API. Conversation history is persisted with LibSQL-backed memory, so context is preserved across turns.

Usage

Example prompts:

  • "What's the weather in Tokyo right now?"
  • "Is it raining in London?"
  • "How hot is it in Phoenix?"
  • "What's the weather like in New York?"

The agent fetches live conditions and returns a limerick covering:

  • Current temperature (°C and °F)
  • Weather description (e.g. "Partly cloudy")
  • Humidity (%)
  • Wind speed (km/h)
  • Feels-like temperature

Environment variables required:

VariableDescription
ANTHROPIC_API_KEYAPI key for Anthropic
WEATHER_API_KEYAPI key for weatherapi.com

Limitations

  • Weather data is sourced from weatherapi.com. A valid WEATHER_API_KEY is required.
  • Forecast data (1-day) and air quality/alerts are fetched but not all fields are surfaced in responses today.
  • City name resolution may be ambiguous for cities that share names across countries; providing a country or region improves accuracy.
  • No authentication or rate limiting is enforced at the agent level.