天気MCPサーバー
このプロジェクトは、天気情報を提供するモデルコンテキストプロトコル (MCP) サーバーです。
特徴
特定の緯度と経度の現在の天気予報を取得します。
米国の州の最新の気象警報を取得します。
設定
依存関係をインストールします:
pnpm installサーバーを構築します。
pnpm run build
サーバーの実行
このサーバーは、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
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.Last updated -288MIT License
- -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
- AsecurityAlicenseAqualityA Model Context Protocol server that provides weather information and forecasts based on user location or address input.Last updated -634MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides real-time weather data and forecasts for any city.Last updated -111ISC License