
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 分
请在仓库或注册中心条目中声明许可证。