Model Context Protocol server that provides weather data from Yandex Weather SmartHome API to AI agents (Claude Desktop, Hermes, Cursor, etc.).
- Current weather — temperature, feels-like, wind speed, condition, icon
- Daily forecast — up to 2 days (free tier) with night/morning/day/evening parts
- Hourly forecast — temperature, feels-like, wind speed, condition per hour
- SmartHome native — designed specifically for the Yandex Pogoda B2B SmartHome tariff
- Go to Yandex Pogoda SmartHome Console
- Register (phone number + accept terms)
- Copy your API key from the dashboard
| Tier | Forecast days | Parameters | Rate |
|---|---|---|---|
| Free | today + tomorrow | temp, feels_like, wind_speed, condition, icon | limited (see agreement) |
| Commercial | depends on plan | extended (humidity, pressure, uv, etc.) | extended |
See the user agreement for details.
git clone https://github.com/ivanscm/mcp-yandex-weather.git
cd mcp-yandex-weather
# Create .env with your API key
cp .env.example .env
# Run (stdio mode — for Claude Desktop, Cursor)
uv run server.py
# Or run in HTTP mode for remote access
uv run server.py --httpAdd to claude_desktop_config.json:
{
"mcpServers": {
"ya-pogoda": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-yandex-weather", "server.py"],
"env": {
"YANDEX_WEATHER_API_KEY": "your_key_here"
}
}
}
}Add to ~/.hermes/config.yaml:
mcp_servers:
ya-pogoda:
command: uv
args:
- run
- "--directory"
- "/path/to/mcp-yandex-weather"
- server.py
env:
YANDEX_WEATHER_API_KEY: "your_key_here"
enabled: trueFor remote Hermes (NAS), run locally with HTTP:
uv run server.py --httpThen configure Hermes:
mcp_servers:
ya-pogoda:
url: "http://192.168.1.100:8000/mcp"
enabled: trueSettings → MCP → Add server:
{
"mcpServers": {
"ya-pogoda": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-yandex-weather", "server.py"],
"env": {
"YANDEX_WEATHER_API_KEY": "your_key_here"
}
}
}
}npx @modelcontextprotocol/inspector uv run server.py| Tool | Parameters | Returns |
|---|---|---|
get_current_weather |
lat, lon, lang (default: ru_RU) |
temperature, feels_like, wind_speed, condition, icon |
get_forecast |
lat, lon, limit (default: 2), lang |
daily forecast with parts (night/morning/day/evening) |
get_hourly_forecast |
lat, lon, limit (default: 2), lang |
hourly forecast array |
weather://current/{lat}/{lon}— current weather as JSON
weather_report(lat, lon, lang)— template for generating a weather report
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with verbose
pytest -vMIT