mcp-weather mcp

v1.0.0 · MCP Tool · registry.pascalai.org

Get current weather and multi-day forecasts. Supports any city, country or GPS coordinates. Returns temperature, humidity, wind, UV index, precipitation and a 7-day forecast.

Input Parameters

ParameterTypeDescription
locationrequired string City name, "City, Country", or "lat,lon". Examples: "Buenos Aires", "Tokyo", "48.8566,2.3522".
daysoptional integer Number of forecast days. 1 returns current conditions only. Default: 1, max: 7.
unitsoptional string Temperature units: "metric" (°C), "imperial" (°F), or "standard" (K). Default: "metric".
include_hourlyoptional boolean Include hourly breakdown for each forecast day. Default: false.

Output Fields

FieldTypeDescription
location object Resolved location with name, country, lat, and lon.
current object Current conditions: temperature, feels_like, humidity, description, wind_speed, uv_index, visibility_km.
forecast array Daily forecast entries (when days > 1), each with date, temp_min, temp_max, description, and rain_mm.

Example

// Input
{
  "location": "Buenos Aires",
  "days": 3,
  "units": "metric"
}

// Output
{
  "location": { "name": "Buenos Aires", "country": "AR", "lat": -34.6, "lon": -58.38 },
  "current": {
    "temperature": 24.5,
    "feels_like": 26.1,
    "humidity": 68,
    "description": "partly cloudy",
    "wind_speed": 15.3,
    "uv_index": 6
  },
  "forecast": [
    { "date": "2026-03-14", "temp_min": 19, "temp_max": 27, "description": "sunny", "rain_mm": 0 },
    { "date": "2026-03-15", "temp_min": 21, "temp_max": 29, "description": "thunderstorms", "rain_mm": 18.5 }
  ]
}

Install & Discovery

Install

ppm install mcp-weather

Get JSON Schema

GET /v1/packages/mcp-weather/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=weather+forecast

PascalAI Usage

uses toolslib;

var
  Wx   := LoadTool('mcp-weather');
  R    := Wx.Call(JsonObj(['location', 'Buenos Aires', 'days', 3]));
  Curr := R['current'];
  Writeln('Temp: ' + Curr['temperature'] + 'C, ' + Curr['description']);