This example demonstrates how to build an MCP server using Python, offering a command-line interface and MCP-based access to weather data. It leverages the OpenWeatherMap API to fetch current conditions, daily and hourly forecasts, and weather alerts for locations worldwide. The project includes features like automatic location detection, API connection testing, and subscription status checks. Furthermore, it provides a well-structured development environment with pre-commit hooks, linting, and testing configurations, making it an ideal starting point for creating custom MCP servers.
Key Features
010 GitHub stars
02Supports weather data by coordinates
03Retrieves weather alerts
04Includes API connection testing
05Provides current weather conditions for any location
06Provides daily and hourly weather forecasts