Provide AI assistants with comprehensive weather information including current conditions, forecasts, historical data, air quality, and astronomy details. Enable location search, weather alerts, and timezone data to enhance context-aware applications. Access reliable weather data seamlessly through a standardized protocol.
Tools
weather_current
Get current weather for a location. Args: q (str): Location query (city name, lat/lon, postal code, etc). aqi (str): Include air quality data ('yes' or 'no'). Returns: dict: WeatherAPI current weather JSON.
weather_forecast
Get weather forecast (1–14 days) for a location. Args: q (str): Location query (city name, lat/lon, postal code, etc). days (int): Number of days (1–14). aqi (str): Include air quality ('yes' or 'no'). alerts (str): Include weather alerts ('yes' or 'no'). Returns: dict: WeatherAPI forecast JSON.
weather_history
Get historical weather for a location on a given date (YYYY-MM-DD). Args: q (str): Location query. dt (str): Date in YYYY-MM-DD format. Returns: dict: WeatherAPI history JSON.
weather_alerts
Get weather alerts for a location. Args: q (str): Location query. Returns: dict: WeatherAPI alerts JSON.
Installation
Please Login
Login to configure this server.