Skip to main content
Glama

Weather MCP Server

by akaramanapp

天気MCPサーバー

米国国立気象局(NWS)APIを使用して、米国各地の気象情報と警報を提供するモデルコンテキストプロトコル(MCP)サーバーです。このサーバーは、モデルコンテキストプロトコルを介してAIエージェントが使用できるように設計されています。

特徴

  • 米国のどの州の天気警報も受信できるツール
  • 座標を使用して米国の任意の場所の詳細な天気予報を取得するためのツール
  • 気温、風の状況、短い予報の説明をサポート
  • 国立気象局からのリアルタイムデータ

前提条件

  • Node.js (v16 以上)
  • npm または yarn パッケージマネージャー

インストール

  1. リポジトリをクローンします。
git clone https://github.com/akaramanapp/weather-mcp-server.git cd weather-mcp-server
  1. 依存関係をインストールします:
npm install
  1. アプリケーションをビルドします。
npm run build

MCPツール

サーバーは、AI エージェントが使用できる 2 つの MCP ツールを提供します。

アラートを取得する

特定の米国の州の天気警報を取得します。

パラメータ:

  • state : 2文字の州コード(例:CA、NY)

応答例:

{ "content": [ { "type": "text", "text": "Active alerts for CA: ..." } ] }

予測を取得する

座標を使用して特定の場所の天気予報を取得します。

パラメータ:

  • latitude : 場所の緯度 (-90 ~ 90)
  • longitude : 場所の経度 (-180 ~ 180)

応答例:

{ "content": [ { "type": "text", "text": "Morning: Temperature: 72°F, Wind: 5mph NW, Partly cloudy..." } ] }

プロジェクト構造

weather/ ├── src/ │ └── index.ts # Main server code with MCP tool implementations ├── build/ # Compiled JavaScript files ├── package.json # Project dependencies and scripts └── tsconfig.json # TypeScript configuration

技術的な詳細

  • TypeScriptで構築
  • モデルコンテキストプロトコル(MCP)サーバーを実装します
  • MCP サーバーの実装には @modelcontextprotocol/sdk を使用します
  • 国立気象局 (NWS) API とのインターフェース
  • Node16モジュール解決によるES2022ターゲット

発達

サーバーを変更または拡張するには:

  1. src/index.tsファイルに変更を加える
  2. アプリケーションを再構築します。
npm run build

依存関係

  • @modelcontextprotocol/sdk: MCP サーバー実装フレームワーク
  • zod: ツールパラメータのランタイム型チェックと検証
  • TypeScript: 型安全性のための開発依存性

ライセンス

ISC

注記

  • このサーバーは国立気象サービスAPIを使用しているため、米国の場所でのみ機能します。
  • APIリクエストはレート制限があり、User-Agentヘッダーが必要です。
  • すべての座標は10進度形式で入力する必要があります
  • これはスタンドアロンのCLIアプリケーションではなく、モデルコンテキストプロトコルを通じてAIエージェントにツールを提供するサーバーです。
Install Server
A
security – no known vulnerabilities
F
license - not found
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.

National Weather Service API を使用して米国の各地の気象警報や詳細な予報を取得するためのツールを AI エージェントに提供するモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. 前提条件
      1. インストール
        1. MCPツール
          1. アラートを取得する
          2. 予測を取得する
        2. プロジェクト構造
          1. 技術的な詳細
            1. 発達
              1. 依存関係
                1. ライセンス
                  1. 注記

                    Related MCP Servers

                    • -
                      security
                      -
                      license
                      -
                      quality
                      Provides a Model Context Protocol server that enables large language models to query and retrieve real-time weather forecasts for cities and regions across China.
                      Last updated -
                      Python
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A Model Context Protocol server that provides comprehensive weather data querying capabilities based on the Caiyun Weather API, supporting real-time weather, forecasts, and alerts with multi-language support.
                      Last updated -
                      7
                      2
                      TypeScript
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A customizable Model Context Protocol server implementation that enables AI models to interact with external tools including weather queries, Google search, and camera control functionality.
                      Last updated -
                      8
                      Python
                      Apache 2.0
                      • Linux
                      • Apple
                    • -
                      security
                      -
                      license
                      -
                      quality
                      A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.
                      Last updated -
                      Python

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/akaramanapp/weather-mcp-server'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server