io.github.weatherai-io/weatherai

السجل الرسمي الخرائط والسفر والطقس

WeatherAI — 11 live weather tools for Claude, Cursor, Windsurf and any MCP AI assistant

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @weatherai/mcp-server
Claude Code
claude mcp add weatherai -e 'YOUR_API_KEY=<your your_api_key>' -- npx -y @weatherai/mcp-server@1.0.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "weatherai": {
            "command": "npx",
            "args": [
                "-y",
                "@weatherai/mcp-server@1.0.0"
            ],
            "env": {
                "YOUR_API_KEY": "<your your_api_key>"
            }
        }
    }
}

متغيرات البيئة

  • YOUR_API_KEY إلزامي سري Your API key for the service

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. WeatherAI MCP Server
  2. Quick Start
  3. Available Tools
  4. Authentication
  5. Pricing
  6. Machine-Readable Discovery
  7. Source Code
  8. Links
  9. License

WeatherAI MCP Server

11 live weather tools for your AI assistant — one URL, no setup.

The WeatherAI MCP server gives Claude Desktop, Cursor, Windsurf, and any MCP-compatible AI assistant instant access to real-time weather, forecasts, historical data, air quality, astronomy, solar irradiance, and a plain-English AI weather interface.

Hosted endpoint: https://api.weatherai.io/mcp
Transport: Streamable HTTP (stateless, MCP spec 2025-03-26)
Auth: API key via query param, header, or Bearer token
Free tier: 1,000 standard calls/day · 50 premium calls/day


Quick Start

1. Get a free API key

Sign up at weatherai.io — no credit card required.

2. Add to your AI client

Replace YOUR_API_KEY with the key from your dashboard.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "weatherai": {
      "url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY"
    }
  }
}

Restart Claude Desktop after saving.

Cursor

Go to Cursor → Settings → MCP or edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "weatherai": {
      "url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY"
    }
  }
}
Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "weatherai": {
      "url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY",
      "type": "http"
    }
  }
}
Any other MCP client (generic mcp.json)
{
  "mcpServers": {
    "weatherai": {
      "url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY",
      "type": "http",
      "transport": "streamable-http"
    }
  }
}
3. Start asking weather questions
"What's the weather like in Tokyo right now?"
"Will it rain in London this weekend?"
"What were temperatures in Paris on 14 July 2023?"
"What's the air quality like in Beijing?"
"When does the sun set in Dubai today?"

Available Tools

All 11 tools are registered automatically — no configuration needed.

ToolTierDescriptionKey Parameters
get_current_weatherStandardReal-time conditions for any locationlocation, units
get_weather_forecastStandardDaily & hourly forecast up to 14 dayslocation, days (1–14), units
get_historical_weatherPremiumActual past weather for any datelocation, date (YYYY-MM-DD), units
get_future_weatherPremiumPredictions 14–300 days aheadlocation, start_date, end_date, units
get_air_qualityStandardAQI, PM2.5, PM10, CO, NO2, SO2, O3location
get_weather_alertsStandardActive government weather warningslocation
get_astronomyStandardSunrise, sunset, moon phase & illuminationlocation, date
get_solar_dataPremiumSolar irradiance & energy estimateslocation, date, units
get_timezoneStandardUTC offset, local time, DST statuslocation
search_locationsStandardFind cities/places by partial namequery
ask_ai_weatherPremiumPlain-English weather questions via Claude AIquestion
Tool Details
get_current_weather

Returns temperature, feels-like, humidity, wind speed/direction, UV index, visibility, pressure, and cloud cover.

location  (required) City name, US zip, UK postcode, lat/lon, or IP address
units     (optional) "metric" | "imperial" — default: metric
get_weather_forecast

Daily high/low and hourly breakdown for up to 14 days including precipitation chance and UV index.

location  (required) City name, zip/postcode, coordinates, or IP address
days      (optional) 1–14 — default: 3
units     (optional) "metric" | "imperial" — default: metric
get_historical_weather

Hour-by-hour actual recorded weather for any past date.

