weatherAI.io

API documentation

One endpoint turns the weather into a decision for an activity at a place and date.

Quick start

  1. Create a free account, verify your email and copy your API key from the dashboard.
  2. Call https://api.weatherai.io/v1/decide with a location and an activity.
curl -H "X-API-Key: YOUR_KEY" \
  "https://api.weatherai.io/v1/decide?location=London&activity=running&when=tomorrow"

Authentication

Send your key in the X-API-Key header (Authorization: Bearer wai_… also works). ?key= works too, but headers keep keys out of logs and browser history. Keys start with wai_. You can create up to 5 keys and revoke any of them in the dashboard; a revoked key stops working at once. Keep keys on your server; never put them in public web pages or apps.

GET /v1/decide

ParameterRequiredDescription
locationyesCity or town name, lat,lon, UK postcode, US zip code, Canadian postal code or IP address. q also works.
activityyes*One of the activities. Common aliases such as run, bike, bbq, wedding, crane and hgv are accepted.
profileno*The id (prf_…) of one of your custom rules, instead of activity. *Give one of the two.
whennotoday (default), tomorrow or a date yyyy-MM-dd up to 13 days ahead, in the location's local time.
from, tonoOnly consider hours from from (0–23) and before to (1–24), local time. Example: from=17&to=21 for an evening run.
unitsnometric (default) or imperial for the figures in data.
detailnohourly adds an hour-by-hour score with the main issue for each hour.
pollen_sensitivenotrue for people with hay fever: moderate or higher pollen then lowers the score. Without it pollen is only reported.

Response

{
  "location": { "name": "London", "region": "City of London, Greater London", "country": "United Kingdom",
                "lat": 51.52, "lon": -0.11, "tz_id": "Europe/London", "localtime": "2026-10-17 21:04" },
  "activity": "running",
  "date": "2026-10-18",
  "verdict": "good",
  "score": 82,
  "best_windows": [ { "start": "2026-10-18 07:00", "end": "2026-10-18 10:00", "score": 91 } ],
  "risks": [ { "type": "rain", "severity": "high", "from": "2026-10-18 14:00", "to": "2026-10-18 18:00",
               "detail": "1.2 mm of rain" } ],
  "summary": "Good conditions for a run in London; best 07:00–10:00. Watch for rain from 14:00.",
  "data": { "temp_min": 8.1, "temp_max": 14.0, "feels_like_min": 6.0, "feels_like_max": 12.5,
            "rain_chance_max": 70, "precip_total_mm": 4.8, "wind_max_kph": 30, "gust_max_kph": 45,
            "uv_max": 3, "cloud_avg": 52, "humidity_avg": 78, "sunrise": "07:24", "sunset": "18:07",
            "units": "metric" },
  "billing": { "charged": "free", "cost_gbp": "0.0000", "free_remaining": 993, "balance_gbp": "4.2000" }
}
FieldMeaning
verdictgreat (85+), good (70+), fair (55+), poor (35+) or avoid.
score0–100: how good the best opportunity on that date is.
best_windowsUp to 3 runs of good hours (score 60+) at least as long as the activity needs, best first. Empty when nothing is good enough.
risksWhat lowers the score and when: rain, thunder, snow, wind, gusts, heat, cold, UV, cloud, humidity, visibility, moon, air (air quality), pollen, heat_stress (humid heat), low_sun; plus official weather alerts. Unhealthy air, high pollen and dangerous humid heat are always listed, even when they don't lower the score. Severity low, moderate or high (alerts use the issuer's severity).
summaryOne sentence ready to show to a user or read out by an assistant.
dataKey figures for the hours considered. Stargazing adds the moon phase, illumination and moonrise/moonset.
billingWhether the call was free or paid, what it cost, free calls left this month and your credit balance.

GET /v1/best-day

Which of the next days is best? One call compares up to 14 days for an activity and ranks them. It costs one call, however many days it compares.

