天気MCPサーバー
このプロジェクトは、天気情報を提供するモデルコンテキストプロトコル (MCP) サーバーです。
特徴
- 特定の緯度と経度の現在の天気予報を取得します。
- 米国の州の最新の気象警報を取得します。
設定
- 依存関係をインストールします:
- サーバーを構築します。
サーバーの実行
このサーバーは、Claude for Desktop などの MCP クライアントによって実行されるように設計されています。
Claude for Desktop(または同様のMCPクライアント)をこのサーバーを使用するように設定するには、構築したサーバーを指定する必要があります。一般的な設定では、以下を指定します。
- コマンド:
node
- 引数:
["/ABSOLUTE/PATH/TO/YOUR/PROJECT/mcptest/build/index.js"]
/ABSOLUTE/PATH/TO/YOUR/PROJECT/
システム上のmcptest
ディレクトリへの実際の絶対パスに置き換えます。
たとえば、プロジェクトが/Users/bohe/Desktop/mcptest
にある場合、引数は["/Users/bohe/Desktop/mcptest/build/index.js"]
になります。
MCP サーバーを追加および構成する方法の具体的な手順については、MCP クライアントのドキュメントを参照してください。
発達
- ソースコードは
src
ディレクトリにあります。 - メインのサーバー ロジックは
src/index.ts
にあります。 - ビルド出力は
build
ディレクトリにあります。
MCP構成
.vscode/mcp.json
ファイルは、VS Code がこの MCP サーバーを認識し、デバッグできるようにするために提供されています。
特定の場所の現在の天気予報と米国の各州のアクティブな天気警報を提供するモデル コンテキスト プロトコル サーバー。
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 -Python
Juhe Weather MCP Serverofficial
-security-license-qualityProvides 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- 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 -280TypeScript
- AsecurityFlicenseAqualityA 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 -72TypeScript