t-nakamura8/mcp-server-quickstart
3.1
If you are the rightful owner of mcp-server-quickstart and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project provides a quickstart sample for a Model Context Protocol (MCP) server, utilizing the National Weather Service (NWS) API to fetch weather forecasts for specified latitude and longitude.
Tools
1
Resources
0
Prompts
0
mcp-server-quickstart
このプロジェクトは、Model Context Protocol (MCP) サーバーのクイックスタート用サンプルです。米国気象庁(NWS)のAPIを利用して、指定した緯度・経度の天気予報を取得するツールを提供します。
構成
src/index.ts: MCPサーバーのメイン実装。NWS APIから天気予報を取得するツールを実装。build/: ビルド済みのファイル(例:index.js)。package.json,tsconfig.json: プロジェクト設定ファイル。
使い方
- 依存パッケージのインストール:
npm install - 必要に応じて
mcp.jsonを自分で作成・設定してください。- 例: サーバーのメタ情報やツールの定義などを記述します。
- ビルド:
npm run build - サーバーの起動:
npm start
提供ツール
get_forecast: 緯度・経度を指定して天気予報を取得します(米国内のみ対応)。
注意事項
- NWS APIは米国内の地点のみ対応しています。
User-Agentの指定が必要です。
ライセンス
MIT