Weather MCP Server
🌦️ MCP Weather Assistant
Un proyecto de Model Context Protocol (MCP) que conecta un LLM alojado en Groq con un Weather MCP Server personalizado, permitiéndote hacer preguntas en lenguaje natural sobre el clima y obtener respuestas en tiempo real basadas en herramientas, provenientes de la National Weather Service (NWS) API.
Cómo funciona
User
↓
"Are there any weather alerts for CA?"
↓
Groq LLM
↓
Decides to call get_alerts_tool
↓
MCP Client
↓
MCP Weather Server
↓
National Weather Service API
↓
Real-time weather alerts
↓
Groq LLM
↓
Natural-language answerEl usuario hace una pregunta en inglés sencillo.
El LLM de Groq interpreta la pregunta y decide qué herramienta llamar (por ejemplo,
get_alerts_tool,get_forecast_tool).El MCP Client envía esa llamada de herramienta al MCP Weather Server a través del Model Context Protocol.
El servidor consulta la National Weather Service API para obtener datos en vivo.
Los resultados regresan a través del cliente al LLM.
El LLM convierte los datos brutos en una respuesta clara y en lenguaje natural para el usuario.
Related MCP server: mcp-weather
Características
🌦️ Alertas meteorológicas en tiempo real por estado de EE. UU.
📍 Pronósticos meteorológicos por ubicación (lat/long)
🔌 Construido sobre el Model Context Protocol (MCP) — las herramientas se exponen de forma estandarizada que cualquier cliente compatible con MCP puede usar.
⚡ Impulsado por Groq para una inferencia rápida del LLM.
🧩 Separación limpia entre el cliente LLM y el servidor de herramientas meteorológicas.
Estructura del proyecto
.
├── client/ # MCP client — connects to Groq LLM and the MCP server
├── server/ # MCP weather server — exposes get_alerts_tool, get_forecast_tool, etc.
├── requirements.txt # or package.json, depending on stack
└── README.md(Ajusta este árbol para que coincida con la estructura real de tu carpeta.)
Requisitos previos
Python 3.10+ (o Node.js, según tu implementación)
Acceso a Internet (el servidor llama a la API pública de NWS — no se requiere clave de API para NWS)
Instalación
git clone https://github.com/Krishna-Dhawangale/MCP.git
cd MCP
pip install -r requirements.txtConfiguración
Crea un archivo .env en la raíz del proyecto:
GROQ_API_KEY=your_groq_api_key_hereUso
Inicia el servidor meteorológico MCP:
python server/weather_server.pyEjecuta el cliente:
python client/main.pyHaz una pregunta:
> Are there any weather alerts for CA?El cliente enrutará la consulta al LLM, que llamará a la herramienta adecuada en el servidor MCP y devolverá una respuesta en lenguaje natural.
Herramientas disponibles
Tool | Descripción |
| Obtiene alertas meteorológicas activas para un estado de EE. UU. |
| Obtiene el pronóstico meteorológico para una latitud/longitud dada |
Hoja de ruta
Añadir soporte para más ubicaciones (internacional)
Añadir caché para consultas repetidas
Añadir pruebas unitarias para los manejadores de herramientas
Soporte para clientes MCP adicionales más allá de Groq
Contribuciones
¡Las contribuciones son bienvenidas! No dudes en abrir un issue o enviar una pull request.
This server cannot be deployed
Maintenance
Related MCP Connectors
US NWS weather alerts and 5-day forecasts for AI agents. $0.01 per call.
Provide real-time and forecast weather information for locations in the United States using natura…
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Get US weather forecasts, active alerts, and current observations.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides weather forecast data from the US National Weather Service API through MCP tools. Enables users to get detailed weather forecasts by ZIP code or coordinates using natural language queries.-
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather alerts and forecasts from the National Weather Service for US locations, integrating with AI assistants via the Model Control Protocol.-
- AlicenseBqualityDmaintenanceProvides weather forecasts and alerts for US locations using the National Weather Service API. Enables users to retrieve active alerts by state and detailed forecasts by coordinates via MCP tools.122ISC
- FlicenseBqualityDmaintenanceProvides weather alerts for US states and forecasts for given coordinates via MCP tools.2-