Weather MCP Server
Provides weather information using the OpenWeatherMap API.
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:
npx -y @smithery/cli install @CodeByWaqas/weather-mcp-server --client claude
Manual Installation
- Clone the repository
- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
- Install dependencies:
pip install -e .
Setup Intructions
Setup with Claude Desktop
# claude_desktop_config.json
# Can find location through:
# Claude -> Settings -> Developer -> Edit Config
{
"mcpServers": {
"mcp-weather-project": {
"command": "uv",
"args": [
"--directory",
"/<absolute-path>/weather-mcp-server/src/resources",
"run",
"server.py"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY"
}
}
}
}
Local/Dev Setup Instructions
Clone repo
git clone https://github.com/CodeByWaqas/weather-mcp-server
Install dependencies
Install MCP server dependencies:
cd weather-mcp-server
# Create virtual environment and activate it
uv venv
source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows
# Install dependencies
uv add "mcp[cli]" python-dotenv requests httpx
Configuration
- Copy
src/resources/env.exampletosrc/resources/.env - Add your OpenWeatherMap API key to the
.envfile:
WEATHER_API_KEY=your_api_key_here
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.
Server Terkait
AWS Customer Playbook Advisor MCP
Provides real-time AWS security guidance by fetching official security playbooks from the AWS Customer Playbook Framework GitHub repository.
DeepSeek
Access DeepSeek's advanced language models via the DeepSeek API.
AWS News
Fetches the latest announcements, blog posts, and news for specific AWS services.
ONOS MCP Server
An MCP server for managing ONOS (Open Network Operating System) networks.
Spotify MCP Server
Interact with the Spotify API to manage playlists and control music playback.
Maersk Vessel Deadlines
Access Maersk vessel schedules and shipment deadlines programmatically via the Maersk API.
KiotViet SDK
Access the KiotViet API, a popular sales and inventory management platform. Manage products, categories, customers, and orders with automatic authentication.
ConvertAPI MCP Hosted Server
ConvertAPI MCP Hosted Server exposes document converters and tools as discoverable tools for MCP-compatible AI clients using OAuth for authentication.
OpZero Remote MCP Bridge
The remote MCP bridge that lets any AI agent deploy, manage, and scale applications to Cloudflare, Netlify, or Vercel.
MCP DigitalOcean Integration
Manage DigitalOcean resources and perform actions using the DigitalOcean API.