# devilcoder01/weather-mcp-server [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/devilcoder01/weather-mcp-server  
**GitHub Stars:** 24  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/devilcoder01-weather-mcp-server

## Description
Access real-time weather data for any location using the WeatherAPI.com API, providing detailed forecasts and current conditions.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/devilcoder01/weather-mcp-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Add to your MCP client:

```sh
npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
```

2. Install:

```sh
git clone https://github.com/yourusername/Weather_mcp_server.git
```

3. Run:

```sh
cd Weather_mcp_server
```

4. Install:

```sh
2. Install dependencies using uv:
```

5. Install:

```sh
uv venv
```

6. Install:

```sh
uv pip install -e .
```

## Documentation

## What devilcoder01/weather-mcp-server does

devilcoder01/weather-mcp-server exposes WeatherAPI.com data to MCP-compatible AI assistants. It is designed for weather queries tied to a location, with coverage that extends beyond current conditions and forecasts. The available capabilities include:

- Current weather conditions
- Forecasts for one to 14 days
- Historical weather data
- Weather alerts
- Air quality information
- Sunrise, sunset, and moon-phase data
- Location search
- Time zone information
- Sports events

This range makes the server suitable for assistants that need to answer practical weather questions, compare conditions across places, or combine weather with time and astronomy information.

## How it works

The implementation uses Python, FastAPI, and the MCP framework. Weather data comes from WeatherAPI.com, so requests depend on an API key issued by that service. After the server starts, an MCP-compatible assistant can invoke the weather-related capabilities and receive data for the requested location or time range.

The default local address is `http://localhost:8000`. The application is started with `python main.py`, allowing the MCP service to run locally while the connected assistant sends requests to it.

## Setup and configuration

Python 3.13 or newer and the `uv` package manager are required. Manual setup consists of cloning the repository, entering its directory, creating a virtual environment, and installing the project in editable mode:

```bash
uv venv
uv pip install -e .
```

Create a `.env` file in the project root and provide the WeatherAPI credential:

```env
WEATHER_API_KEY=your_api_key_here
```

Start the application with:

```bash
python main.py
```

The server also has a Smithery installation path for Claude Desktop:

```bash
npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
```

## Tools and capabilities

The server groups its MCP functionality around several types of WeatherAPI.com data:

- Current conditions for a location
- Multi-day forecasts covering one to 14 days
- Historical weather queries
- Weather alert retrieval
- Air quality data
- Astronomy details, including sunrise, sunset, and moon phases
- Location and place-name search
- Time zone lookup
- Sports event information

These capabilities support both immediate conditions and broader contextual queries, such as checking air quality, finding local time information, or examining historical weather.

## Limitations and notes

The service depends on WeatherAPI.com and therefore requires a valid `WEATHER_API_KEY` value before it can retrieve weather data. It is intended to run with Python 3.13 or newer and uses `uv` for dependency setup. By default, the application listens locally on port 8000. The available installation command through Smithery is aimed at Claude Desktop.

_Full upstream README: https://allmcps.com/mcp/devilcoder01-weather-mcp-server/readme_

