Weatherapi

v0.2.1
io.github.pipeworx-io/weatherapi Checked 1 day ago Published 26 days ago

WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

current

Get current/real-time weather for a location, including temperature, condition, humidity, wind, UV, and air quality (AQI). Location can be a city name, "lat,lon", zip code, or IATA airport code. Example: current({ q: "London", aqi: true }).

ParameterTypeDescription
q *stringLocation — city name (e.g. "London"), "lat,lon" (e.g. "48.8567,2.3508"), US/UK/Canada zip/postcode, IATA airport code (e.g. "DXB"), or "auto:ip". NOTE on IATA codes: WeatherAPI resolves them to that…
_apiKeystringOptional — your own WeatherAPI.com API key for higher limits; omit to use the shared Pipeworx key.
aqibooleanInclude air quality (AQI) data. Default true.

forecast

Get a multi-day weather forecast for a location: daily high/low temperature, condition, chance of rain, total precipitation, and sunrise/sunset times. Up to 10 days. Example: forecast({ q: "Tokyo", days: 5 }).

ParameterTypeDescription
q *stringLocation — city name (e.g. "London"), "lat,lon" (e.g. "48.8567,2.3508"), US/UK/Canada zip/postcode, IATA airport code (e.g. "DXB"), or "auto:ip". NOTE on IATA codes: WeatherAPI resolves them to that…
_apiKeystringOptional — your own WeatherAPI.com API key for higher limits; omit to use the shared Pipeworx key.
daysnumberNumber of forecast days (default 3, max 10).

astronomy

Get astronomy data for a location and date: sunrise, sunset, moonrise, moonset, moon phase, and moon illumination. Example: astronomy({ q: "Reykjavik", dt: "2026-06-21" }).

ParameterTypeDescription
q *stringLocation — city name (e.g. "London"), "lat,lon" (e.g. "48.8567,2.3508"), US/UK/Canada zip/postcode, IATA airport code (e.g. "DXB"), or "auto:ip". NOTE on IATA codes: WeatherAPI resolves them to that…
_apiKeystringOptional — your own WeatherAPI.com API key for higher limits; omit to use the shared Pipeworx key.
dtstringDate in YYYY-MM-DD format (optional; defaults to today).

marine

Get marine/ocean conditions forecast for a coastal location: significant wave height, swell height, water temperature, and wind. Up to 7 days, sampled every 6 hours. Example: marine({ q: "33.7,-118.4", days: 2 }).

ParameterTypeDescription
q *stringLocation — city name (e.g. "London"), "lat,lon" (e.g. "48.8567,2.3508"), US/UK/Canada zip/postcode, IATA airport code (e.g. "DXB"), or "auto:ip". NOTE on IATA codes: WeatherAPI resolves them to that…
_apiKeystringOptional — your own WeatherAPI.com API key for higher limits; omit to use the shared Pipeworx key.
daysnumberNumber of marine forecast days (default 1, max 7).