weather-mcp
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.
这是一个使用 OpenWeather API 获取天气数据和空气质量的 Model Context Protocol (MCP) 服务器。
天气 MCP 服务器是一个基于 OpenWeather API 的应用程序,旨在提供全球城市的天气预报和空气质量信息。用户可以通过 MCP 客户端(如 Anthropic Claude Desktop)连接到该服务器,获取最多 5 天的天气预报和当前空气质量数据。该服务器使用 FastMCP 框架来实现 MCP 协议,并通过 Python 的 requests 库与 OpenWeather API 进行交互。用户需要具备 Python 3.11+ 环境和有效的 OpenWeather API 密钥才能运行该服务器。
Features
- 获取任何城市的详细天气预报(最多 5 天)
- 获取任何城市的当前空气质量信息