MCP Weather

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 キーを環境変数としてエクスポートします。

export ACCUWEATHER_API_KEY=your_api_key_here

次に、次のコマンドで MCP Weather サーバーを直接実行します。

npx -y @timlukahorstmann/mcp-weather

または、スーパーゲートウェイ経由の HTTP/REST アクセスの場合:

npx -y supergateway --stdio "npx -y @timlukahorstmann/mcp-weather" \ --port 4004 \ --baseUrl http://127.0.0.1:4004 \ --ssePath /messages \ --messagePath /message \ --cors "*" \ --env ACCUWEATHER_API_KEY="$ACCUWEATHER_API_KEY"

MCP サーバー設定例

Claude Desktop またはその他の MCP 互換クライアントと統合するには、これを構成に追加します (例: claude_desktop_config.json )。

{ "mcpServers": { "weather": { "command": "npx", "args": ["-y", "@timlukahorstmann/mcp-weather"], "env": { "ACCUWEATHER_API_KEY": "your_api_key_here" } } } }

概要

このMCPサーバーは、Claudeのような大規模言語モデルがリアルタイムの気象データにアクセスすることを可能にします。LLMと統合することで、モデルは以下のことが可能になります。

  • 正確で最新の天気予報を取得します
  • あらゆる場所の1時間ごとの天気データを提供する
  • 気温、状況、その他の天気の詳細にアクセスします

前提条件

  • Node.js ≥18
  • AccuWeather API キー ( .envまたはシェル経由で設定)

設定

  1. このリポジトリをクローンします:
    git clone https://github.com/TimLukaHorstmann/mcp-weather.git cd mcp-weather
  2. 依存関係をインストールします:
    npm install
  3. AccuWeather API キーを取得します。
    • AccuWeather APIに登録する
    • 新しいアプリを作成し、APIキーを取得する
  4. API キーを使用して.envファイルを作成します。
    ACCUWEATHER_API_KEY=your_api_key_here
  5. プロジェクトをビルドします。
    npm run build

Claude Desktopでの使用

  1. この MCP サーバーを使用するように Claude Desktop を構成します。
    • クロードデスクトップを開く
    • 設定 > 開発者 > 設定の編集に移動します
    • claude_desktop_config.jsonに以下を追加します。
    { "mcpServers": { "weather": { "command": "npx", "args": ["-y", "@timlukahorstmann/mcp-weather"], "env": { "ACCUWEATHER_API_KEY": "your_api_key_here" } } } }
  2. Claudeデスクトップを再起動します
  3. 新しい会話で、プラグアイコンをクリックして「天気」を選択し、MCPサーバーを有効にします。
  4. 次のような天気予報をクロードに尋ねることができるようになりました。
    • 「ニューヨーク市の天気予報はどうですか?」
    • 「明日ロンドンは雨が降りますか?」
    • 「今日の午後、東京はどれくらい暑くなりますか?」

発達

  • 開発依存関係をインストール: 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.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

MCP天気

  1. クイックスタート
    1. MCP サーバー設定例
      1. 概要
        1. 前提条件
          1. 設定
            1. Claude Desktopでの使用
              1. 発達
                1. 貢献
                  1. 将来の機能強化
                    1. ライセンス

                      Related MCP Servers

                      • -
                        security
                        F
                        license
                        -
                        quality
                        An 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
                        • Linux
                        • Apple
                      • A
                        security
                        F
                        license
                        A
                        quality
                        MCP 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 -
                        2
                        3
                        Python
                        • Apple
                        • Linux
                      • -
                        security
                        F
                        license
                        -
                        quality
                        A 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 -
                        1
                        Python
                        • Linux
                        • Apple

                      View all related MCP servers

                      ID: xs8vlunfl8