ParameterRequiredMeaning
location, activityyesAs for /v1/decide.
daysnoHow many days to compare, starting today: 1 to 14. Default 7.
from, to, unitsnoAs for /v1/decide, applied to every day (e.g. evenings only: from=17&to=22).
pollen_sensitivenoAs for /v1/decide.
GET https://api.weatherai.io/v1/best-day?location=London&activity=bbq&days=7

{
  "location": { "name": "London", "country": "United Kingdom", … },
  "activity": "outdoor-event",
  "days_checked": 7,
  "summary": "Best day for an outdoor event in London: Saturday 17 October (great, 92), 12:00–19:00.",
  "best": { "date": "2026-10-17", "weekday": "Saturday", "verdict": "great", "score": 92,
            "best_window": { "start": "2026-10-17 12:00", "end": "2026-10-17 19:00", "score": 92 },
            "top_risks": [], "summary": "Great conditions for an outdoor event in London; best 12:00–19:00." },
  "days": [ { "date": "2026-10-14", "weekday": "Wednesday", "verdict": "fair", "score": 61, … }, … ],
  "billing": { … }
}

Activities

activityWhat it looks forShortest windowHours considered
runningOutdoor run or jog: comfortable temperature, little rain, light wind, not too much sun.1 h05:00–22:00
cyclingRoad or leisure cycling: wind and gusts matter most, then rain and temperature.2 h05:00–21:00
outdoor-eventSeveral hours outdoors with guests: dry, warm enough, not too windy, in daylight.4 h08:00–23:00
beachSunbathing and swimming: warm, sunny, dry and not too windy. High UV is reported as a risk, not a reason to stay away.3 h07:00–20:00
laundry-dryingWashing on the line: dry air, a breeze, some warmth and no rain.4 h06:00–21:00
stargazingClear, dark skies at night: little cloud, a small or set moon, good visibility and no rain.2 h18:00–06:00 next day
hikingSeveral hours on foot in daylight: dry, mild, good visibility, no storms. Mountain weather can differ from the forecast for the nearest town.3 h06:00–20:00
golfFour or more hours on the course: dry, light wind, comfortable temperature. Any thunder means off the course.4 h06:00–21:00
tennisAn hour or two on an outdoor court: dry courts and little wind matter most.1 h07:00–22:00
dog-walkingA walk with a dog: heat is the main danger (dogs overheat and pavements get hot), then storms and heavy rain.1 h05:00–23:00
gardeningA few hours in the garden: mild, mostly dry and not too windy.2 h07:00–20:00
fishingHours by the water: light wind, no storms (a rod attracts lightning). Light rain and cloud are fine.3 h04:00–22:00
sailingNeeds a breeze of about 12 to 35 km/h, no squalls or storms, and good visibility. Not a marine forecast: check official marine and tide information before going out.3 h07:00–20:00
drone-flyingShort flights in daylight: low wind and gusts, no rain or snow, good visibility, batteries above about 5°C. Always follow local drone rules.1 h06:00–21:00
exterior-paintingPainting walls, fences or woodwork outside: air at 10°C or more, dry for hours, humidity under about 70% and little wind. Check the paint's own limits.5 h07:00–19:00
concrete-pourA pour and the first hours of curing: air above 5°C (no frost), no rain, not too hot or windy (fast drying cracks the surface).6 h06:00–19:00
roofingWork on roofs and scaffolding: wind and gusts first, then rain, ice and storms.4 h06:00–20:00
crop-sprayingSpraying crops: a light, steady breeze (about 3 to 15 km/h; dead calm risks drift in an inversion), no rain soon after, not hot. Always follow the product label.2 h05:00–21:00
outdoor-workA shift outdoors: heat stress first, then storms, cold, ice and heavy rain.4 h06:00–20:00
drivingTime on the road: ice, snow, fog, heavy rain and storm-force gusts. Temperature itself does not matter.2 h05:00–23:00
solar-pvHow well solar panels will generate: strong, clear sunshine with the sun high in the sky; heavy cloud and snow cover cut output. Uses measured solar irradiance when available, otherwise cloud cover. data.solar_energy_kwh_m2 is the expected energy per square metre (peak sun hours).3 h05:00–21:00
crane-liftingLifting with mobile or tower cranes: mean wind and gusts decide (wind is stronger at height than these 10 m figures), then storms, ice and poor visibility. A planning guide only: always follow the crane's and the lift plan's wind limits.2 h06:00–20:00
groundworksExcavation, drainage, foundations and earthworks: heavy rain (flooded trenches, mud), frozen ground, storms and heat stress.4 h07:00–19:00
marqueePutting up and keeping up marquees, gazebos, stages and inflatables: gusts first, then storms, heavy rain and snow. Always follow the supplier's wind limits.4 h07:00–23:00
outdoor-diningGuests eating and drinking outside: warm enough to sit, dry, not too windy; evenings count.3 h11:00–23:00
harvestingCombining, baling and haymaking: a dry crop and dry ground. No rain, low humidity (dew and damp grain), a breeze helps; storms stop work.5 h08:00–21:00
irrigationIrrigating crops, lawns and sports pitches: little wind (drift), no rain on the way (wasted water), and cool hours with weak sun (less evaporation). No watering near freezing.2 h04:00–23:00
high-sided-vehiclesHigh-sided and towed vehicles (HGVs, vans, coaches, caravans, horseboxes): crosswinds and gusts first (bridges, exposed roads), then ice, snow, fog and heavy rain.2 h05:00–23:00
field-serviceEngineers and technicians working outdoors (telecoms, utilities, HVAC, EV charger and solar installs): lightning and storms, wind on ladders and masts, ice, cold and heat stress.3 h07:00–19:00
wind-powerHow well a small wind turbine will generate: a steady 18 to 55 km/h breeze is best; calm air produces little and storm gusts trigger cut-out. Uses 10 m wind; hub-height wind is usually stronger.3 h00:00–00:00

