Weather tools for your Agents
Weather tools for your Agents
Weather - MCP is a TypeScript Model Context Protocol (MCP) server that interfaces with the OpenWeatherMap API. Its primary function is to provide current weather conditions and five-day forecasts through a standardized protocol, enabling AI agents or other clients to retrieve weather data programmatically. The server can operate over stdio or Streamable HTTP, making it suitable for integration with various development environments and tools. The server offers two main tools. The first, get_current_weather, accepts a city name or geographic coordinates and returns current conditions along with an umbrella recommendation and an assessment of whether it is a good day to be outdoors. The second, get_forecast, provides a five-day forecast in three-hour intervals, with the same outing advice applied to each period. These features allow an agent to answer questions about current weather, short-term outlooks, and practical considerations like carrying an umbrella or spending time outside. Typical use cases involve connecting the server to an AI assistant or code editor such as Cursor, where a user can ask for weather information in natural language. For example, a query about the weather in Yaoundé triggers the server to fetch and return the relevant data. The server is hosted on a free tier, which may cause it to sleep after approximately 15 minutes of inactivity. As a result, the first request after a period of idleness can take up to 50 seconds to respond. The server is available at the provided URL and is designed for developers who need a lightweight, protocol compliant weather data source for their applications.