Provides real-time weather data for specified locations via an AI agent-accessible tool built with the Model Context Protocol (MCP).
This project serves as a tutorial demonstrating how to construct a simple weather server using the Model Context Protocol (MCP). It integrates with the OpenWeatherMap API to fetch current weather conditions for any given location and exposes this functionality as a tool accessible by AI agents (LLMs). The server automatically generates a JSON schema for its `get_weather` function, enabling AI agents to understand and invoke its capabilities seamlessly. The tutorial covers essential setup steps, API key management, and deployment for interaction with various MCP clients, including popular AI assistants like Claude Desktop.