MCP Weather Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides weather data including current conditions and hourly forecasts for locations

MCP 날씨 서버

AccuWeather API를 사용하여 시간별 날씨 예보를 제공하는 간단한 MCP 서버입니다.

설정

  1. uv 사용하여 종속성을 설치합니다:

지엑스피1

  1. AccuWeather API 키로 .env 파일을 만듭니다.
ACCUWEATHER_API_KEY=your_api_key_here

AccuWeather API 에 등록하면 API 키를 받을 수 있습니다.

서버 실행

{ "mcpServers": { "weather": { "command": "uvx", "args": ["--from", "git+https://github.com/adhikasp/mcp-weather.git", "mcp-weather"], "env": { "ACCUWEATHER_API_KEY": "your_api_key_here" } } } }

API 사용

시간별 날씨 예보 받기

응답:

{ "location": "Jakarta", "location_key": "208971", "country": "Indonesia", "current_conditions": { "temperature": { "value": 32.2, "unit": "C" }, "weather_text": "Partly sunny", "relative_humidity": 75, "precipitation": false, "observation_time": "2024-01-01T12:00:00+07:00" }, "hourly_forecast": [ { "relative_time": "+1 hour", "temperature": { "value": 32.2, "unit": "C" }, "weather_text": "Partly sunny", "precipitation_probability": 40, "precipitation_type": "Rain", "precipitation_intensity": "Light" } ] }

API는 다음을 제공합니다.

  • 온도, 날씨 설명, 습도, 강수량 상태를 포함한 현재 날씨 상황
  • 다음을 포함한 시간별 데이터가 포함된 12시간 예보:
    • 현재 시간으로부터의 상대 시간
    • 섭씨 온도
    • 날씨 설명
    • 강수 확률, 유형 및 강도

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

AccuWeather API를 사용하여 매시간 날씨 예보를 제공하므로 사용자는 현재 날씨 상황과 특정 위치에 맞춰진 자세한 12시간 예보에 액세스할 수 있습니다.

  1. Setup
    1. Running the Server
      1. API Usage
        1. Get Hourly Weather Forecast
      ID: 38044qgkou