Skip to main content
Glama
adhikasp

MCP Weather Server

by adhikasp

MCP 날씨 서버

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

설정

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

지엑스피1

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

ACCUWEATHER_API_KEY=your_api_key_here

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

Related MCP server: MCP Weather Server

서버 실행

{
    "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시간 예보:

    • 현재 시간으로부터의 상대 시간

    • 섭씨 온도

    • 날씨 설명

    • 강수 확률, 유형 및 강도

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adhikasp/mcp-weather'

If you have feedback or need assistance with the MCP directory API, please join our Discord server