Skip to main content
Glama
50seok
by 50seok

kr-public-data-mcp

한국 공공데이터(날씨·미세먼지)를 Claude Code가 도구로 직접 호출할 수 있게 노출하는 MCP stdio 서버.

설치

git clone <repo-url> && cd kr-public-data-mcp
python -m venv .venv && .venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env   # PUBLIC_DATA_API_KEY 채우기 (data.go.kr 발급키)

Related MCP server: korea-public-data-mcp

Claude Code에 등록

claude mcp add kr-public-data-mcp -- python C:\path\to\kr-public-data-mcp\server.py

이후 Claude에게 자연어로 물으면 됩니다: "지금 성남 날씨 어때?", "대전 미세먼지는?"

도구

도구

설명

get_weather(지역)

실시간 날씨(기온·습도·강수) — 기상청 초단기실황

get_weather("성남")

get_air_quality(지역)

실시간 미세먼지(PM10/PM2.5) — 에어코리아 시도별 실시간 측정정보

get_air_quality("성남")

search_station(이름)

이름/주소로 대기오염 측정소 검색

search_station("성남")

동작 방식

  • 지역 해석: Open-Meteo 지오코딩(키 불필요)으로 지역명 → 위경도, 자체 구현한 LCC(Lambert Conformal Conic) 투영식으로 위경도 → 기상청 격자(nx,ny) 변환. 별도 좌표 CSV 없음.

  • 캐시: 10분 TTL(functools.lru_cache + 시간버킷 키). 같은 지역을 10분 안에 다시 물으면 API 호출 없이 캐시로 응답.

  • 에러: 키 없으면 시작 즉시 종료 / 지역을 못 찾으면 사람이 읽는 메시지 / 상위 API 실패 시 상태코드만 담은 안전한 메시지(키가 URL 쿼리파라미터에 실리는 API라 원본 예외를 그대로 노출하지 않음).

준비물

data.go.kr 계정 키 하나로 아래 두 서비스에 각각 활용신청이 돼 있어야 합니다(키는 계정당 1개, 서비스별로 활용신청만 추가):

  • 기상청_단기예보 조회서비스 (getUltraSrtNcst)

  • 한국환경공단_에어코리아_대기오염정보 (getCtprvnRltmMesureDnsty, getMsrstnList)

데모

(GIF 자리 — "성남 날씨/미세먼지" 질의 → 응답, 같은 질문 재요청 시 캐시로 즉시 응답하는 모습)

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI to query real-time Korean public data including weather, real estate prices, air quality, economic indicators, and business registration via natural language.
    1
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    Enables Claude to query Korean public financial, economic, and statistical data (OpenDART, ECOS, KOSIS, and data.go.kr) via real API calls, providing factual answers instead of guesses.
    13
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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

View all related MCP servers

Related MCP Connectors

  • Real-world data for agents: air quality, geocoding, quakes, holidays, web search

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

View all MCP Connectors

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/50seok/kr-public-data-mcp'

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