The list is also available as JSON, free and without a key: GET https://api.weatherai.io/v1/activities.

Industry packs

Activities are grouped by industry. GET https://api.weatherai.io/v1/activities?pack=construction lists one pack; each activity also lists the packs it belongs to.

packActivities
constructionconcrete-pour, crane-lifting, roofing, groundworks, exterior-painting, outdoor-work
eventsoutdoor-event, marquee, outdoor-dining, drone-flying
agriculturecrop-spraying, harvesting, irrigation, drone-flying, outdoor-work
logisticshigh-sided-vehicles, driving, field-service, outdoor-work
energysolar-pv, wind-power, field-service, roofing

How scoring works

Every forecast hour starts at 100 and loses points for each thing outside the activity's comfortable range: the "feels like" temperature, the chance and amount of rain, thunderstorms, snow, wind and gusts, UV, cloud, humidity, visibility, darkness (or daylight, for stargazing), moonlight, ice (near-freezing with rain or snow, for driving, roofing and walking) a minimum air temperature for work that needs it (concrete, paint), forecast snowfall, humid heat (wet-bulb temperature), air quality, pollen and sunshine. Hours scoring 60 or more are good; runs of good hours at least as long as the activity needs become best_windows. The rules are deliberately simple and the same for every customer, so answers are explainable.

