Skip to main content
Glama
wolkwork

KNMI Weather MCP

by wolkwork

get_nearest_station

Locate the closest KNMI weather station to specified coordinates for accessing Netherlands weather data.

Instructions

Find the nearest KNMI weather station to given coordinates Args: latitude: Latitude in degrees longitude: Longitude in degrees

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latitudeYes
longitudeYes

Implementation Reference

  • The main handler function for the 'get_nearest_station' tool. It refreshes the station list and delegates to StationManager.find_nearest_station to find and return the nearest WeatherStation.
    @mcp.tool() async def get_nearest_station(latitude: float, longitude: float, ctx: Context) -> WeatherStation: """ Find the nearest KNMI weather station to given coordinates Args: latitude: Latitude in degrees longitude: Longitude in degrees """ await station_manager.refresh_stations(ctx) coords = Coordinates(latitude=latitude, longitude=longitude) return station_manager.find_nearest_station(coords)
  • The @mcp.tool() decorator registers the get_nearest_station function as an MCP tool.
    @mcp.tool()

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/wolkwork/knmi-mcp'

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