Weatherai.io Mcp について
Weatherai.io Mcpは、MCP対応のAIアシスタントに、リアルタイムの天気、予報、過去の天気、空気質などのデータと自然言語での天気検索を提供します。場所ごとの気象・環境情報を使うワークフローに対応します。
主な機能
- 01現在の天気と最長14日間の予報
- 02過去の天気と長期予測の取得
- 03空気質と気象警報の確認
- 04天文情報、太陽光データ、タイムゾーンの検索
- 05自然な英語での天気質問
活用シーン
- 01旅行先の天気を確認して計画
- 02過去の日付の観測記録を確認
- 03地域の空気質や警報を確認
- 04日没時刻や太陽光データを調べる
MCP 対応
リモート HTTP エンドポイントを通じて、11種類の天気ツールをクライアントに公開し、APIキー認証に対応します。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
このサーバーのパッケージやリモートエンドポイントはまだ取得できていません。プロジェクトの README の手順に従ってください。
ツール
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
WeatherAI MCP サーバー
AI アシスタント向けの11種類のリアルタイム天気ツール — URLひとつで、セットアップ不要です。
WeatherAI MCP サーバーを使うと、Claude Desktop、Cursor、Windsurf、およびあらゆるMCP対応AI アシスタントから、リアルタイムの天気、予報、過去のデータ、空気質、天文学、太陽放射、および平易な英語で使えるAI天気インターフェースにすぐアクセスできます。
ホスト型エンドポイント: https://api.weatherai.io/mcp
トランスポート: Streamable HTTP(ステートレス、MCP spec 2025-03-26)
認証: クエリパラメーター、ヘッダー、またはBearerトークンによるAPIキー
無料枠: 1日あたり標準呼び出し1,000回 · プレミアム呼び出し50回
クイックスタート
1. 無料のAPIキーを取得する
weatherai.ioで登録してください。クレジットカードは不要です。
2. AIクライアントに追加する
ダッシュボードから取得したキーでYOUR_API_KEYを置き換えます。
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json(macOS)または
%APPDATA%\Claude\claude_desktop_config.json(Windows)を編集します。
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY"
}
}
}
保存後、Claude Desktopを再起動してください。
Cursor
Cursor → Settings → MCPに移動するか、~/.cursor/mcp.jsonを編集します。
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY"
}
}
}
Windsurf
~/.codeium/windsurf/mcp_config.jsonを編集します。
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY",
"type": "http"
}
}
}
その他のMCPクライアント(汎用のmcp.json)
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY",
"type": "http",
"transport": "streamable-http"
}
}
}
3. 天気について質問する
"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?"
利用可能なツール
11種類のツールはすべて自動で登録されます。設定は不要です。
| ツール | ティア | 説明 | 主なパラメーター |
|---|---|---|---|
get_current_weather | Standard | あらゆる場所のリアルタイムの天気 | location、units |
get_weather_forecast | Standard | 最大14日先までの日次・時間別予報 | location、days(1–14)、units |
get_historical_weather | Premium | 任意の日付の実際の過去の天気 | location、date(YYYY-MM-DD)、units |
get_future_weather | Premium | 14~300日先の予測 | location、start_date、end_date、units |
get_air_quality | Standard | AQI、PM2.5、PM10、CO、NO2、SO2、O3 | location |
get_weather_alerts | Standard | 政府が発令した有効な気象警報 | location |
get_astronomy | Standard | 日の出、日の入り、月相、照度 | location、date |
get_solar_data | Premium | 太陽放射とエネルギー推定値 | location、date、units |
get_timezone | Standard | UTCオフセット、現地時刻、DSTの状態 | location |
search_locations | Standard | 部分一致する名前から都市や場所を検索 | query |
ask_ai_weather | Premium | Claude AIによる平易な英語での天気に関する質問 | question |
ツールの詳細
get_current_weather
気温、体感温度、湿度、風速・風向、UVインデックス、視程、気圧、雲量を返します。
location (required) City name, US zip, UK postcode, lat/lon, or IP address
units (optional) "metric" | "imperial" — default: metric
get_weather_forecast
降水確率とUVインデックスを含む、最大14日先までの日ごとの最高・最低気温と時間ごとの詳細です。
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
過去の任意の日付について、時間ごとの実測天気を返します。
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で強化された、14~300日先までの長期予報です。リクエストごとにプレミアムクレジット2件を消費します。
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
リアルタイムのAQI指数と、各汚染物質の測定値(PM2.5、PM10、CO、NO2、SO2、O3)を返します。
location (required) City name, zip/postcode, coordinates, or IP address
get_weather_alerts
政府が発令した、発効中の暴風雨、洪水、熱波などの気象警報を返します。
location (required) City name, zip/postcode, coordinates, or IP address
get_astronomy
日の出、日の入り、月の出、月の入り、月相名、および照度の割合を返します。
location (required) City name, zip/postcode, coordinates, or IP address
date (optional) YYYY-MM-DD — defaults to today
get_solar_data
太陽放射量(W/m²)と、推定される1日あたりの発電量(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 タイムゾーン名、UTC オフセット(時間)、現在の現地時刻、夏時間の適用状況を示すフラグです。
location (required) City name, zip/postcode, coordinates, or IP address
search_locations
名前、地域、国、座標を含む、条件に一致する場所を最大 10 件返します。
query (required) Partial or full city/location name
ask_ai_weather ⭐
天気に関する質問を英語で自由に入力できます。AI が意図を解釈して関連するツールを呼び出し、自然言語での回答と基になる JSON データを返します。リクエストごとにプレミアムクレジットを 2 クレジット消費します。
question (required) e.g. "Will it be good weather for hiking in the Lake District next weekend?"
認証
次の 3 つの方法に対応しています。どれも同等です。
| 方法 | 例 |
|---|---|
| クエリパラメーター | https://api.weatherai.io/mcp?apiKey=YOUR_KEY |
X-API-Key ヘッダー | X-API-Key: YOUR_KEY |
| Bearer トークン | Authorization: Bearer YOUR_KEY |
クライアント設定ファイルにはクエリパラメーターを推奨します。プログラムからアクセスする場合はヘッダーを使用してください。
料金
| プラン | 無料利用枠 | 超過料金 |
|---|---|---|
| 標準ツール | 1,000 回/日 | 1 回あたり $0.0005 |
| プレミアムツール | 50 回/日 | 1 回あたり $0.001 |
クレジットは前払いです。ダッシュボードからチャージしてください。サブスクリプションは不要です。
標準ツール:get_current_weather、get_weather_forecast、get_air_quality、get_weather_alerts、get_astronomy、get_timezone、search_locations
プレミアムツール:get_historical_weather、get_future_weather、get_solar_data、ask_ai_weather
機械可読な情報
| ファイル | URL |
|---|---|
| MCP マニフェスト | /.well-known/mcp.json |
| LLM コンテキスト | /llms.txt |
| OpenAPI 仕様 | /openapi.yaml |
ソースコード
このリポジトリには MCP サーバーの実装が含まれています。サーバーは https://api.weatherai.io/mcp にある WeatherAI.io プラットフォームの一部として動作します。
src/index.ts は単体で実行できるように適合された実装です。
npm install
WEATHERAI_API_KEY=your_key npm start
スタンドアロンのサーバーは PORT(デフォルトは 3000)でリッスンし、同じ /mcp エンドポイントを公開します。
リンク
- ウェブサイト: weatherai.io
- MCP ドキュメント: weatherai.io/mcp
- API ドキュメント: weatherai.io/docs
- 料金: weatherai.io/pricing
- 登録: weatherai.io/register
ライセンス
MIT — LICENSE をご覧ください。
イングランドの Zoomash Ltd が開発しました(会社番号 7838145)。
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。