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
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.example
tosrc/resources/.env
- Add your OpenWeatherMap API key to the
.env
file:
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.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
Related MCP Servers
- -securityAlicense-qualityProvides real-time weather alerts, forecasts, stock prices, historical data, and stock-related news through an MCP interface.Last updated -801TypeScriptMIT License
- -securityFlicense-qualityAn MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.Last updated -Python
- -securityAlicense-qualityAn MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.Last updated -12TypeScriptMIT License
- AsecurityFlicenseAqualityMCP server that provides Korean weather information using grid coordinates and the Korea Meteorological Administration API, allowing users to query current weather conditions and forecasts for specific locations in Korea.Last updated -23Python