关于 Pirate Weather
Pirate Weather 是面向天气数据使用者的 MCP 服务,可查询指定坐标的完整预报或 GFS/ECMWF 网格数据。支持通过 Pipeworx 网关连接,也可作为本地 stdio 服务运行。
主要功能
- 01查询坐标天气预报
- 02获取 GFS/ECMWF 网格数据
- 03筛选预报数据段
- 04设置时间、语言和单位
适用场景
- 01查看地点的天气预报
- 02获取网格天气数据用于分析
MCP 相关
向 MCP 客户端提供 forecast 和 forecast_grid 工具,可通过 Pipeworx 网关或本地 stdio 连接。网关端点还包含共享元工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/pirate-weather/mcpclaude mcp add --transport http pipeworx-io-pirate-weather https://gateway.pipeworx.io/pirate-weather/mcp{"mcpServers":{"pipeworx-io-pirate-weather":{"type":"http","url":"https://gateway.pipeworx.io/pirate-weather/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-pirate-weather":{"type":"http","url":"https://gateway.pipeworx.io/pirate-weather/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-pirate-weather":{"type":"http","url":"https://gateway.pipeworx.io/pirate-weather/mcp"}}}{"mcpServers":{"pipeworx-io-pirate-weather":{"serverUrl":"https://gateway.pipeworx.io/pirate-weather/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/pirate-weather
Pirate Weather MCP — 兼容 Dark Sky 的天气预报 API。需要免费密钥(每月 10k 次)。
属于 Pipeworx — 一个将 AI Agent 连接到 1683+ 个实时数据源的 MCP 网关。
身份验证
- 平台:
PLATFORM_PIRATEWEATHER_KEY。自带密钥:?_apiKey=…。
工具
forecast(lat, lon, time?, exclude?, extend?, lang?, units?)— 指定地点的完整天气预报forecast_grid(lat, lon, time?, units?)— GFS/ECMWF 网格输出
exclude:以逗号分隔的 currently,minutely,hourly,daily,alerts。extend=hourly 会返回 168h 数据。units:us(默认值)| si | ca | uk | uk2。
数据源
https://api.pirateweather.net
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"pirate-weather": {
"url": "https://gateway.pipeworx.io/pirate-weather/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/pirate-weather/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 共享元工具 — ask_pipeworx、discover_tools、search_within、remember/recall,以及网关范围内的其他工具。因此,你看到的工具数量会多于此表:目前,单个工具包端点除了该工具包自身的工具外,还会列出约 30 个共享工具。连接的 initialize 响应会说明其确切范围,是当天情况的权威依据。
这是有意为之,并非意外的多路复用。元工具让范围受限的连接也能回答此工具包无法涵盖的问题 — 通过可跨整个目录路由的 ask_pipeworx — 无需再添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构定义占用的上下文超过路由功能带来的价值,请连接一次完整网关,而不是连接多个工具包端点。
或者连接完整的 Pipeworx 网关,直接列出所有工具包的工具,而不只是当前工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都会连接到同一个网关和相同的 1683+ 个数据源。唯一的区别是直接列出哪个工具包的工具;ask_pipeworx 可从任一端点访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/pirate_weather_forecast \
-H 'Content-Type: application/json' \
-d '{"lat":40.7128,"lon":-74.006}'
首次调用无需账户。检查任意工具:GET https://gateway.pipeworx.io/v1/tools/pirate_weather_forecast。查找工具包:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账户)
此软件包也可作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账户,也无需经由网关往返:
{
"mcpServers": {
"pirate-weather": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-pirate-weather"]
}
}
}
或者直接运行,以确认它能够启动:
npx -y @pipeworx/mcp-pirate-weather
它通过 stdin/stdout 使用 MCP,并为仅此工具包的工具响应 initialize/tools/list/tools/call — 不包含上文网关连接所提供的任何共享元工具。数据源相同,工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你也可以用通俗英语提问,而不必直接调用工具 — 此功能既适用于上文的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Pirate Weather data" })
网关会选择合适的工具并自动填写参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。