Integrations
Provides hourly weather forecasts using the AccuWeather API, allowing access to real-time weather data including temperature, conditions, and other weather details for any location.
MCP 天気サーバー
AccuWeather API を使用して 1 時間ごとの天気予報を提供するモデル コンテキスト プロトコル (MCP) サーバー。
クイックスタート
AccuWeather API キーが必要です (無料レベルあり)。
ここでサインアップしてアプリを作成し、キーを取得してください。
API キーを環境変数としてエクスポートします。
次に、次のコマンドで MCP Weather サーバーを直接実行します。
または、スーパーゲートウェイ経由の HTTP/REST アクセスの場合:
MCP サーバー設定例
Claude Desktop またはその他の MCP 互換クライアントと統合するには、これを構成に追加します (例: claude_desktop_config.json
)。
概要
このMCPサーバーは、Claudeのような大規模言語モデルがリアルタイムの気象データにアクセスすることを可能にします。LLMと統合することで、モデルは以下のことが可能になります。
- 正確で最新の天気予報を取得します
- あらゆる場所の1時間ごとの天気データを提供する
- 気温、状況、その他の天気の詳細にアクセスします
前提条件
- Node.js ≥18
- AccuWeather API キー (
.env
またはシェル経由で設定)
設定
- このリポジトリをクローンします:Copy
- 依存関係をインストールします:Copy
- AccuWeather API キーを取得します。
- AccuWeather APIに登録する
- 新しいアプリを作成し、APIキーを取得する
- API キーを使用して
.env
ファイルを作成します。Copy - プロジェクトをビルドします。Copy
Claude Desktopでの使用
- この MCP サーバーを使用するように Claude Desktop を構成します。
- クロードデスクトップを開く
- 設定 > 開発者 > 設定の編集に移動します
claude_desktop_config.json
に以下を追加します。
Copy - Claudeデスクトップを再起動します
- 新しい会話で、プラグアイコンをクリックして「天気」を選択し、MCPサーバーを有効にします。
- 次のような天気予報をクロードに尋ねることができるようになりました。
- 「ニューヨーク市の天気予報はどうですか?」
- 「明日ロンドンは雨が降りますか?」
- 「今日の午後、東京はどれくらい暑くなりますか?」
発達
- 開発依存関係をインストール:
npm install
- コードをLintする:
npm run lint
- ビルド:
npm run build
- テストを実行:
npm test
- 開発モードで起動:
npm run dev
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
将来の機能強化
MCP Weather Server は常に改善に取り組んでいます。今後のリリースで検討している機能は以下のとおりです。
- **日次予報:**今後数日分の概要を取得するオプション。
- 拡張時間別予報: 12 時間を超える、たとえば 24 時間または 48 時間。
- **その他の構成オプション:**例: 入力による優先単位 (摂氏/華氏)。
他の機能についてのアイデアがある場合は、お気軽に問題を報告してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
You must be authenticated.
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.
Tools
MCP天気
Related MCP Servers
- -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 -Python
- 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-qualityA Model Control Protocol (MCP) based service that allows users to query weather forecasts by coordinates and receive weather alerts for U.S. states.Last updated -1Python
- PythonMIT License