weather-mcp-server

weather-mcp-server

Get real-time weather data for any location using weatherapi.

18
Stars
17
Forks
0
Releases

Overview

Weather MCP Server is a Model Context Protocol (MCP) server built with FastAPI and the MCP framework to provide weather data to AI assistants. It leverages WeatherAPI to deliver a suite of tools that allow clients to retrieve current weather conditions, forecasts for up to 14 days, and historical weather data. The server also exposes weather alerts, air quality information, and astronomy data (sunrise, sunset, and moon phases). Additional capabilities include location search and timezone information to support robust location-aware queries. The server is designed to help AI assistants answer weather-related questions and enable context-aware decision making with weather insights. It runs as a standard MCP endpoint, configurable with a WeatherAPI key, and is accessible via a local HTTP server (default on http://localhost:8000). It is built with Python and can be installed via Smithery or manually via uv and pip. Requirements include Python 3.13+, the uv package manager, and a WeatherAPI key. The project emphasizes real-time weather data for any location.

Details

Owner
devilcoder01
Language
Python
License
MIT License
Updated
2025-12-07

Features

Current weather conditions

Retrieves current weather for a given location.

Weather forecasts (1-14 days)

Provides forecast data for up to 14 days.

Historical weather data

Access past weather records for a location.

Weather alerts

Delivers weather-related alerts and warnings.

Air quality information

Provides air quality data for a location.

Astronomy data

Includes sunrise, sunset times and moon phases.

Location search

Location search to find places and coordinates.

Timezone information

Timezone data for queried locations.

Audience

AI assistantsto retrieve weather data and support weather-aware conversations in AI assistants.

Tags

weatherMCPweatherapifastapireal-timeforecastsair qualityastronomylocation searchtimezonealertshistorical data