Get real-time weather data for any location using weatherapi.
A Model Context Protocol (MCP) server for weather data, built with FastAPI and the MCP framework. This server provides various weather-related tools that can be used by AI assistants to retrieve current weather conditions, forecasts, air quality data, and more.
To install Weather Data Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
Clone this repository:
git clone https://github.com/yourusername/Weather_mcp_server.git
cd Weather_mcp_server
Install dependencies using uv:
uv venv
uv pip install -e .
Create a .env
file in the project root with your WeatherAPI key:
WEATHER_API_KEY=your_api_key_here
Run the server:
python main.py
The server will start on http://localhost:8000 by default.
This project is licensed under the MIT License - see the LICENSE file for details.