WeatherAPI integration
Weather and geolocation data API. Get current conditions, forecasts, historical data, and alerts. Build weather apps, travel planners, and location-aware applications.
Say what should happen.
The workflow builds itself.
Common WeatherAPI use cases
- Sports apps
- Auto-location
- Trip planning
- Time conversion
- Weather display
- Sailing planning
- Historical analysis
- Safety applications
- Sunrise/sunset times
- Location autocomplete
What you can do with WeatherAPI
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Alert, 1 operation
get_alertsGet alertsGETRetrieves active weather alerts for a location.
Astronomy, 1 operation
get_astronomyGet astronomyGETRetrieves astronomy data for a location and date.
Forecast, 1 operation
get_forecastGet forecastGETRetrieves weather forecast for a location.
Future, 1 operation
get_futureGet futureGETRetrieves long-range weather forecast 14-300 days ahead.
History, 1 operation
get_historyGet historyGETRetrieves historical weather data for a location.
Ip, 1 operation
get_ip_lookupGet ip lookupGETRetrieves location information for an IP address.
Location, 1 operation
search_locationSearch locationGETSearches for locations matching a query.
Marine, 1 operation
get_marineGet marineGETRetrieves marine weather and tide data for a coastal location.
Sports, 1 operation
get_sportsGet sportsGETRetrieves upcoming sports events near a location.
Timezone, 1 operation
get_timezoneGet timezoneGETRetrieves timezone information for a location.
Weather, 1 operation
get_currentGet currentGETRetrieves current weather conditions for a location.
Use WeatherAPI from Claude Code, Cursor or Codex
Connect WeatherAPI in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its WeatherAPI operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect WeatherAPI
- Create your workspace
Sign up free. Nothing to install.
- Connect WeatherAPI once
Add your WeatherAPI connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
WeatherAPI integration FAQ
What can you do with the WeatherAPI integration?
LiveContext exposes 11 operations on WeatherAPI, covering alert, astronomy, forecast and future. Common uses include Sports apps, Auto-location and Trip planning.
