Provides weather forecast data including current conditions and a 3-day outlook based on location via the Model Context Protocol (MCP), enabling seamless integration with LLM applications through Open-Meteo API.
Unlock the full potential of Weather MCP through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!
Model Context Protocol (MCP)を使用した天気予報アプリケーション
このアプリケーションは、Open-Meteo APIを使用して天気予報データを取得・表示するMCPサーバーです。MCPプロトコルを通じて、LLMアプリケーションから天気情報にアクセスすることができます。
pip install -e .
.env
ファイルを作成し、必要な環境変数を設定してください。MCP_API_KEY=your_api_key_here
MCP_BASE_URL=http://localhost:8000
python -m app.server
python -m app.client
指定した都市の現在の天気情報と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
Provides 8-day global weather forecasts and current conditions with detailed hourly and daily data, ...
Provides real-time and extended weather forecasts for locations in China using Model Context Protoco...
Provides Model Context Protocol (MCP) integration enabling large language models to perform advanced...
Provides seamless integration with Perplexity AI via Model Context Protocol, enabling chat, search, ...
Model Context Protocol server enabling seamless interaction with ArangoDB through core database oper...