io.github.weatherai-io/weatherai

Official registry Maps, travel and weather

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

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 configuration (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>"
            }
        }
    }
}

Environment variables

  • YOUR_API_KEY required secret Your API key for the service

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  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).

Frequently asked questions

What is io.github.weatherai-io/weatherai?

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

How do I install io.github.weatherai-io/weatherai?

It runs on your machine. In Claude Code: claude mcp add weatherai -e 'YOUR_API_KEY=<your your_api_key>' -- npx -y @weatherai/mcp-server@1.0.0. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.weatherai-io/weatherai need an API key?

Yes. It expects YOUR_API_KEY, which you set in its configuration.

Is io.github.weatherai-io/weatherai open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.weatherai-io/weatherai?

It is published by weatherai-io. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.