Weather MCP Server logo

Weather MCP Server

by devilcoder01

WeatherAPI.com MCP server for current conditions, forecasts, historical data, alerts, air quality, and related location information.

Install Weather MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

devilcoder01/weather-mcp-server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to your MCP client
    npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
    
  2. 2. Install
    git clone https://github.com/yourusername/Weather_mcp_server.git
    
  3. 3. Run
    cd Weather_mcp_server
    
  4. 4. Install
    2. Install dependencies using uv:
    
  5. 5. Install
    uv venv
    
  6. 6. Install
    uv pip install -e .
    

Overview

devilcoder01/weather-mcp-server connects AI assistants to WeatherAPI.com through a Python MCP implementation built with FastAPI and the MCP framework. Its tools cover current conditions, forecasts from one to 14 days, historical weather, alerts, air quality, astronomy, location lookup, time zones, and sports events. Reach for it when an assistant needs location-based weather data and related environmental details. Running it requires Python 3.13+, uv, and a WeatherAPI key.

Use cases

  • Check current conditions for a specified location
  • Retrieve a forecast for the next one to 14 days
  • Compare historical weather and air quality data
  • Look up alerts, local time, or astronomy details
  • Find weather information for a searched location

Key features

  • Current conditions and 1-14 day forecasts
  • Historical weather and weather alerts
  • Air quality information
  • Astronomy data including sunrise and moon phases
  • Location search and timezone information
  • Sports event data

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/26/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars24Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Weather MCP Server works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Weather MCP Server

devilcoder01/weather-mcp-server is an MCP server that connects AI assistants to WeatherAPI.com for weather information. Its tools cover current conditions, forecasts, historical data, alerts, air quality, astronomy, location search, time zones, and sports events. It runs with Python and requires a WeatherAPI key.

Install it manually with Python 3.13+, uv, and the project dependencies, or use the Smithery CLI for Claude Desktop. Manual setup uses `uv venv` followed by `uv pip install -e .`; then add the API key to a root-level `.env` file.

It requires a WeatherAPI.com API key stored as `WEATHER_API_KEY`. Add `WEATHER_API_KEY=your_api_key_here` to a `.env` file in the project root before starting the server.

Run `python main.py` from the project directory after installing dependencies and setting the API key. The application starts on `http://localhost:8000` by default.

The provided Smithery installation command targets Claude Desktop. The server uses the MCP framework and runs locally on port 8000, but a Cursor-specific setup command is not included.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWeather MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/devilcoder01-weather-mcp-server?style=directory)](https://allmcps.com/mcp/devilcoder01-weather-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/devilcoder01-weather-mcp-server"><img src="https://allmcps.com/api/badge/devilcoder01-weather-mcp-server?style=directory" alt="Weather MCP Server on AllMCPs" /></a>