WeatherAI MCP

WeatherAI MCP

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

Category
访问服务器

README

WeatherAI MCP Server

MCP Spec Tools Free Tier License

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.

Tool Tier Description Key Parameters
get_current_weather Standard Real-time conditions for any location location, units
get_weather_forecast Standard Daily & hourly forecast up to 14 days location, days (1–14), units
get_historical_weather Premium Actual past weather for any date location, date (YYYY-MM-DD), units
get_future_weather Premium Predictions 14–300 days ahead location, start_date, end_date, units
get_air_quality Standard AQI, PM2.5, PM10, CO, NO2, SO2, O3 location
get_weather_alerts Standard Active government weather warnings location
get_astronomy Standard Sunrise, sunset, moon phase & illumination location, date
get_solar_data Premium Solar irradiance & energy estimates location, date, units
get_timezone Standard UTC offset, local time, DST status location
search_locations Standard Find cities/places by partial name query
ask_ai_weather Premium Plain-English weather questions via Claude AI question

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:

Method Example
Query parameter https://api.weatherai.io/mcp?apiKey=YOUR_KEY
X-API-Key header X-API-Key: YOUR_KEY
Bearer token Authorization: Bearer YOUR_KEY

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


Pricing

Tier Free Allowance Overage
Standard tools 1,000 calls/day $0.0005 / call
Premium tools 50 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

File URL
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.


Links


License

MIT — see LICENSE.

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选