
Weather
io.github.eudoroolivares2016由 GitHub 帳號 eudoroolivares2016 發布v1.2.1更新於 Oct 24, 2026
An MCP server for weather information updating this value now.
概覽
一個精簡的本機 MCP 伺服器,讓助理依經緯度查詢美國國家氣象局預報,並依州代碼查詢生效中的天氣警報。
- 可以做什麼
- 依經緯度取得某地天氣預報
- 依兩位州代碼取得美國某州生效中的天氣警報
- 兩個工具都宣告輸出結構並回傳結構化內容
- 適用情境
- 適合在本機用戶端中讓助理查詢美國天氣預報或目前天氣警報,例如聊天工具或教學示範情境。它是範例性質的小型伺服器,並非完整的氣象平台。
- 執行需求
- 以 npm 套件 @eudoroolivares/mcp-weather-server 透過 stdio 在本機執行。需要 Node.js 24 以上版本與 npm 來安裝及建置,並需要連線至美國國家氣象局 API 的網路。未宣告帳號、API 金鑰、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Weather,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
A Simple MCP Weather Server written in TypeScript
A minimal MCP server that exposes US weather data from the National Weather Service API as two tools:
get-forecast– get the forecast for a location (takeslatitudeandlongitude)get-alerts– get active weather alerts for a US state (takes a two-letter state code)
This example accompanies the Build an MCP server tutorial.
Prerequisites
- Node.js 24+
- npm
Build and run
The server communicates over stdio, so running it directly just waits for a client on stdin. To see it in action, launch it from one of the client examples in this repository, for example:
Structured content
Both tools declare an outputSchema and return structuredContent. get-forecast returns an object; get-alerts returns a top-level JSON array, which protocol revision 2026-07-28 is the first to allow — see Structured Content in the spec.
serveStdio serves both protocol eras from one factory, and the SDK projects the array-rooted schema down to the {"result": [...]} form for a 2025-11-25 client, so adopting it costs older clients nothing. See the SDK documentation.
來源:weather-server-typescript/README.md,提交 55f75f3
工具
0版本歷史
1- v1.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。