Choose a weather API suited to travel use cases: Open-Meteo (free, open-source, no key required for basic use), OpenWeatherMap, Tomorrow.io, or Weatherbit — each offers different forecast horizons (5 to 16 days) and historical data access.
Query by coordinates (lat/lng) rather than city name for precision — resolve destination city or airport to coordinates using the Google Geocoding API or a local airport coordinate dataset first.
For trip planning, request daily aggregates (min/max temperature, precipitation_sum, wind_speed_max, weather_code) rather than hourly data to reduce response size; most APIs support a daily parameter or aggregation mode.
Map weather codes to human-readable conditions and travel advisories: heavy rain (codes indicating thunderstorms or heavy precipitation) should trigger packing suggestions or activity warnings, not just a raw number.
Limit forecast confidence communication: beyond 7 days, weather forecasts have high uncertainty — label forecasts for days 8–14 as 'outlook only' and do not make irreversible booking decisions (e.g. activity bookings) based on them.
Cache forecast responses with a TTL of 1–3 hours — weather APIs charge per request and forecasts do not change meaningfully minute-to-minute; bust the cache if the user explicitly requests a refresh.
Known gotchas
Destination coordinates for islands, resort areas, or ski locations may differ significantly from the nearest city or airport coordinates — use a precise lat/lng for the actual property, not the nearest IATA airport's location.
Elevation matters for mountain destinations — a weather forecast for a valley city will not reflect conditions at a ski resort 2000m above it; use an API that supports elevation-adjusted forecasts (e.g. Open-Meteo uses ERA5 topography) for mountain travel.
Some travel destinations (tropical, monsoon climates) have weather patterns that are better described by climatological norms than by a 14-day forecast — supplement API forecasts with historical averages for long-lead trip planning.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp