Skip to main content
Glama
KNMI Weather MCP

KNMI Weather MCP

by wolkwork

KNMI 날씨 MCP

KNMI(네덜란드 왕립 기상청) 기상 관측소의 실시간 날씨 데이터를 제공하는 FastMCP 서버입니다. 이 애플리케이션은 네덜란드 내 어느 위치에서든 가장 가까운 기상 관측소의 최근 10분 측정값을 가져옵니다.

특징

  • 네덜란드의 어느 위치에 대한 날씨 데이터를 받으세요

  • 가장 가까운 KNMI 기상 관측소를 자동으로 찾습니다.

  • 다음을 포함한 실시간 측정을 제공합니다.

    • 온도

    • 습기

    • 풍속 및 풍향

    • 강수량

    • 시계

    • 공기압

  • 날씨 상황에 대한 자연어 해석

  • 위치 검색 기능

  • 자세한 로깅

Related MCP server: mcp-server-weather-cuhksz

필수 조건

설치

  1. 저장소를 복제합니다.

    지엑스피1

  2. 프로젝트 루트에 .env 파일을 만듭니다.

    KNMI_API_KEY=your_api_key_here

서버 실행

Claude AI 사용

Claude AI와 함께 이 애플리케이션을 사용하려면 프로젝트 폴더에서 다음 명령을 실행하세요.

uv run fastmcp install src/knmi_weather_mcp/server.py

이렇게 하면 Claude 구성 파일(일반적으로 ~/Library/Application Support/Claude/claude_desktop_config.json 에 위치)에 다음 구성이 추가됩니다.

{
    "KNMI Weather": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "--with",
        "httpx",
        "--with",
        "netCDF4",
        "--with",
        "numpy",
        "--with",
        "pandas",
        "--with",
        "pydantic",
        "--with",
        "python-dotenv",
        "--with",
        "xarray",
        "fastmcp",
        "run",
        "/Users/<username>/<git location>/knmi-mcp/src/knmi_weather_mcp/server.py"
      ]
    }
}

참고: 다음과 같은 오류가 표시되는 경우:

spawn uv ENOENT

uv 명령을 uv 명령의 전체 경로로 바꾸세요. *nix 시스템에서는 which uv 명령을 사용하여 찾을 수 있습니다.

수동 실행

개발용 또는 단독 사용용:

uv run fastmcp run src/knmi_weather_mcp/server.py

사용 가능한 도구

1. 오늘 날씨는 어때요?

네덜란드 내 모든 지역의 현재 날씨 상황에 대한 자연어 해석을 받아보세요.

예:

await what_is_the_weather_like_in("Amsterdam")

2. 위치_날씨 가져오기

특정 지역의 원시 날씨 데이터를 가져옵니다.

예:

await get_location_weather("Rotterdam")

3. 검색 위치

네덜란드의 위치를 검색하세요.

예:

await search_location("Utrecht")

4. 가장 가까운 역 찾기

주어진 좌표에 가장 가까운 KNMI 기상 관측소를 찾아보세요.

예:

await get_nearest_station(52.3676, 4.9041)

벌채 반출

애플리케이션 로그는 logs/knmi_weather.log 파일에 저장되어 다음에 대한 자세한 정보를 제공합니다.

  • API 요청 및 응답

  • 날씨 데이터 처리

  • 오류 메시지

  • 디버그 정보

데이터 소스

이 애플리케이션은 KNMI 데이터 플랫폼 API를 사용하여 네덜란드의 모든 KNMI 기상 관측소에서 10분 간격 측정값을 제공하는 "Actuele10mindataKNMIstations" 데이터 세트에서 데이터를 가져옵니다.

오류 처리

이 애플리케이션에는 다음에 대한 강력한 오류 처리 기능이 포함되어 있습니다.

  • 잘못된 위치

  • API 인증 문제

  • 네트워크 문제

  • 데이터 구문 분석 오류

  • 측정 누락

Available Tools

4 tools
get_location_weatherC

Get current weather data for a location

Inputs: location (required).

get_nearest_stationB
Find the nearest KNMI weather station to given coordinates

Args:
    latitude: Latitude in degrees
    longitude: Longitude in degrees

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

search_locationC
Search for locations in the Netherlands

Args:
    query: Search term for location

Inputs: query (required).

what_is_the_weather_like_inB
Get and interpret weather data for a location in the Netherlands

Args:
    location: City or place name in the Netherlands
Returns:
    A natural language interpretation of the current weather conditions

Inputs: location (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 4 tools

    Disambiguation4/5

    Tools are mostly distinct: search_location and get_nearest_station are clearly supporting, but get_location_weather and what_is_the_weather_like_in both provide current weather, albeit in different formats (data vs. natural language). This overlap could cause misselection.

    Naming Consistency3/5

    Three tools follow verb_noun pattern (get_location_weather, get_nearest_station, search_location), but what_is_the_weather_like_in deviates entirely into a conversational question, breaking consistency.

    Tool Count5/5

    With 4 tools, the server is well-scoped for a focused weather service covering location search, station lookup, and current conditions. Each tool serves a clear purpose without being excessive.

    Completeness3/5

    The tool set covers location search and current weather but lacks forecast, historical data, or station metadata. The domain of weather for the Netherlands has notable gaps that could hinder some agent tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides real-time weather data, hourly forecasts, and daily summaries using the free Open-Meteo API with no API key required. It enables users to search for weather conditions by specific coordinates or city names across multiple measurement units.
      2
      MIT