MCP 天気サーバー
このプロジェクトは、気象関連ツールを提供するモデルコンテキストプロトコル(MCP)サーバーのデモ実装です。サーバーは以下の2つのツールを公開しています。
get-alerts : 指定された米国の州のアクティブな気象警報を取得します。
get-forecast : 緯度と経度に基づいて特定の場所の天気予報を提供します。
特徴
Node.js を使用して構築されました。
気象データ取得用の MCP ツールを実装します。
正確で最新の気象情報を得るために、米国国立気象局 API を使用します。
前提条件
システムに Node.js がインストールされています。
MCP の概念とツールに関する知識。
設定
Smithery経由でインストール
Smithery経由で Claude Desktop 用の mcp-server-learn を自動的にインストールするには:
手動インストール
リポジトリをクローンします。
git clone <repository-url> cd weatherpnpm
を使用して依存関係をインストールします (プロジェクトで構成されているとおり)。pnpm installプロジェクトをビルドします。
pnpm build
構成
VSCodeのsettings.json
ファイルを更新して、このMCPサーバーを追加します。
リソース
米国国立気象局 API # mcp-server-learn
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 を使用して、緯度/経度座標に基づいて米国の各州の気象警報や予報を取得するためのツールを提供するモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityFlicense-qualityThis is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)Last updated -
- AsecurityFlicenseAqualityA Model Context Protocol server that provides AI agents with tools to retrieve weather alerts and detailed forecasts for US locations using the National Weather Service API.Last updated -288
- AsecurityFlicenseAqualityA Model Context Protocol server that provides current weather forecasts for specific locations and active weather alerts for US states.Last updated -2
- -securityFlicense-qualityA Model Context Protocol server that enables AI models to fetch weather alerts and detailed forecasts for US locations using the National Weather Service API.Last updated -88