Weather Real-Time
Provides real-time weather information for cities by integrating with the Open-Meteo API within a Model Context Protocol (MCP) server.
This project offers an MCP-based server designed to fetch and deliver current weather conditions for specified cities. Built with TypeScript and leveraging the `@modelcontextprotocol/sdk`, it meticulously validates city inputs using Zod before querying the public Open-Meteo API. Developed as an introductory example for MCP, it serves as a robust demonstration of integrating external APIs and data validation within an MCP server environment, providing clear textual weather descriptions.
Características Principales
01Defines a 'get-weather' tool for weather queries
02Validates city input using Zod schema validation
03Integrates with the Open-Meteo API for real-time weather data
04Returns textual descriptions of current weather conditions
05Built on Model Context Protocol (MCP) using TypeScript
060 GitHub stars
Casos de Uso
01Integrating real-time weather data into MCP applications
02Learning and demonstrating MCP server development principles
03Building conversational AI tools requiring current weather information