knmi-mcp

knmi-mcp

2

KNMI Weather MCP is a FastMCP server delivering real-time weather data from KNMI weather stations throughout the Netherlands. It features automatic location detection, real-time weather metrics, and natural language interpretations.

KNMI Weather MCP

A FastMCP server for accessing real-time weather data from KNMI weather stations across the Netherlands.

Features

  • Fetch weather data for any location in the Netherlands
  • Automatically locate the nearest KNMI weather station
  • Provide real-time measurements: temperature, humidity, wind, precipitation, visibility, air pressure
  • Natural language weather conditions interpretation
  • Location search feature
  • Detailed logging

Prerequisites

  • Python 3.10+
  • KNMI API Key
  • uv package manager

Installation

  1. Clone the repository
  2. Create a .env file with KNMI_API_KEY

Running the Server

Using Claude AI

Configure and run the server using the uv command for integration with Claude AI.

Manual Running

Execute the server with uv for standalone usage.

Available Tools

  1. what_is_the_weather_like_in
  2. get_location_weather
  3. search_location
  4. get_nearest_station

Logging

Logs stored in logs/knmi_weather.log with detailed information on API usage and error tracking.

Data Sources

Fetches data from the KNMI Data Platform API's "Actuele10mindataKNMIstations" dataset.

Error Handling

Includes robust error handling mechanisms for API and network issues.