The Weather MCP Server retrieves real-time weather information for specified cities using the OpenWeatherMap API.
Fetch Weather Data: Get detailed weather reports including temperature, humidity, wind speed, sunrise/sunset times, and weather descriptions
Metric Units: Weather data is provided in metric units (e.g., Celsius for temperature)
Integration: Can be configured to work with Claude Desktop for weather data retrieval
Developer-Friendly: Supports manual installation and configuration for development environments
Uses .env files for configuration management, particularly for storing the OpenWeatherMap API key
Includes instructions for cloning the repository as part of the setup process
Offers specific setup instructions for Linux environments
Includes macOS-specific setup instructions for the virtual environment
Requires Python 3.12 or higher for running the server
Weather MCP Server
A Modern Code Protocol (MCP) server that provides weather information using the OpenWeatherMap API.
Features
Real-time weather data retrieval
Metric units for temperature
Detailed weather information including:
Temperature
Humidity
Wind Speed
Sunrise/Sunset times
Weather description
Related MCP server: Weather MCP Server
Prerequisites
Python 3.12 or higher
OpenWeatherMap API key
Installation
Installing via Smithery
To install Weather MCP Server for Claude Desktop automatically via Smithery:
Manual Installation
Clone the repository
Create a virtual environment:
Install dependencies:
Setup Intructions
Setup with Claude Desktop
Local/Dev Setup Instructions
Clone repo
git clone https://github.com/CodeByWaqas/weather-mcp-server
Install dependencies
Install MCP server dependencies:
Configuration
Copy
src/resources/env.exampletosrc/resources/.envAdd your OpenWeatherMap API key to the
.envfile:
Usage
Run the Claude Desktop and use LLM to retrieve weather info
License
This project is licensed under the MIT License - see the LICENSE file for details.