Air quality, pollen and sunshine

  • Air quality uses the US EPA index (1 good to 6 hazardous). From level 3 (unhealthy for sensitive groups) each level costs points, most for hard exercise (running, cycling, tennis, hiking), little or nothing where it doesn't change the decision (driving, concrete, drones). Level 4 or worse is always listed as a risk. data gives air_quality, air_quality_us_epa_max, air_quality_gb_defra_max, pm2_5_max and pm10_max.
  • Pollen is grouped into tree, grass and weed, each none, low, moderate, high or very high (grains/m³: tree 30 / 80 / 200, grass 30 / 50 / 150, weed 10 / 50 / 100 for moderate / high / very high). It lowers the score only with pollen_sensitive=true (moderate 10, high 25, very high 45 points, more for gardening and running, less for sailing); high pollen is always listed as a risk. Pollen data covers the US, Canada, the UK and Europe.
  • Sunshine uses measured solar irradiance (W/m²) against a clear-sky model, or cloud cover when irradiance isn't available. It matters for beach days, drying laundry and solar-pv (solar panel output, which also weighs how high the sun is). data gives sunshine_pct_avg, sunshine_hours (hours of direct sun, 120 W/m² or more), solar_ghi_max_wm2, solar_dni_max_wm2, solar_energy_kwh_m2 (energy per m² of flat ground, "peak sun hours"), solar_gti_max_wm2 and solar_panel_energy_kwh_m2 (energy per m² of tilted panel: multiply by panel area and efficiency for kWh).
  • Humid heat uses the wet-bulb temperature, which catches heat stress that "feels like" misses when sweat can't evaporate. Hard exercise and outdoor work lose points from about 21–23°C wet-bulb; 26°C or more is always listed as a heat_stress risk. data.wetbulb_max.
  • Snowfall: forecast centimetres of snow lower the score on top of the chance of snow, most for driving, roofing, sports and solar panels. data.snow_total_cm.
  • Also in data: pressure_mb and pressure_trend (rising, falling or steady, useful for fishing and sailing) and the prevailing wind_dir (e.g. SW, where the wind blows from: useful for sailing, drones and spray drift).

When the forecast has no air quality or pollen for a place, those factors are simply left out.

Hours that have already passed at the location are never recommended.

Errors

Errors return JSON {"error": {"code": "…", "message": "…"}}. Only a successful 200 answer is charged.

HTTPcodeMeaning
400invalid_location, invalid_activity, invalid_when, invalid_time_range, invalid_daysFix the request.
401missing_key, invalid_keySend a valid key.
402no_creditThis month's free calls are used and your credit is empty: top up.
402spend_limit_reachedYour paid calls reached the monthly spending limit you set. They resume on the 1st (UTC), or raise the limit in settings.
403email_not_verified, account_suspendedVerify your email or contact support.
404location_not_foundWe couldn't find that place.
404profile_not_found, alert_not_foundNo custom rule or alert with that id on your account.
409profile_in_useAlerts still use that rule: delete them first.
422no_hours_leftNo forecast hours left for that date and time range (for example, late evening for "today").
429rate_limitedSlow down (see limits below).
503weather_unavailableTemporary problem on our side. Retry shortly.

Billing and limits

  • 1,000 free calls every calendar month (UTC), then £0.0012 per call from prepaid credit, VAT included. See pricing.
  • /v1/decide and /v1/best-day cost one call each when they succeed (with or without a custom rule), and so do the MCP tools decide and best_day.
  • Alerts: forecast checks are free; each notification sent costs one call.
  • Website widgets: one call each time a widget's forecast is refreshed, at most every 30 minutes (48 calls a day at most).
  • Larger top-ups get bonus credit (10% extra from £250, 20% extra from £1,000), and business customers can pay by invoice. See pricing.
  • Everything else is free, including managing custom rules and alerts.
  • Every answer carries headers X-Free-Calls-Remaining, X-Credit-Balance-GBP and X-Call-Cost-GBP.
  • Up to 20 requests per second per account.
  • Answers for the same place are cached for up to 10 minutes on our side; caching on yours for 10–30 minutes is fine and saves calls.

Other endpoints (free)

GET /v1/activitiesThe activities you can ask about, and the industry packs (?pack=). No key needed.
GET /v1/usageFree calls used and left this month, credit balance and how many paid calls it covers. Needs your key.
GET /openapi.jsonOpenAPI 3 description of the API.
GET /healthReturns ok when the API is up.

Custom rules

