Skip to main content
Glama
wu-weather-mcp

wu-weather-mcp

by Rankintosh

wu-weather-mcp

Ein MCP-Server, der jede persönliche Wetterstation (PWS) von Weather Underground als Tools in Claude verfügbar macht. Fragen Sie Claude nach aktuellen Bedingungen, täglichen Zusammenfassungen, stündlichen Verläufen und Stationsmetadaten – alles live von Ihrer Station abgerufen.

Voraussetzungen

  • Node.js 18+

  • Ein Weather Underground-Konto mit einer PWS

  • Ein Weather Underground API-Schlüssel (kostenlos)

  • Ihre Stations-ID (sichtbar in Ihrem WU-Dashboard, z. B. KCALAKEF92)

Related MCP server: weather-mcp-server

Einrichtung

1. Klonen und installieren

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

2. Umgebung konfigurieren

cp .env.example .env

Bearbeiten Sie .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. Build

npm run build

4. Testen

node build/index.js

Der Server startet über stdio und wartet auf MCP-Nachrichten. Drücken Sie Strg-C zum Beenden.


Claude Desktop-Integration

Fügen Sie dies zu Ihrer claude_desktop_config.json hinzu:

  • 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"]
    }
  }
}

Ersetzen Sie /absolute/path/to/wu-weather-mcp durch den tatsächlichen Pfad, unter dem Sie das Repo geklont haben. Unter macOS können Sie pwd im geklonten Ordner ausführen, um diesen zu erhalten.

Starten Sie Claude Desktop nach dem Speichern neu. Ihre Wetter-Tools erscheinen automatisch.

Alternative: Anmeldedaten über Konfiguration statt .env übergeben

{
  "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"
      }
    }
  }
}

Verfügbare Tools

Tool

Parameter

Beschreibung

get_current_conditions

—

Aktuelle Temperatur, Luftfeuchtigkeit, Wind, Druck, UV, Niederschlagsrate, Taupunkt, Sonneneinstrahlung

get_daily_summary

days (1–7, Standard 7)

Tägliche Höchst-/Tiefst-/Durchschnittstemperatur, maximale Windböe, Gesamtniederschlag

get_hourly_history

hours (1–24, Standard 24)

Stündliche Temperatur, Luftfeuchtigkeit, Wind und Niederschlag

get_station_info

—

Stationsname, ID, Koordinaten, Höhe, Nachbarschaft

Beispiel-Prompts

  • "Wie ist das Wetter gerade?"

  • "Zeig mir das Wetter der letzten 3 Tage."

  • "Wie war die stündliche Aufschlüsselung gestern Nachmittag?"

  • "Wie hoch liegt meine Wetterstation?"


Entwicklung

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

Der Quellcode befindet sich in src/index.ts. Führen Sie nach Änderungen einen neuen Build aus (npm run build).

Veröffentlichung auf npm

npm publish

Nach der Veröffentlichung können Benutzer das Tool ohne Klonen ausführen:

{
  "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"
      }
    }
  }
}

Hinweis: Prüfen Sie zuerst auf npmjs.com, ob der Paketname wu-weather-mcp vor der Veröffentlichung verfügbar ist.

Lizenz

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