wu-weather-mcp
wu-weather-mcp
MCP-сервер, который предоставляет любую персональную метеостанцию (PWS) Weather Underground в качестве инструментов в Claude. Спрашивайте у Claude о текущих условиях, ежедневных сводках, почасовой истории и метаданных станции — все данные поступают в реальном времени с вашей станции.
Предварительные требования
Node.js 18+
Учетная запись Weather Underground с PWS
API-ключ Weather Underground (бесплатно)
Ваш идентификатор станции (виден на панели управления WU, например
KCALAKEF92)
Related MCP server: weather-mcp-server
Настройка
1. Клонирование и установка
git clone https://github.com/your-username/wu-weather-mcp.git
cd wu-weather-mcp
npm install2. Настройка окружения
cp .env.example .envОтредактируйте .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 ID3. Сборка
npm run build4. Тестирование
node build/index.jsСервер запускается через stdio и ожидает сообщений MCP. Нажмите Ctrl-C для выхода.
Интеграция с Claude Desktop
Добавьте это в ваш claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"wu-weather": {
"command": "node",
"args": ["/absolute/path/to/wu-weather-mcp/build/index.js"]
}
}
}Замените
/absolute/path/to/wu-weather-mcpна фактический путь, по которому вы клонировали репозиторий. В macOS вы можете выполнитьpwdвнутри клонированной папки, чтобы получить его.
Перезапустите Claude Desktop после сохранения. Ваши инструменты погоды появятся автоматически.
Альтернатива: передача учетных данных через конфигурацию вместо .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"
}
}
}
}Доступные инструменты
Инструмент | Параметры | Описание |
| — | Текущая температура, влажность, ветер, давление, УФ-индекс, интенсивность осадков, точка росы, солнечная радиация |
|
| Ежедневная макс./мин./ср. температура, макс. порыв ветра, общее количество осадков |
|
| Почасовая температура, влажность, ветер и осадки |
| — | Название станции, ID, координаты, высота над уровнем моря, район |
Примеры запросов
"Какая сейчас погода?"
"Покажи погоду за последние 3 дня."
"Какая была почасовая сводка вчера днем?"
"Какова высота моей метеостанции над уровнем моря?"
Разработка
npm run dev # watch mode — recompiles on save
npm run build # one-off buildИсходный код находится в src/index.ts. Пересоберите (npm run build) после любых изменений.
Публикация в npm
npm publishПосле публикации пользователи могут запускать его без клонирования:
{
"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"
}
}
}
}Примечание: Проверьте npmjs.com перед публикацией, чтобы убедиться, что имя пакета
wu-weather-mcpдоступно.
Лицензия
MIT
Available Tools
4 toolsget_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
Scored across 4 tools
Each tool targets a distinct aspect of weather data: current conditions, daily summary, hourly history, and station metadata. No overlap in purpose.
All tool names follow a consistent 'get_' prefix followed by a clear noun phrase, maintaining snake_case throughout.
4 tools is appropriate for a personal weather station MCP server, covering the core data retrieval needs without unnecessary bloat.
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
Current weather and forecast lookup as an agent tool.
Read-only airport delay, weather, and 24h forecast tools for AI assistants. Airport-level only.
Ask AI about your weather stations and every community station: Davis, Ecowitt, Tempest and more.
Current weather and forecasts for any coordinates, backed b… — paid per call (x402/credits), 1 tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that wraps the Ambient Weather REST API. Query your personal weather stations conversationally from Claude Code, Claude.ai, or any MCP-compatible client.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to query real-time weather information, forecasts, and history via the OpenWeatherMap API.99MIT
- FlicenseNot gradedqualityDmaintenanceProvides 12 weather tools for conditions, forecasts, alerts, model imagery, radar, and 205 meteorological calculations, enabling weather data access and analysis through Claude Code.3-
- FlicenseAqualityDmaintenanceIntegrates the US National Weather Service API with Claude Desktop, enabling users to query current conditions and forecasts using natural language.2-