KNMI天気MCP
KNMI(オランダ王立気象研究所)の気象観測所からリアルタイムの気象データを提供するFastMCPサーバー。このアプリケーションは、オランダ国内の任意の場所に最も近い気象観測所から最新の10分間の測定値を取得します。
特徴
- オランダのあらゆる場所の天気データを入手
- 最寄りのKNMI気象観測所を自動的に検索します
- 以下を含むリアルタイム測定を提供します:
- 温度
- 湿度
- 風速と風向
- 降水量
- 可視性
- 空気圧
- 気象状況の自然言語解釈
- 場所検索機能
- 詳細なログ記録
前提条件
- Python 3.10以上
- KNMI API キー ( KNMI データ プラットフォームから取得)
uv
パッケージマネージャー
インストール
- リポジトリをクローンします。
- プロジェクト ルートに
.env
ファイルを作成します。
サーバーの実行
クロードAIの使用
このアプリケーションを Claude AI で使用するには、プロジェクトのフォルダーで次のコマンドを実行します。
これにより、Claude 構成ファイル (通常は~/Library/Application Support/Claude/claude_desktop_config.json
にあります) に次の構成が追加されます。
注: 次のようなエラーが表示された場合:
uv
コマンドをuv
コマンドのフルパスに置き換えます。*nix システムでは、 which uv
コマンドで確認できます。
手動実行
開発またはスタンドアロン使用の場合:
利用可能なツール
1. の天気はどうですか
オランダのあらゆる場所の現在の気象状況を自然言語で解釈します。
例:
2. get_location_weather
特定の場所の生の天気データを取得します。
例:
3. 検索場所
オランダの場所を検索します。
例:
4. 最寄り駅を取得する
指定された座標に最も近い KNMI 気象観測所を見つけます。
例:
ログ記録
アプリケーション ログはlogs/knmi_weather.log
ファイルに保存され、次の詳細情報が提供されます。
- APIリクエストとレスポンス
- 気象データ処理
- エラーメッセージ
- デバッグ情報
データソース
このアプリケーションは、KNMI データ プラットフォーム API を使用して、「Actuele10mindataKNMIstations」データセットからデータを取得します。このデータセットは、オランダのすべての KNMI 気象観測所からの 10 分間隔の測定値を提供します。
エラー処理
アプリケーションには、次の堅牢なエラー処理が含まれています。
- 無効な場所
- API認証の問題
- ネットワークの問題
- データ解析エラー
- 測定値が不足しています
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.
KNMI 気象観測所からのリアルタイム気象データを提供する FastMCP サーバー。ユーザーは自然言語クエリを通じて、オランダのあらゆる場所の気温、湿度、風速、その他の気象指標にアクセスできます。
Related Resources
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 -12PythonMIT 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 -1Python
- AsecurityFlicenseAqualityMCP server that provides Korean weather information using grid coordinates and the Korea Meteorological Administration API, allowing users to query current weather conditions and forecasts for specific locations in Korea.Last updated -23Python
- -securityFlicense-qualityAn MCP server that provides weather information like forecasts and alerts for US locations using the National Weather Service API.Last updated -1JavaScript