location  (required) City name, zip/postcode, coordinates, or IP address
date      (required) YYYY-MM-DD format — must be a past date
units     (optional) "metric" | "imperial" — default: metric
get_future_weather

AI-enhanced extended forecast from 14 to 300 days into the future. Costs 2 premium credits per request.

location    (required) City name, zip/postcode, coordinates, or IP address
start_date  (required) YYYY-MM-DD — 14–300 days from today
end_date    (optional) YYYY-MM-DD — max 30 days per request
units       (optional) "metric" | "imperial" — default: metric
get_air_quality

Real-time AQI index plus individual pollutant readings (PM2.5, PM10, CO, NO2, SO2, O3).

location  (required) City name, zip/postcode, coordinates, or IP address
get_weather_alerts

Active government-issued storm, flood, heat, and other weather warnings.

location  (required) City name, zip/postcode, coordinates, or IP address
get_astronomy

Sunrise, sunset, moonrise, moonset, moon phase name, and illumination percentage.

location  (required) City name, zip/postcode, coordinates, or IP address
date      (optional) YYYY-MM-DD — defaults to today
get_solar_data

Solar irradiance (W/m²) and estimated daily energy generation (kWh/m²).

location  (required) City name, zip/postcode, coordinates, or IP address
date      (optional) YYYY-MM-DD — defaults to today
units     (optional) "metric" | "imperial" — default: metric
get_timezone

IANA timezone name, UTC offset (hours), current local time, and DST active flag.

location  (required) City name, zip/postcode, coordinates, or IP address
search_locations

Returns up to 10 matching places with name, region, country, and coordinates.

query  (required) Partial or full city/location name
ask_ai_weather ⭐

Ask any weather question in plain English. The AI interprets the intent, calls the relevant tools, and returns a natural-language answer plus the underlying JSON data. Costs 2 premium credits per request.

question  (required) e.g. "Will it be good weather for hiking in the Lake District next weekend?"

Authentication

Three methods are supported — all equivalent:

MethodExample
Query parameterhttps://api.weatherai.io/mcp?apiKey=YOUR_KEY
X-API-Key headerX-API-Key: YOUR_KEY
Bearer tokenAuthorization: Bearer YOUR_KEY

Query parameter is recommended for client config files. Use headers for programmatic access.


Pricing

TierFree AllowanceOverage
Standard tools1,000 calls/day$0.0005 / call
Premium tools50 calls/day$0.001 / call

Credits are prepaid — top up from your dashboard. No subscription required.

Standard tools: get_current_weather, get_weather_forecast, get_air_quality, get_weather_alerts, get_astronomy, get_timezone, search_locations

Premium tools: get_historical_weather, get_future_weather, get_solar_data, ask_ai_weather


Machine-Readable Discovery

FileURL
MCP manifest/.well-known/mcp.json
LLM context/llms.txt
OpenAPI spec/openapi.yaml

Source Code

This repository contains the MCP server implementation. The server runs as part of the WeatherAI.io platform at https://api.weatherai.io/mcp.

src/index.ts is a self-contained adaptation that can also be run standalone:

npm install
WEATHERAI_API_KEY=your_key npm start

The standalone server listens on PORT (default 3000) and exposes the same /mcp endpoint.



License

MIT — see LICENSE.

Built by Zoomash Ltd, England (Company No. 7838145).

الأسئلة الشائعة

ما هو io.github.weatherai-io/weatherai؟

WeatherAI — 11 live weather tools for Claude, Cursor, Windsurf and any MCP AI assistant

كيف أثبّت io.github.weatherai-io/weatherai؟

يعمل على جهازك. في Claude Code: claude mcp add weatherai -e 'YOUR_API_KEY=<your your_api_key>' -- npx -y @weatherai/mcp-server@1.0.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.weatherai-io/weatherai إلى مفتاح API؟

نعم. يتطلب YOUR_API_KEY، وتضبطها في إعداداته.

هل io.github.weatherai-io/weatherai مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.weatherai-io/weatherai؟

ينشره weatherai-io. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.