korea-living-weather-index-mcp
korea-living-weather-index-mcp
기상청이 공공데이터포털을 통해 제공하는 생활기상지수 조회서비스(4.0) (LivingWthrIdxServiceV5)를 MCP로 구현한 서버입니다. 자외선지수와 대기정체지수 예보를 전국 약 3,838개 지점(시군구읍면동 단위) 기준으로 3시간 간격, 최대 7578시간 후까지 조회할 수 있습니다.
기존에 운영 중인 safemap-uv-index-mcp(행정안전부 생활안전지도 자외선지수 + 기상청 예보)와는 별개의 프로젝트입니다.
제공 도구
get_uv_forecast
지점코드(areaNo)와 발표시간(time)을 기준으로 자외선지수 예측을 조회합니다. 0시간 후부터 75시간 후까지 각각 약 3,800개 예시가 포함되었습니다.
자외선지수 단계
段階 | 指数範囲 |
危険 | 11 이상 |
非常に高い | 8~10 |
高い | 6~7 |
普通 | 3~5 |
低い | 0~2 |
get_air_diffusion_forecast
지점코드(areaNo)와 발표일시(time)를 기준으로 대기정취지수 예보를 조회합니다. 0시간 후부터 78시간 후까지의 기간에 대해 3시간 간격으로 출력합니다.
대기정체지수 단계
段階 | 値 |
非常に高い위 | 100 |
高い | 75 |
普通 | 50 |
低い | 25 |
search_area_code
지역명(시/도, 시/군/구, 읍/면동)으로 지점코드(areaNo)를 검색합니다.
Related MCP server: safemap-uv-index-mcp
설치 및 실행
pip install -r requirements.txt
cp .env.example .env # KMA_LIVING_WEATHER_SERVICE_KEY 값 입력
python server.py환경변수
変数名 | 説明 |
| 공공데이터포털에서 발급받은 "기상청_생활기상지수 조회서비스(4.0)" 일반 인증키(Decoding) |
배포
fly.io에 배포합니다. 자세한 절차는 프로젝트 부트스트랩 문서의 해당 목록을 참조하세요.
fly launch --no-deploy
fly secrets set KMA_LIVING_WEATHER_SERVICE_KEY=발급받은키
flyctl deploy배포 후 커넥터 연결 시 /mcp 경로를 붙여서 연결합니다: https://<앱이름>.fly.dev/mcp
데이터 출처
제공 기관: 기상청
플랫폼: 공공데이터포털(data.go.kr)
API명: 생활기상지수 조회서비스(4.0) (
LivingWthrIdxServiceV5)라이선스: 공공누리 (공공데이터포털 이용약관에 따름)
알려진 제한사항 (실측 완료, 2026-08-23 기준)
areaNo에 빈 문자열를 보내면 전체 지점 조회로 정상 동작함 (ERROR-10 아님). 다만 응답이 매우 클 수 있기 때문에 이 옵션은 툴 파라미터로 노출하지 않았습니다.area_no또는area_name으로 특정 지점을 지정해 조회하세요.자외선지수 응답에는
h78필드가 포함되지 않음을 확인했습니다 (h0~h75만 존재, 명세서 yield의 h78은 오기로 판단). 야간 시간대의 값은 빈 문자열로 들어와 결측(None) 처리됩니다.대기정령지수 값은 실측 결과 정확히 25/50/75/100 중 하나임을 확인했습니다. 코드에는 안전하게 가까운 매핑 로직 (37.5/62.5/87.5 기준)을 유지하고 있습니다.
에러 응답도
dataType=JSON요청 시 JSON으로 오는 것을 확인했습니다 (XML 아님). XML fallback 파서는 안전장치로 남겨두었습니다.Rate limit: 분당 3회 (IP 기준), 1시간 이내 5회 초과 시 24시간 차단, 일일 30회 상한 (멀티 머신 배포 시 머신 수에 비례해 실제 완화될 수 있음)
관련 프로젝트
safemap-uv-index-mcp— 행정안전부 생활안전지도 + 기상청 자외선수 배포 예보 (기존 별도 운영 중)
This server cannot be deployed
Maintenance
Related MCP Connectors
Korean government open data - weather, population, law search via data.go.kr
Free lookup of Korean district codes (LAWD_CD) for kr-apt-trades — paid per call (x402/credits), 1 …
All KR Data tools in one server: Korean business checks, addresses, laws, car flood records & more
Who qualifies for 10,956 Korean government benefits (보조금24). Plus public data and weather.
Related MCP Servers
- FlicenseBqualityDmaintenanceConnects to the Korea Meteorological Administration (KMA) Open API to provide short-term and ultra-short-term weather forecasts for South Korea. It enables users to query current weather conditions and future forecasts based on latitude and longitude.2-
- AlicenseNot gradedqualityCmaintenanceThis MCP server provides UV index information for South Korean cities and districts, sourced from the Ministry of the Interior and Safety's living safety map, enabling filtered lookups by region and returning index values with occurrence times.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Korean air quality forecasts, weekly ultrafine dust forecasts, high-concentration PM2.5 forecasts, particulate matter alarm statuses, ozone advisories, and yellow dust advisories from the AirKorea OpenAPI.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying real-time air quality measurements, integrated air quality index (CAI), and monitoring station information from Korea's Air Korea OpenAPI, including station search and nearby station lookup.MIT