这是一个基于FastAPI和MCP框架构建的天气数据MCP服务器。此服务器提供了各种与天气相关的工具,AI助手可以使用这些工具来获取当前天气状况、预报、空气质量数据等信息。
要通过Smithery自动安装Weather Data Server for Claude Desktop:
npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
克隆此仓库:
git clone https://github.com/yourusername/Weather_mcp_server.git
cd Weather_mcp_server
使用uv安装依赖项:
uv venv
uv pip install -e .
在项目根目录创建一个.env文件,并添加你的WeatherAPI密钥:
WEATHER_API_KEY=your_api_key_here
运行服务器:
python main.py
默认情况下,服务器将在http://localhost:8000启动。
本项目采用MIT许可证 - 详情见LICENSE文件。 </中文翻译>