openweathermap-mcp-server
1
OpenWeatherMap MCP Server is designed to deliver weather data from OpenWeatherMap API to AI models through a Model Context Protocol server. It features tools for weather queries and data caching, enhancing AI capabilities with real-time weather access.
OpenWeatherMap MCP Server
This project provides a Model Context Protocol (MCP) server connecting to the OpenWeatherMap API for weather data. It includes:
- Features for retrieving current weather conditions and 5-day forecasts.
- Querying weather by city or geographic coordinates.
- Caching weather data in Redis for quick access and reduced API calls.
- Supports SSE (Server-Sent Events) and Stdio transport for MCP communication.
Prerequisites
- Node.js 18+, npm/yarn, Redis, OpenWeatherMap API key.
Tools
get-current-weather
: Fetches current weather for a city.get-weather-forecast
: Provides a 5-day forecast for a city.get-weather-by-coordinates
: Retrieves weather data by latitude and longitude.clear-weather-cache
: Clears cached data.
Integration with AI Models
This server is designed for AI model interactions to provide real-time weather data access, forecasts, and location-specific weather information.