MCP Connector

Access Comprehensive Weather Data

Weather MCP Server gives AI assistants current conditions, 14-day forecasts, air quality, astronomy, and weather alerts.

Works with weatherapi

77
Spark score
out of 100
Updated 11 months ago
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Integrate a robust weather data service into your applications. This MCP server provides access to current conditions, forecasts, historical data, air quality, and astronomical information via WeatherAPI.

Outcomes

What it gets done

01

Retrieve current weather conditions and forecasts (1-14 days).

02

Access historical weather data and air quality information.

03

Obtain astronomical data like sunrise, sunset, and moon phases.

04

Search for weather data by location and retrieve timezone details.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-weather-mcp-server | bash

Capabilities

Tools your agent gets

get_current_weather

Retrieve current weather conditions for a specified location

get_weather_forecast

Get weather forecast data for 1-14 days ahead

get_historical_weather

Retrieve historical weather data for a location

get_weather_alerts

Fetch active weather alerts for a specified location

get_air_quality

Get air quality information and pollution data

get_astronomical_data

Retrieve sunrise, sunset, and moon phase information

search_location

Search for locations and get geographic information

get_timezone_info

Get timezone information for a specified location

get_sports_events

Retrieve sports events data for a location

Overview

weather-mcp-server MCP Server

Weather MCP Server connects an AI assistant to WeatherAPI, providing current conditions, multi-day forecasts, historical data, alerts, air quality, and astronomy information for any location. Use it whenever an assistant needs real weather data - forecasts, alerts, air quality, or astronomy details; requires a WeatherAPI account and key.

What it does

Weather MCP Server is a FastAPI-based Model Context Protocol server that gives AI assistants access to weather data via the WeatherAPI service. It covers current conditions, forecasts up to 14 days out, historical weather, active weather alerts, air quality, astronomy data like sunrise/sunset and moon phases, location search, timezone information, and sports event data.

When to use - and when NOT to

Use this when you want an assistant to answer weather-related questions with real data - checking today's conditions, planning around a multi-day forecast, looking up air quality, or finding sunrise/sunset times for a location. It's a straightforward weather-data lookup layer. It is not useful without a WeatherAPI account and API key, and it depends entirely on WeatherAPI's coverage and accuracy for the data it returns.

Capabilities

  • Current weather conditions for a location.
  • Weather forecasts spanning 1-14 days.
  • Historical weather data lookups.
  • Active weather alerts for a location.
  • Air quality information.
  • Astronomy data: sunrise, sunset, and moon phases.
  • Location search and timezone information.
  • Sports events data.

How to install

Install via Smithery for Claude Desktop:

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

Or install manually:

git clone https://github.com/yourusername/Weather_mcp_server.git
cd Weather_mcp_server
uv venv
uv pip install -e .

Create a .env file with your WeatherAPI key: WEATHER_API_KEY=your_api_key_here. Then run the server with python main.py; it starts on http://localhost:8000 by default. Requires Python 3.13+ and the uv package manager.

Who it's for

Anyone building a weather-aware assistant or app who wants current conditions, forecasts, alerts, and related data (air quality, astronomy, timezone) available directly to an AI assistant without a separate API integration.

Source README

Weather MCP Server

Trust Score
smithery badge

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.

Features

  • Current weather conditions
  • Weather forecasts (1-14 days)
  • Historical weather data
  • Weather alerts
  • Air quality information
  • Astronomy data (sunrise, sunset, moon phases)
  • Location search
  • Timezone information
  • Sports events

Requirements

Installation

Installing via Smithery

To install Weather Data Server for Claude Desktop automatically via Smithery:

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

Manual Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/Weather_mcp_server.git
    cd Weather_mcp_server
    
  2. Install dependencies using uv:

    uv venv
    uv pip install -e .
    
  3. Create a .env file in the project root with your WeatherAPI key:

    WEATHER_API_KEY=your_api_key_here
    

Usage

Run the server:

python main.py

The server will start on http://localhost:8000 by default.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.