Weather Bot
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP-Connction
I have connected my weather bot with claude through the MCP Connection
Install Claude desktop and sign in
Related MCP server: weather
MCP Weather Bot – Claude Desktop Integration
This repository demonstrates how to connect a custom Model Context Protocol (MCP) server with Claude Desktop using Python. It provides a simple Weather Bot tool that fetches real-time weather information from the OpenWeather API and makes it accessible to Claude through MCP.
How It Works
MCP (Model Context Protocol): An open standard that allows external tools, data sources, and APIs to integrate with AI models like Claude.
Claude Desktop: Anthropic’s desktop client for Claude that supports MCP tool integration.
FastMCP: A Python framework used to quickly build and run MCP servers with minimal boilerplate.
This project defines a weather tool that Claude can call through MCP. Users can ask Claude for current weather conditions in any city, and the tool will return:
Weather condition (e.g., cloudy, sunny, rain)
Temperature (°C, with “feels like” value)
Humidity percentage
Setup Instructions
Clone this repository.
Install dependencies:
pip install requests python-dotenv fastmcpCreate a
.envfile in the project root:OPENWEATHER_API_KEY=your_api_key_hereYou can obtain an API key from OpenWeather.
Run the MCP server:
python weather_bot.py
Under developer option in the claude settings
Click edit config open claude_config.json
Configure Claude Desktop to load this MCP server by editing
claude_desktop_config.json(usually found in Claude’s settings directory). Example entry:{ "mcpServers": { "weather-bot": { "command": "python", "args": ["path/to/weather_bot.py"] } } }Restart Claude Desktop. Now you can query Claude:
“What’s the weather in London?”
Claude will call the MCP tool and return live weather information.
File Structure
├── weather_bot.py # Main MCP server script
├── .env # Environment variables (API key)
├── requirements.txt # Dependencies
└── README.md # Project documentationKey Technologies
Python 3.8+
FastMCP for MCP server creation
Requests for API calls
dotenv for environment configuration
Claude Desktop for MCP client integration
Extending the Project
You can extend this MCP server to:
Support forecast data (5-day or hourly forecast).
Fetch air quality index (AQI).
Add geolocation-based weather lookup.
Integrate multiple APIs (e.g., AccuWeather, WeatherAPI).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Current weather and forecast lookup as an agent tool.
Free, keyless real-time weather and 7-day forecasts for any city worldwide.
OpenWeather data for AI agents: list feeds, sign up, check balance, get a top-up link, fetch data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to query real-time weather information, forecasts, and history via the OpenWeatherMap API.99MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to fetch real-time weather data for any city using the OpenWeatherMap API.MIT
- AlicenseNot gradedqualityDmaintenanceEnables real-time weather queries via Claude Desktop using OpenWeatherMap API, providing current conditions and 24-hour forecasts for any city.MIT
- AlicenseAqualityCmaintenanceEnables Claude to query real-time weather information for specified regions using the OpenWeatherMap API.1MIT