weather-mcp

yqx-wlb/weather-mcp

3.1

If you are the rightful owner of weather-mcp 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 is a Weather MCP server providing weather services.

Weather MCP for Cursor

这是一个提供天气服务的 MCP 服务器。

手动配置(推荐)

  1. 打开 Cursor
  2. 进入设置 (Command + ,)
  3. 点击 "MCP Servers"
  4. 添加新的 MCP 服务器配置:
{
  "mcpServers": {
    "mcp-server-hotnews": {
      "command": "npx",
      "args": [
        "-y", 
        "mcp-server-hotnews"
      ]
    }
  }
}

功能

  • 获取天气预报
  • 获取天气警报
  • 支持经纬度查询

使用示例

// 获取天气预报
await mcp_weather_get_forecast({
  latitude: 39.9042,
  longitude: 116.4074,
});

// 获取天气警报
await mcp_weather_get_alerts({
  state: "CA",
});

开发

# 安装依赖
npm install

# 构建
npm run build

# 运行
npm start

许可证

ISC