Weather MCP
Weather MCP
Model Context Protocol (MCP)を使用した天気予報アプリケーション
概要
このアプリケーションは、Open-Meteo APIを使用して天気予報データを取得・表示するMCPサーバーです。MCPプロトコルを通じて、LLMアプリケーションから天気情報にアクセスすることができます。
Related MCP server: Weather MCP Server
機能
現在の天気情報の表示
3日間の天気予報の表示
位置情報に基づく天気情報の取得
MCPプロトコルを通じたアクセス
セットアップ
依存関係のインストール:
pip install -e .環境変数の設定:
.envファイルを作成し、必要な環境変数を設定してください。
MCP_API_KEY=your_api_key_here
MCP_BASE_URL=http://localhost:8000MCPサーバーの起動:
python -m app.serverクライアントの実行:
python -m app.clientMCPツール
get_weather
指定した都市の現在の天気情報と3日間の予報を取得します。
パラメータ:
city: 天気情報を取得する都市名(例: 東京、New York)
レスポンス例:
{
"location": {
"name": "東京",
"country": "日本",
"latitude": 35.6895,
"longitude": 139.6917,
"timezone": "Asia/Tokyo"
},
"current": {
"temperature": 22.5,
"feels_like": 23.1,
"humidity": 65,
"wind_speed": 3.2,
"wind_direction": 180,
"precipitation": 0,
"condition": "晴れ",
"weather_code": 1
},
"forecast": [
{
"date": "2023-04-10",
"max_temp": 24.5,
"min_temp": 15.2,
"precipitation": 0,
"condition": "晴れ",
"sunrise": "05:30",
"sunset": "18:15"
},
...
]
}ライセンス
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Open-Meteo tabanlı anahtarsız hava durumu tahmin MCP sunucusu.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that retrieves current weather information for specified cities using the Open-Meteo API, requiring no API key.8720 PyPI61Apache 2.0
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides weather information and forecasts based on user location or address input.612 npm8MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides real-time weather data and forecasts for any city.17 npmISC
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables natural language weather queries for global cities, integrating with OpenWeather API to provide real-time weather information in an easy-to-read format.1-