Use when an agent needs current weather or a forecast for any place (trips, logistics, events, delivery, outdoor plans)

$0.002 per call20 free calls/day via MCP

Use when an agent needs current weather or a forecast for any place (trips, logistics, events, delivery, outdoor plans). Current conditions with feels-like, wind and gusts, UV, pressure, clouds and air quality; hourly for the next 24 h; daily up to 16 days with rain chance, sunrise/sunset and moon phase; plus ready-made alerts (heat, freeze, storm, heavy rain, high UV, snow, bad air). City or lat/lon, metric or imperial. Under 1 s.

weatherforecasttemperaturerainalertstravellogisticsplanning

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool weather:

{
  "name": "weather",
  "arguments": {
    "location": "Dublin",
    "days": 3
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/weather \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"location":"Dublin","days":3}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.002 and retries automatically. Works with any x402 wallet: Base MCP, Coinbase AgentKit, x402-fetch / x402-axios, Cloudflare Agents. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "location": {
      "type": "string",
      "description": "City or place name (e.g. Paris, Tokyo, Dublin IE)"
    },
    "lat": {
      "type": "number"
    },
    "lon": {
      "type": "number"
    },
    "days": {
      "type": "number",
      "description": "Forecast days (1-16, default 7)"
    },
    "hourly": {
      "type": "boolean",
      "description": "Include next 24 hours (default true)"
    },
    "units": {
      "type": "string",
      "description": "metric (default) or imperial"
    }
  },
  "required": []
}

Example output

{
  "place": {
    "name": "Dublin",
    "country": "Ireland",
    "timezone": "Europe/Dublin"
  },
  "current": {
    "temperature": 9.1,
    "feelsLike": 6.2,
    "conditions": "partly cloudy",
    "windSpeed": 22,
    "windGusts": 41,
    "uvIndex": 1,
    "usAqi": 21
  },
  "alerts": [
    {
      "date": "2026-12-05",
      "type": "wind",
      "detail": "Gusts up to 74 km/h"
    }
  ],
  "daily": [
    {
      "date": "2026-12-04",
      "min": 5,
      "max": 10,
      "rainChancePct": 40,
      "moonPhase": "waning gibbous"
    }
  ]
}

Related tools

Use when an agent needs air quality or pollen for a place (health, allergies, travel, outdoor activity) ($0.002) · Use when an agent schedules meetings, deliveries, payroll or campaigns around public holidays and business days ($0.001)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402