A custom rule saves your own go/no-go limits, for example a crane's wind limit or a paint's minimum temperature. It starts from a built-in activity's scoring (base_activity, default outdoor-work) and adds hard limits: any hour that breaks one scores 0, so it is never part of a recommended window and is reported as a risk such as “Gusts 44 km/h, above your limit of 38 km/h”. Create rules in your dashboard or with the API, then pass profile=prf_… to /v1/decide, /v1/best-day, the MCP tools or an alert. Answers include "profile": {"id", "name"}.

curl -X POST https://api.weatherai.io/v1/profiles -H "X-API-Key: wai_..." -H "Content-Type: application/json" -d '{
  "name": "Crane C-12",
  "base_activity": "crane-lifting",
  "min_hours": 3, "from_hour": 7, "to_hour": 18,
  "limits": { "gust_max_kph": 38, "wind_max_kph": 28, "no_thunder": true, "daylight_only": true }
}'

curl -H "X-API-Key: wai_..." "https://api.weatherai.io/v1/decide?location=Leeds&profile=prf_7KxQ2mWb9TzLp4&when=tomorrow"
Limit (all optional)Meaning
temp_min_c, temp_max_cAir temperature range (°C)
feels_like_min_c, feels_like_max_c"Feels like" temperature range (°C)
wind_max_kph, gust_max_kphHighest mean wind and gust (km/h, at 10 m)
wind_min_kphLowest wind, e.g. spraying needs a breeze
rain_chance_max, precip_max_mmHighest chance of rain (%) and rain in an hour (mm)
snow_chance_max, humidity_maxHighest chance of snow and humidity (%)
visibility_min_km, uv_maxLowest visibility (km), highest UV index
no_thunder, daylight_onlytrue to rule out thunderstorms or hours after dark

Endpoints (free, need your key): GET /v1/profiles, POST /v1/profiles, GET /v1/profiles/{id}, PUT /v1/profiles/{id} (fields you leave out keep their values), DELETE /v1/profiles/{id}. Up to 50 rules per account. Wind at height (cranes, roofs, masts) is usually stronger than the 10 m forecast, so set limits with a margin.

Alerts

An alert watches a place and an activity (or custom rule) for the next 1–7 days. Every 1, 3, 6 or 12 hours we re-check the forecast; when a day switches between go (at least one window of the minimum length in which every hour scores 60+) and no-go, we email you and/or POST a webhook. The first check only records the outlook, and a new day coming into range is only recorded, so you hear from us only about real changes. Checks are free; each notification costs one call (free calls first, then credit). Create alerts in your dashboard, with the MCP tool create_alert, or:

curl -X POST https://api.weatherai.io/v1/alerts -H "X-API-Key: wai_..." -H "Content-Type: application/json" -d '{
  "name": "Site A pour",
  "location": "Leeds",
  "activity": "concrete-pour",
  "days_ahead": 3,
  "notify_when": "change",
  "interval_hours": 3,
  "email": true,
  "webhook_url": "https://example.com/weather-hook"
}'
FieldDescription
name, locationRequired.
activity or profileA built-in activity, or one of your custom rules (prf_…).
days_aheadDates watched, starting today: 1–7 (default 2 = today and tomorrow).
notify_whenchange (default, either way), becomes_go or becomes_no_go.
interval_hours1, 3 (default), 6 or 12.
emailEmail your account's address (default true).
webhook_urlOptional public https:// address. The response to the create call includes webhook_secret (shown in full only then, and in your dashboard).

