天気MCPツール(インド向け)
OpenWeatherMap API を使用して以下を提供する MCP (Model Context Protocol) サーバー:
リアルタイムの気象状況
5日間の天気予報
大気質データ
場所検索
🚀 セットアップ
Python 3.10 以上が必要です。
依存関係をインストールします:
pip install -r requirements.txtOpenWeatherMapからAPI キーを取得します。
ルート フォルダーに**
.env
ファイルを作成します**。OPENWEATHER_API_KEY=your_api_key_here
🛠 利用可能なツール
get_current_weather(location: str)
指定された場所の現在の天気を返します。
get_weather_forecast(location: str, days: int = 5)
指定した場所の天気予報(最大 5 日間)を返します。
get_air_quality(location: str)
空気の質の指標と AQI レベルを返します。
search_location(query: str)
クエリに基づいて最大 5 つの場所の一致を返します。
🧪 出力例(インド)
現在の天気(デリー)
天気予報(ムンバイ)
空気の質(バンガロール)
場所検索
🧰 エラー処理
すべてのツールは明確なエラー メッセージを返します。
📌 注意事項
.env
ファイルが正しく構成されていることを確認します。API キーの有効化には時間がかかる場合があります。
OpenWeatherMap の無料利用枠: 1 分あたり 60 回の API 呼び出し。
🧑💻 サーバーを実行する
実行すると、このサーバーを Claude Desktop などの MCP 互換クライアントやその他の自動化ツールで使用できるようになります。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
OpenWeatherMap API を使用して、リアルタイムの気象状況、予報、空気質データ、および場所検索機能を提供する、インドに特化した MCP サーバーです。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.Last updated -12MIT License
- -securityFlicense-qualityAn MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.Last updated -1
- -securityAlicense-qualityAn MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.Last updated -3MIT License
- -securityFlicense-qualityAn MCP server that provides weather information like forecasts and alerts for US locations using the National Weather Service API.Last updated -4