Back to MCP directory
publicPublicdnsLocal runtime

mcp-weather-server-rxs

基于TypeScript实现的MCP天气服务,提供天气预报和警报查询功能,数据源自美国国家气象局API。

article

README

🚀 MCP 天气服务器

MCP 天气服务器是一个使用 TypeScript 实现的基本 MCP 快速开始服务器。它包含两个实用工具,数据均从 https://api.weather.gov 查询获取,能为用户提供美国境内的天气相关服务。

🚀 快速开始

✨ 使用 Claude Desktop 设置

在 Claude 桌面的 AppData 中导航,若不存在 claude_desktop_config.json 文件则需创建。

  • Windows 路径C:/users/<Username>/AppData/Roaming/Claude
{
    "mcpServers": {
        "weather": {
            "command": "node",
            "args": ["<Drive>:\\PATH\\TO\\PROJECT\\build\\index.js"]
        }
    }
}

📚 详细文档

💻 使用示例

工具

  • get-forecast:根据客户端提示的区域(美国境内)获得经纬度,获取该位置的周天气预报。
  • get-alerts:根据客户端代币化(以州代码表示)获取当前任何警报。

🔧 故障排除

若遇到问题,可参见 MCP 文档 以获取故障排除技巧。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client