天気MCPサーバー
Open-Meteo API を使用して天気情報を提供するモデルコンテキストプロトコル (MCP) サーバー。
特徴
- 指定された都市の現在の天気情報を取得します。
インストール
Pip のインストールと使用方法、このパッケージは pip を使用してインストールできます。
このサーバーは、 cline_mcp_settings.json
ファイルに構成を追加することで手動でインストールできるように設計されています。
cline_mcp_settings.json
ファイルのmcpServers
オブジェクトに次のエントリを追加します。
cline_mcp_settings.json
ファイルを保存します。
構成
このサーバーはAPIキーを必要としません。無料のオープンソースであるOpen-Meteo APIを使用しています。
使用法
このサーバーは、 get_weather
、 get_weather_by_datetime_range
、 get_current_datetime
などのツールを提供します。
get_weather
指定された都市の現在の天気情報を取得します。
パラメータ:
city
(文字列、必須): 都市の名前。
例:
台北の天気を取得するには、次のようなツールを使用します。
get_weather_by_datetime_range
開始日から終了日までの間の指定された都市の天気情報を取得します。
パラメータ:
city
(文字列、必須): 都市の名前。start_date
(文字列、必須): YYYY-MM-DD (ISO 8601) 形式での開始日。end_date
(文字列、必須): YYYY-MM-DD (ISO 8601) 形式の終了日。
例:
2024 年 1 月 1 日から 2024 年 1 月 7 日までのロンドンの天気を取得するには、次のようなツールを使用します。
get_current_datetime
指定されたタイムゾーンの現在の時刻を取得します。
パラメータ:
timezone_name
(文字列、必須): IANAタイムゾーン名(例: 'America/New_York'、'Europe/London')。ユーザーがタイムゾーンを指定しない場合は、UTCタイムゾーンを使用します。
例:
ニューヨークの現在の時刻を取得するには、次のようなツールを使用します。
開発者向け
Python を実行する前に作業ディレクトリを変更する
または、どこから実行しても Python がパッケージを見つけられるようにしたい場合は、PYTHONPATH を設定できます。
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.
API キーを必要とせず、Open-Meteo API を使用して指定された都市の現在の天気情報を取得するモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.Last updated -Python
- -securityFlicense-qualityA production-ready Model Context Protocol server that provides weather data from OpenWeatherMap API, allowing users to query current weather by city name or coordinates with support for different temperature units.Last updated -Python
- AsecurityAlicenseAqualityA Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.Last updated -1110JavaScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that interfaces with OpenWeatherMap API to provide real-time weather information and forecasts for cities worldwide.Last updated -Python