{"_id":"@ctermiii/weather-mcp-server","_rev":"3-d201fe05ab31dd7a2622fd27356b7d79","name":"@ctermiii/weather-mcp-server","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@ctermiii/weather-mcp-server","version":"1.0.0","keywords":["mcp","weather","open-meteo","model-context-protocol","llm","claude","forecast","chinese","temperature","precipitation"],"author":{"name":"wanli"},"license":"MIT","_id":"@ctermiii/weather-mcp-server@1.0.0","maintainers":[{"name":"ctermiii","email":"ctermiii@gmail.com"}],"homepage":"https://github.com/wanli/weather-mcp-server#readme","bugs":{"url":"https://github.com/wanli/weather-mcp-server/issues"},"bin":{"weather-mcp-server":"index.js"},"dist":{"shasum":"89006c204fe299840dff95b82c655877cecc6477","tarball":"https://registry.npmjs.org/@ctermiii/weather-mcp-server/-/weather-mcp-server-1.0.0.tgz","fileCount":4,"integrity":"sha512-pb37y/U2+48qIkiaQEImTHRpCdg7KR2DF7rrmGv1vzjis0r7GCCVDuj/3aEZwCB7NhFo04w7c8C/6iATNyOGsA==","signatures":[{"sig":"MEUCIQDIZChQ5VgNLVbiosRtMILdgdXazIr9Ujn02bpDefw4iAIgf6ds0DXHU6Gw0n9so7Il8hNBduo3iX0Cv8ji2q8W/OI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14040},"main":"index.js","type":"module","engines":{"node":">=18.0.0"},"scripts":{"test":"node test.js","start":"node index.js"},"_npmUser":{"name":"ctermiii","email":"ctermiii@gmail.com"},"repository":{"url":"git+https://github.com/wanli/weather-mcp-server.git","type":"git"},"_npmVersion":"11.4.2","description":"MCP server for fetching weather data from Open-Meteo API with support for Chinese city names, 7-day forecast, temperature, wind, comfort index, and precipitation","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@modelcontextprotocol/sdk":"^1.0.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weather-mcp-server_1.0.0_1760667099897_0.5474124544374344","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@ctermiii/weather-mcp-server","version":"1.1.0","keywords":["mcp","weather","open-meteo","model-context-protocol","llm","claude","forecast","chinese","temperature","precipitation","uv-index","pm2.5","air-quality"],"author":{"name":"wanli"},"license":"MIT","_id":"@ctermiii/weather-mcp-server@1.1.0","maintainers":[{"name":"ctermiii","email":"ctermiii@gmail.com"}],"homepage":"https://github.com/wanli/weather-mcp-server#readme","bugs":{"url":"https://github.com/wanli/weather-mcp-server/issues"},"bin":{"weather-mcp-server":"index.js"},"dist":{"shasum":"ada26c7961cb1f6534349882f3e29f5658e60ea7","tarball":"https://registry.npmjs.org/@ctermiii/weather-mcp-server/-/weather-mcp-server-1.1.0.tgz","fileCount":4,"integrity":"sha512-u/6JccV83eDPC5/NDt4I6QtSBDmSUJ9d2z/UAURNrENJBIpMhtjzWVJcBtnuSb43EyISSzre5HS86Iqh7i2ahQ==","signatures":[{"sig":"MEQCIHXebPwIAh9qpSWTc4bKFcLLZPGr2LuMS1tcDwnEvYwjAiArCf8XZcwPkJ6+5zQxF4ZrYbZPRpDfdd33hJPvM/l/fA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16365},"main":"index.js","type":"module","engines":{"node":">=18.0.0"},"scripts":{"test":"node test.js","start":"node index.js"},"_npmUser":{"name":"ctermiii","email":"ctermiii@gmail.com"},"repository":{"url":"git+https://github.com/wanli/weather-mcp-server.git","type":"git"},"_npmVersion":"11.4.2","description":"MCP server for fetching weather data from Open-Meteo API with support for Chinese city names, 1-16 days forecast, temperature, wind, comfort index, precipitation, UV index, and PM2.5/PM10 air quality","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@modelcontextprotocol/sdk":"^1.0.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weather-mcp-server_1.1.0_1760668696364_0.28311065200847096","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@ctermiii/weather-mcp-server","version":"1.1.1","description":"MCP server for fetching weather data from Open-Meteo API with support for Chinese city names, 1-16 days forecast, temperature, wind, comfort index, precipitation, UV index, and PM2.5/PM10 air quality","type":"module","main":"index.js","bin":{"weather-mcp-server":"index.js"},"scripts":{"start":"node index.js","test":"node test.js"},"keywords":["mcp","weather","open-meteo","model-context-protocol","llm","claude","forecast","chinese","temperature","precipitation","uv-index","pm2.5","air-quality"],"author":{"name":"wanli"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/wanli/weather-mcp-server.git"},"bugs":{"url":"https://github.com/wanli/weather-mcp-server/issues"},"homepage":"https://github.com/wanli/weather-mcp-server#readme","engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.4"},"_id":"@ctermiii/weather-mcp-server@1.1.1","_nodeVersion":"24.1.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-/872/tX3hq/rsWf279AcB6jMDTXCHZ/Div/QmOIyzt9kghO1h+QW1xh4EqE62r1rw6I/zlKAZAcSJQeWyr6/5w==","shasum":"dfe2281e11d7eb4a9a141ba82422d2e5ff6bcbac","tarball":"https://registry.npmjs.org/@ctermiii/weather-mcp-server/-/weather-mcp-server-1.1.1.tgz","fileCount":4,"unpackedSize":18555,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDM3onSRfap7vO9lZ75QrlhmA4OwsxERyAjaHWr3lEKCQIhAPrKgyf/XQ976ZL1WJ6vpj4GLnCI3Nv7jUQCzOeGiXBQ"}]},"_npmUser":{"name":"ctermiii","email":"ctermiii@gmail.com"},"directories":{},"maintainers":[{"name":"ctermiii","email":"ctermiii@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/weather-mcp-server_1.1.1_1760669042656_0.5918875902205032"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-17T02:11:39.761Z","modified":"2025-10-17T02:44:03.045Z","1.0.0":"2025-10-17T02:11:40.072Z","1.1.0":"2025-10-17T02:38:16.621Z","1.1.1":"2025-10-17T02:44:02.858Z"},"bugs":{"url":"https://github.com/wanli/weather-mcp-server/issues"},"author":{"name":"wanli"},"license":"MIT","homepage":"https://github.com/wanli/weather-mcp-server#readme","keywords":["mcp","weather","open-meteo","model-context-protocol","llm","claude","forecast","chinese","temperature","precipitation","uv-index","pm2.5","air-quality"],"repository":{"type":"git","url":"git+https://github.com/wanli/weather-mcp-server.git"},"description":"MCP server for fetching weather data from Open-Meteo API with support for Chinese city names, 1-16 days forecast, temperature, wind, comfort index, precipitation, UV index, and PM2.5/PM10 air quality","maintainers":[{"name":"ctermiii","email":"ctermiii@gmail.com"}],"readme":"# Weather MCP Server\n\n基于 Open-Meteo API 的 MCP (Model Context Protocol) 天气服务器，为 LLM 大模型提供实时天气查询功能。\n\n## 功能特性\n\n- 支持中英文城市名称查询\n- 自动地理编码（城市名→坐标）\n- 获取7天天气预报\n- 详细的天气信息包括：\n  - **温度**: 最高/最低温度、体感温度\n  - **风力**: 风速、阵风、风向\n  - **舒适度**: 基于温度和湿度的舒适度评估\n  - **天气状况**: 晴、雨、雪等详细描述\n  - **降水信息**: 降水量、降雨量、降雪量\n  - **其他**: 日出日落时间、湿度等\n\n## 安装\n\n```bash\nnpm install\n```\n\n## 使用方法\n\n### 1. 配置 MCP 客户端\n\n在 Claude Desktop 或其他 MCP 客户端的配置文件中添加：\n\n**MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"command\": \"node\",\n      \"args\": [\"/Users/wanli/.config/mcp/weather-mcp-metro/index.js\"]\n    }\n  }\n}\n```\n\n### 2. 启动服务器\n\n```bash\nnpm start\n```\n\n### 3. 在 LLM 中使用\n\n服务器提供了一个工具 `get_weather`，可以通过以下方式调用：\n\n```\n请帮我查询北京的天气\n```\n\n或\n\n```\nWhat's the weather like in Shanghai?\n```\n\n## API 说明\n\n### get_weather\n\n获取指定城市的天气预报信息。\n\n**参数:**\n- `city` (string, 必需): 城市名称，支持中英文\n\n**返回示例:**\n\n```json\n{\n  \"城市信息\": {\n    \"名称\": \"Beijing\",\n    \"国家\": \"China\",\n    \"坐标\": \"39.9075, 116.39723\",\n    \"时区\": \"Asia/Shanghai\"\n  },\n  \"当前天气\": {\n    \"时间\": \"2025-10-17T10:00\",\n    \"温度\": \"18°C\",\n    \"体感温度\": \"16°C\",\n    \"湿度\": \"65%\",\n    \"天气状况\": \"部分多云\",\n    \"风速\": \"12 km/h\",\n    \"风向\": \"东北\",\n    \"舒适度\": \"舒适\"\n  },\n  \"七天预报\": [\n    {\n      \"日期\": \"2025-10-17\",\n      \"最高温度\": \"22°C\",\n      \"最低温度\": \"14°C\",\n      \"天气状况\": \"部分多云\",\n      \"降水量\": \"0mm\",\n      \"降雨量\": \"0mm\",\n      \"降雪量\": \"0cm\",\n      \"最大风速\": \"15 km/h\",\n      \"最大阵风\": \"25 km/h\",\n      \"主导风向\": \"东\",\n      \"日出\": \"2025-10-17T06:30\",\n      \"日落\": \"2025-10-17T18:15\",\n      \"舒适度\": \"舒适\"\n    }\n    // ... 其余6天\n  ]\n}\n```\n\n## 技术细节\n\n### 数据来源\n\n- **地理编码 API**: `https://geocoding-api.open-meteo.com/v1/search`\n- **天气数据 API**: `https://api.open-meteo.com/v1/forecast`\n\n### 天气参数\n\n- `temperature_2m_max/min`: 最高/最低温度\n- `weathercode`: 天气代码（自动转换为中文描述）\n- `precipitation_sum`: 总降水量\n- `rain_sum`: 降雨量\n- `snowfall_sum`: 降雪量\n- `windspeed_10m_max`: 最大风速\n- `windgusts_10m_max`: 最大阵风\n- `winddirection_10m_dominant`: 主导风向\n- `sunrise/sunset`: 日出日落时间\n- `relative_humidity_2m`: 相对湿度\n- `apparent_temperature`: 体感温度\n\n### 舒适度评级\n\n基于体感温度和湿度计算：\n- 非常寒冷 (< 0°C)\n- 寒冷 (0-10°C)\n- 凉爽 (10-16°C)\n- 舒适 (16-24°C)\n- 温暖 (24-28°C)\n- 炎热 (28-32°C)\n- 酷热 (> 32°C)\n\n同时考虑湿度影响（高湿度/干燥提示）\n\n## 依赖项\n\n- `@modelcontextprotocol/sdk`: MCP SDK\n\n## 许可证\n\nMIT\n\n## 注意事项\n\n- Open-Meteo API 是免费开源的，无需 API 密钥\n- 数据更新频率取决于 Open-Meteo 服务\n- 建议合理使用，避免过于频繁的请求\n","readmeFilename":"README.md"}