Skip to main content
Glama

met-mcp

MET 노르웨이(Yr)의 일기 예보를 위한 MCP 서버입니다. 학습 프로젝트로 제작되었습니다.

세 가지 방법으로 사용할 수 있습니다:

  • npm: met-mcp — stdio를 통해 로컬에서 실행

  • 원격: https://met-mcp.met-mcp-worker.workers.dev/mcp — Cloudflare Workers의 Streamable HTTP, claude.ai 커넥터로 추가

  • MCP 레지스트리: io.github.trondbjoroy/met-mcp

도구

  • geocode_location(name, count) — 장소 이름의 좌표를 찾습니다. MET에는 지오코딩 API가 없으므로 무료 Open-Meteo 지오코더를 사용합니다.

  • get_forecast(latitude, longitude, hours) — MET Locationforecast 2.0의 시간별 예보. 전 세계에서 작동하며, 북유럽에서 가장 정확합니다.

  • get_nowcast(latitude, longitude) — 레이더 기반 향후 2시간 강수량. 북유럽 전용.

  • get_weather_alerts(latitude?, longitude?) — 노르웨이 공식 위험 경보(MetAlerts). 좌표를 생략하면 노르웨이 전체에 대한 경보를 제공합니다.

  • get_sun_events(latitude, longitude, date, utc_offset) — 일출, 일몰, 남중 시각. 전 세계.

  • get_ocean_forecast(latitude, longitude, hours) — 노르웨이 해안의 파고와 해수 온도.

  • find_weather_stations(latitude, longitude, count) — 가장 가까운 공식 기상 관측소(Frost).

  • get_historical_weather(station_id, from, to, elements) — Frost 아카이브의 일별 과거 관측 데이터. 일부 관측소는 100년 이상의 기록을 보유하고 있습니다.

두 개의 Frost 도구는 https://frost.met.no/auth/requestCredentials.html에서 무료 클라이언트 ID를 받아 FROST_CLIENT_ID 환경 변수(또는 worker용 Cloudflare 비밀)로 설정해야 합니다. 다른 도구는 아무것도 필요하지 않습니다.

도구 정의는 src/tools.ts에 있으며, stdio 서버와 worker가 공유합니다.

Related MCP server: OpenWeatherMap MCP Server

빌드 및 테스트

npm install
npm run build
npm test

테스트는 stdio를 통해 서버를 실행하고 두 도구를 실제 API에 호출합니다.

Claude Code와 함께 사용

claude mcp add met-weather -- node C:\Users\trond\met-mcp\dist\index.js

그런 다음 Claude에게 "내일 베르겐의 날씨는 어때?"라고 물어보세요.

MET 서비스 약관

  • 연락처 정보가 포함된 식별 가능한 User-Agent를 보내세요. MET_USER_AGENT 환경 변수를 설정하세요(예: met-mcp/0.1.0 you@example.com).

  • 좌표는 소수점 4자리 이하로 보내세요. 서버가 반올림합니다.

  • 데이터 라이선스: NLOD / CC BY 4.0. 데이터를 표시할 때 MET 노르웨이를 출처로 표시하세요.

원격 버전

worker/에는 Cloudflare Workers 배포가 포함되어 있습니다. createMcpHandler(MCP SDK v2)를 사용하여 MCP Streamable HTTP로 동일한 두 도구를 제공합니다. npm run dev로 개발하고 npm run deploy로 배포합니다(둘 다 worker/에서 실행).

작동 방식

  • src/index.ts가 전체 서버입니다. stdio를 통해 MCP를 사용합니다: stdin/stdout에서 JSON-RPC.

  • 각 도구는 Zod로 입력 스키마를 선언합니다. MCP 클라이언트(Claude)가 스키마를 읽고 인수를 검증합니다.

  • 도구 결과는 content 블록입니다. 이 서버는 LLM이 필요한 만큼만 잘라낸 JSON을 텍스트로 반환합니다. 원시 MET 응답에는 약 90개의 시간 단계와 훨씬 더 많은 필드가 있습니다.

  • console.log로 stdout에 쓰지 마세요. 프로토콜 스트림이 손상됩니다. stderr로 로그를 남기세요.

Available Tools

8 tools
find_weather_stationsFind weather stationsAInspect

Find the nearest official weather stations (Frost). Use the station id (e.g. SN50540) with get_historical_weather.

Inputs: latitude (required), longitude (required), count.

geocode_locationGeocode a place nameCInspect

Find latitude and longitude for a place name. Use the coordinates with the other tools.

Inputs: name (required), count.

get_forecastGet weather forecastAInspect

Get an hourly weather forecast from MET Norway (Yr) for a coordinate. Works worldwide, best coverage in the Nordics.

Inputs: latitude (required), longitude (required), hours.

get_historical_weatherGet historical weatherAInspect

Daily historical observations from a weather station (Frost archive, some stations go back over 100 years). Find station ids with find_weather_stations.

Inputs: to (required), from (required), station_id (required), elements.

get_nowcastGet precipitation nowcastAInspect

Minute-by-minute precipitation for the next 2 hours, radar-based. Nordic region only. Answers 'do I need an umbrella right now?'

Inputs: latitude (required), longitude (required).

get_ocean_forecastGet ocean forecastCInspect

Wave height, wave direction, and sea temperature. Covers the Norwegian coast and nearby seas.

Inputs: latitude (required), longitude (required), hours.

get_sun_eventsGet sunrise and sunsetBInspect

Sunrise, sunset, and solar noon for a coordinate and date. Works worldwide.

Inputs: date (required), latitude (required), longitude (required), utc_offset.

get_weather_alertsGet weather alertsAInspect

Official danger warnings (wind, flood, ice, forest fire...) from MET Norway. Covers Norway and its waters. Omit coordinates to get all current alerts. Alert text is in Norwegian.

Inputs: latitude, longitude.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct weather data need: geocoding, hourly forecasts, nowcasting, alerts, solar events, ocean conditions, station lookup, and historical observations. The only potentially overlapping pair (get_forecast vs get_nowcast) is clearly separated by forecast horizon and description.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern, with get_ as the dominant prefix and find_/geocode_ as clear exceptions that still follow the same grammatical structure. This makes the tool surface highly predictable.

    Tool Count5/5

    Eight tools is well-scoped for a weather data server: each tool handles a specific data type or lookup step without redundancy. The count is large enough to cover the domain but small enough to avoid overwhelming an agent.

    Completeness5/5

    The tool set covers the full observation-to-forecast lifecycle: geocoding to obtain coordinates, station discovery for historical data, current conditions, short-term nowcast, forecast, alerts, ocean conditions, and solar events. No critical gaps are apparent for the stated weather domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides LLM-friendly weather tools and Norwegian place name resolution via MCP, enabling weather forecasts, air quality, marine conditions, and activity planning.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables access to MET Norway weather data including global forecasts, Nordic nowcast, sunrise/sunset times, air quality, and ocean forecasts via natural language queries.
      59 npm
      MIT