Skip to main content
Glama
wu-weather-mcp

wu-weather-mcp

by Rankintosh

wu-weather-mcp

Un servidor MCP que expone cualquier estación meteorológica personal (PWS) de Weather Underground como herramientas en Claude. Pregúntale a Claude sobre las condiciones actuales, resúmenes diarios, historial horario y metadatos de la estación, todo obtenido en tiempo real desde tu estación.

Requisitos previos

  • Node.js 18+

  • Una cuenta de Weather Underground con una PWS

  • Una clave de API de Weather Underground (gratuita)

  • Tu ID de estación (visible en tu panel de control de WU, p. ej., KCALAKEF92)

Related MCP server: weather-mcp-server

Configuración

1. Clonar e instalar

git clone https://github.com/your-username/wu-weather-mcp.git
cd wu-weather-mcp
npm install

2. Configurar el entorno

cp .env.example .env

Edita .env:

WU_API_KEY=your_api_key_here
WU_STATION_ID=your_station_id_here
WU_STATION_NAME=My Weather Station   # optional — defaults to station ID

3. Compilar

npm run build

4. Probar

node build/index.js

El servidor se inicia en stdio y espera mensajes MCP. Presiona Ctrl-C para salir.


Integración con Claude Desktop

Añade esto a tu claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "wu-weather": {
      "command": "node",
      "args": ["/absolute/path/to/wu-weather-mcp/build/index.js"]
    }
  }
}

Reemplaza /absolute/path/to/wu-weather-mcp con la ruta real donde clonaste el repositorio. En macOS puedes ejecutar pwd dentro de la carpeta clonada para obtenerla.

Reinicia Claude Desktop después de guardar. Tus herramientas meteorológicas aparecerán automáticamente.

Alternativa: pasar credenciales mediante configuración en lugar de .env

{
  "mcpServers": {
    "wu-weather": {
      "command": "node",
      "args": ["/absolute/path/to/wu-weather-mcp/build/index.js"],
      "env": {
        "WU_API_KEY": "your_api_key_here",
        "WU_STATION_ID": "your_station_id_here",
        "WU_STATION_NAME": "My Weather Station"
      }
    }
  }
}

Herramientas disponibles

Herramienta

Parámetros

Descripción

get_current_conditions

—

Temperatura actual, humedad, viento, presión, UV, tasa de precipitación, punto de rocío, radiación solar

get_daily_summary

days (1–7, predeterminado 7)

Temperatura diaria máx/mín/prom, ráfaga de viento máxima, precipitación total

get_hourly_history

hours (1–24, predeterminado 24)

Temperatura, humedad, viento y precipitación hora a hora

get_station_info

—

Nombre de la estación, ID, coordenadas, elevación, vecindario

Ejemplos de prompts

  • "¿Qué tiempo hace ahora mismo?"

  • "Muéstrame los últimos 3 días de clima."

  • "¿Cuál fue el desglose horario de ayer por la tarde?"

  • "¿Cuál es la elevación de mi estación meteorológica?"


Desarrollo

npm run dev      # watch mode — recompiles on save
npm run build    # one-off build

El código fuente está en src/index.ts. Recompila (npm run build) después de cualquier cambio.

Publicar en npm

npm publish

Una vez publicado, los usuarios pueden ejecutarlo sin clonar:

{
  "mcpServers": {
    "wu-weather": {
      "command": "npx",
      "args": ["-y", "wu-weather-mcp"],
      "env": {
        "WU_API_KEY": "your_api_key_here",
        "WU_STATION_ID": "your_station_id_here"
      }
    }
  }
}

Nota: Verifica primero en npmjs.com para confirmar que el nombre del paquete wu-weather-mcp esté disponible antes de publicar.

Licencia

MIT

Available Tools

4 tools
get_current_conditionsA

Get current weather conditions from the KCALAKEF92 personal weather station (KCALAKEF92) in Lake Forest, CA. Returns temperature, humidity, wind, pressure, precipitation rate, UV index, dew point, and solar radiation.

Inputs: no named parameters.

get_daily_summaryA

Get daily high/low/avg temperature, total precipitation, and max wind gust for up to the last 7 days from KCALAKEF92 (KCALAKEF92).

Inputs: days.

get_hourly_historyA

Get hour-by-hour weather history for up to the last 24 hours from KCALAKEF92 (KCALAKEF92). Includes temperature, humidity, wind, and precipitation.

Inputs: hours.

get_station_infoA

Get metadata for the KCALAKEF92 weather station: name, ID, neighborhood, country, GPS coordinates, and elevation.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of weather data: current conditions, daily summary, hourly history, and station metadata. No overlap in purpose.

    Naming Consistency5/5

    All tool names follow a consistent 'get_' prefix followed by a clear noun phrase, maintaining snake_case throughout.

    Tool Count5/5

    4 tools is appropriate for a personal weather station MCP server, covering the core data retrieval needs without unnecessary bloat.

    Completeness4/5

    The set covers current conditions, daily summaries, hourly history, and station info. Missing features like alerts or forecast are reasonable gaps for a station-focused server.

    Related MCP Connectors

    Related MCP Servers