by sjanaX01
Provides AI assistants with real‑time weather conditions, forecasts, historical data, alerts, air‑quality metrics, astronomy information, location search, timezone details, and sports event schedules via a FastAPI‑based MCP endpoint.
What is Weather MCP Server about?
A FastAPI service exposing a Model Context Protocol (MCP) interface that delivers comprehensive weather‑related data—current conditions, multi‑day forecasts, historical records, alerts, air quality, sunrise/sunset times, moon phases, location lookup, timezone info, and sports events.
How to use Weather MCP Server?
.env
file (WEATHER_API_KEY
).python main.py
to start the FastAPI app (default URL: http://localhost:8000
).Key features of Weather MCP Server
Use cases of Weather MCP Server
FAQ
.env
file as WEATHER_API_KEY
.npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
.Installation
npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
git clone https://github.com/sjanaX01/weather-mcp-server.git
cd weather-mcp-server
uv venv
uv pip install -e .
echo "WEATHER_API_KEY=your_api_key" > .env
python main.py
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.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "weather-mcp-server": { "command": "npx", "args": [ "-y", "@devilcoder01/weather-mcp-server" ], "env": { "WEATHER_API_KEY": "<YOUR_API_KEY>" } } } }