Skip to main content
Glama
Krishna-Dhawangale

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 answer
  1. El usuario hace una pregunta en inglés sencillo.

  2. El LLM de Groq interpreta la pregunta y decide qué herramienta llamar (por ejemplo, get_alerts_tool, get_forecast_tool).

  3. El MCP Client envía esa llamada de herramienta al MCP Weather Server a través del Model Context Protocol.

  4. El servidor consulta la National Weather Service API para obtener datos en vivo.

  5. Los resultados regresan a través del cliente al LLM.

  6. 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)

  • Una clave de API de Groq

  • 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.txt

Configuración

Crea un archivo .env en la raíz del proyecto:

GROQ_API_KEY=your_groq_api_key_here

Uso

  1. Inicia el servidor meteorológico MCP:

    python server/weather_server.py
  2. Ejecuta el cliente:

    python client/main.py
  3. Haz 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

get_alerts_tool

Obtiene alertas meteorológicas activas para un estado de EE. UU.

get_forecast_tool

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.

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time weather alerts and forecasts from the National Weather Service for US locations, integrating with AI assistants via the Model Control Protocol.
  • F
    license
    B
    quality
    D
    maintenance
    Provides 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.
    2

View all related MCP servers

Related MCP Connectors

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

  • Get US weather forecasts, active alerts, and current observations.

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Krishna-Dhawangale/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server