HeFeng Weather
STDIOMCP server providing weather forecast data for China through HeFeng Weather API.
MCP server providing weather forecast data for China through HeFeng Weather API.
一个基于 Model Context Protocol (MCP) 的天气服务器,通过 wttr.in 免费天气 API 提供天气查询和日期时间查询功能。
A Model Context Protocol server that provides weather forecast and datetime query features through the free wttr.in weather API.
此 MCP 服务器提供以下两个工具:
获取指定地点的天气预报数据。
参数 / Parameters:
location (必填): 需要查询的城市名称、邮政编码或经纬度坐标
'beijing', '90210', '40.71,-74.00'days (可选): 预报类型,默认为 '3d'
'now' - 获取实时天气'3d' - 获取三天天气预报返回内容:
获取当前日期和时间。
参数 / Parameters:
timezone (可选): 时区,默认为 'Asia/Shanghai'
'America/New_York', 'Europe/London'返回内容:
将以下配置添加到 claude_desktop_config.json:
{ "mcpServers": { "wttr-mcp-server": { "command": "npx", "args": ["wttr-mcp-server@latest"] } } }
# 安装依赖 npm install # 构建项目 npm run build # 在配置文件中使用本地路径 { "mcpServers": { "wttr-mcp-server": { "command": "node", "args": ["/path/to/wttr-mcp-server/dist/index.js"] } } }
ISC