AM 

adhikasp/mcp-weather
API development이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
38 stars 32 forks 품질 52 트렌드 12Unlicense
adhikasp/mcp-weather는 MCP 서버 후보로 수입 https://github.com/adhikasp/mcp-weather.]
개요
adhikasp/mcp-weather는 MCP 서버 후보로 수입 https://github.com/adhikasp/mcp-weather.]
개요(AI 번역)
AccuWeather API를 사용하여 시간당 일기 예보를 제공하는 간단한 MCP 서버.
설치
-
uv를 사용하여 의존성을 설치하십시오: -
AccuWeather API 키를 가진
.env파일을 만드십시오:
AccuWeather API에 등록하여 API 키를 얻을 수 있습니다.
서버 실행
API 사용
을 얻 적시 날씨 예보
응답:
API 제공:
- 온도, 날씨 정보, 습도 및 강수 상태를 포함한 현재 기상 조건
- 시간별 데이터 12시간 예측:
- 현재 시간에서 상대 시간
- 섭씨 온도의 온도
- 날씨 설명
- 예측 확률, 유형 및 강도
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
MCP Weather Server
A simple MCP server that provides hourly weather forecasts using the AccuWeather API.
Setup
- Install dependencies using
uv:
uv venv
uv sync
- Create a
.envfile with your AccuWeather API key:
ACCUWEATHER_API_KEY=your_api_key_here
You can get an API key by registering at AccuWeather API.
Running the 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 Usage
Get Hourly Weather Forecast
Response:
{
"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"
}
]
}
The API provides:
- Current weather conditions including temperature, weather description, humidity, and precipitation status
- 12-hour forecast with hourly data including:
- Relative time from current time
- Temperature in Celsius
- Weather description
- Precipitation probability, type, and intensity
설치
uvx --from git+https://github.com/adhikasp/mcp-weather.git mcp-weather설정
{
"mcpServers": {
"weather": {
"command": "uvx",
"args": ["--from", "git+https://github.com/adhikasp/mcp-weather.git", "mcp-weather"],
"env": {
"ACCUWEATHER_API_KEY": "your_api_key_here"
}
}
}
}