Other endpoints (free): GET /v1/alerts (with each alert's latest outlook), GET /v1/alerts/{id}, POST /v1/alerts/{id}/pause, POST /v1/alerts/{id}/resume, DELETE /v1/alerts/{id}. Up to 20 alerts per account. An alert pauses, and we email you, when its place can't be found, your free calls and credit run out (or your spending limit is reached), or notifications fail 5 times in a row. Alerts are a planning aid: they can be late or missed, so don't rely on them for safety-critical decisions.

Webhooks

We send a POST with a JSON body and expect a 2xx answer within 10 seconds. Redirects are not followed. If delivery fails and email isn't on, the notification is refunded and retried at the next check (after 15 minutes).

{
  "id": "evt_9fK2...",
  "type": "alert.changed",
  "created": "2026-10-22T07:00:00Z",
  "test": false,
  "alert": { "id": "alr_...", "name": "Site A pour", "location": "Leeds", "place": "Leeds, West Yorkshire, United Kingdom",
             "activity": "concrete-pour", "profile": null, "notify_when": "change" },
  "changes": [{
    "date": "2026-10-24", "direction": "now_no_go",
    "text": "Saturday 24 October is now a NO-GO (poor, 41). It was a go (good, 76).",
    "now": { "date": "2026-10-24", "go": false, "verdict": "poor", "score": 41, "window_start": null, "window_end": null, "summary": "..." },
    "before": { "go": true, "verdict": "good", "score": 76 }
  }],
  "outlook": [{ "date": "2026-10-22", "go": true, "verdict": "good", "score": 80 }, ...]
}

Check the signature before trusting a webhook. The header WeatherAI-Signature: t=1792652400,v1=5f2c… holds a Unix timestamp and the hex HMAC-SHA256 of {t}.{raw body} keyed with the alert's webhook_secret. Reject it if the signature doesn't match or t is more than 5 minutes old. Use the Send test webhook button on your Alerts page to try your receiver (free; "test": true).

// Node.js
const crypto = require("crypto");
function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map(p => p.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(parts.t + "." + rawBody).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

# Python
import hmac, hashlib, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return abs(time.time() - int(parts["t"])) < 300 and hmac.compare_digest(expected, parts["v1"])

Website widgets

Show your visitors whether the weather suits your activity: a small go / no-go badge for one place, for today or the next 3, 5 or 7 days. Create one in your dashboard (place, activity or custom rule, colours, and the websites it may appear on), then paste the embed code into your page:

<div class="weatherai-widget" data-widget="wgt_7KxQ2mWb9TzL"></div>
<script src="https://www.weatherai.io/widget.js" async></script>
  • The widget runs on your account: one call each time its forecast is refreshed, at most every 30 minutes however many people see it. If your free calls and credit run out it shows “not available”; nothing about your account is ever shown.
  • Only the websites you list (and their subdomains) can show it; requests from other sites get 403 domain_not_allowed.
  • It draws inside a shadow DOM, so your site's styles don't affect it, and sets no cookies. If your site has a Content Security Policy, allow https://www.weatherai.io in script-src and https://api.weatherai.io in connect-src.
  • To build your own design, fetch the same data: GET https://api.weatherai.io/v1/widget/wgt_… (no key; returns days[] with date, go, verdict, score, window_start, window_end and summary). Please keep a visible “Powered by weatherAI.io” link.

Zapier, Make and n8n

Our no-code integrations use the same API: actions Check go or no-go (/v1/decide) and Find best day (/v1/best-day), and an instant trigger Day turns go or no-go. Switching the trigger on creates an alert with the platform's webhook address; switching it off deletes it. See integrations for availability.

MCP server (AI agents)

weatherAI.io is also an MCP server, so assistants and agents can use it as tools without any code. Server URL:

https://api.weatherai.io/mcp

Claude: open our listing in the Claude directory, press Connect and log in. Cursor and VS Code open and ask you to confirm; sign in when the app asks. No API key needed.

claude mcp add --transport http weatherai https://api.weatherai.io/mcp

Claude Code: run this, then /mcp to sign in.

It speaks the Streamable HTTP transport (MCP protocol versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05). Every request needs one of these:

  • Sign in (recommended). Apps that support MCP sign-in (OAuth 2.1), such as Claude, only need the URL above. The first time, a weatherAI.io page opens: log in and press Allow. You can see and disconnect connected apps under Settings.
  • Your API key as the X-API-Key header (or Authorization: Bearer wai_…), for apps that let you set headers. For apps that only take a URL and can't sign in, add it as ?key=wai_…, and treat that URL as a secret.

For client developers: requests without a credential get 401 with WWW-Authenticate: Bearer resource_metadata="https://api.weatherai.io/.well-known/oauth-protected-resource/mcp". The authorization server is https://www.weatherai.io (metadata at /.well-known/oauth-authorization-server), with dynamic client registration, PKCE (S256) and the scope mcp. Calls made through a connected app are charged to the account that allowed it, exactly like calls with an API key.

ToolWhat it doesCost
decideVerdict, score, best windows, risks and summary for one activity, place and day.1 call
best_dayCompares the next days (up to 14) and picks the best.1 call
list_activitiesThe activities the tools understand.free
get_usageFree calls left this month and credit balance.free
list_profilesYour custom rules; pass one as profile to decide, best_day or create_alert.free
create_alert, list_alerts, delete_alertManage alerts, e.g. “tell me if Saturday stops being good for the BBQ”.free (1 call per notification)

Claude Code

claude mcp add --transport http weatherai https://api.weatherai.io/mcp

Then run /mcp in Claude Code and choose weatherai to sign in through your browser. Or skip the sign-in and use your key: add --header "X-API-Key: wai_YOUR_KEY" to the command.

Claude (claude.ai and the desktop app)

weatherAI.io is in the Claude connectors directory: open it (or search under Customize → Connectors) and press Connect. Or add it yourself as a custom connector with the URL https://api.weatherai.io/mcp. Press Connect, log in to weatherAI.io and allow access.

ChatGPT

Pro, Team, Enterprise or Edu: Settings → Connectors → Advanced → turn on Developer Mode, then Add custom connector with the URL https://api.weatherai.io/mcp and OAuth. Log in and allow; in a chat, + → More → Developer Mode → weatherAI.io.

Gemini CLI

gemini mcp add --transport http -s user weatherai https://api.weatherai.io/mcp

Then /mcp auth weatherai to sign in. Or set "httpUrl": "https://api.weatherai.io/mcp" under mcpServers in ~/.gemini/settings.json; add "headers": { "X-API-Key": "wai_YOUR_KEY" } to use a key instead.

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "weatherai": {
      "url": "https://api.weatherai.io/mcp",
      "headers": { "X-API-Key": "wai_YOUR_KEY" }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "weatherai": {
      "type": "http",
      "url": "https://api.weatherai.io/mcp",
      "headers": { "X-API-Key": "wai_YOUR_KEY" }
    }
  }
}

Menus and file locations change between versions of these apps; if a step doesn't match, look for "MCP servers" or "connectors" in the app's settings.

Without MCP

Give your agent the OpenAPI spec or this function definition. The summary field is meant to be repeated to the user as it is.

{
  "name": "weather_decision",
  "description": "Decide whether and when to do an outdoor activity at a place and date. Returns verdict, score 0-100, best time windows, risks and a one-line summary.",
  "parameters": {
    "type": "object",
    "properties": {
      "location": { "type": "string", "description": "City, 'lat,lon', postcode or zip code" },
      "activity": { "type": "string", "enum": ["running", "cycling", "outdoor-event", "beach", "laundry-drying", "stargazing", "hiking", "golf", "tennis", "dog-walking", "gardening", "fishing", "sailing", "drone-flying", "exterior-painting", "concrete-pour", "roofing", "crop-spraying", "outdoor-work", "driving", "solar-pv", "crane-lifting", "groundworks", "marquee", "outdoor-dining", "harvesting", "irrigation", "high-sided-vehicles", "field-service", "wind-power"] },
      "when": { "type": "string", "description": "today, tomorrow or yyyy-MM-dd (up to 13 days ahead)" }
    },
    "required": ["location", "activity"]
  }
}