mcp landiwetter
Provides Swiss weather forecast data, allowing users to search for Swiss locations and get detailed hourly and daily weather forecasts.
Provides Swiss weather forecast data, allowing users to search for Swiss locations and get detailed hourly and daily weather forecasts.
This is a Model Context Protocol (MCP) server that provides Swiss weather forecast data from LandiWetter. The server allows you to search for Swiss locations and get detailed weather forecasts.
npm install
Run the server with:
npm start
This starts the MCP server using the stdio transport, making it compatible with MCP clients like Claude Desktop.
node /path/to/landiwetter-mcp/src/index.js
Once the server is integrated with Claude Desktop, you can use natural language prompts to access weather forecasts:
To get a weather forecast:
What s the weather forecast for Bern, Switzerland?
To get a weather forecast for a specific date:
What s the weather forecast for Zürich on 2025-05-10?
Search for Swiss locations by name.
Parameters:
- locationName
: The name of the location to search for
Example:
Please search for locations named "Zürich"
Get a detailed weather forecast for a specific location.
Parameters:
- locationId
: The location ID (e.g., G2661552)
- date
(optional): The date for the forecast (yyyy-MM-dd). Defaults to today
Example:
Please get the weather forecast for location ID G2661552
Access weather forecasts through a resource URI.
URI Template: weather://{location}/{date}
Where:
- location
: The name of the location (e.g., "Zürich")
- date
(optional): The date for the forecast (yyyy-MM-dd). Defaults to today
Example:
Please check the resource at weather://Zürich/2025-05-03
[
{
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"locationName": {
"description": "The name of the location to search for",
"type": "string"
}
},
"required": [
"locationName"
],
"type": "object"
},
"name": "searchLocation"
},
{
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"date": {
"description": "Optional: The date for the forecast (yyyy-MM-dd). Defaults to today",
"type": "string"
},
"locationId": {
"description": "The location ID (e.g., G2661552)",
"type": "string"
}
},
"required": [
"locationId"
],
"type": "object"
},
"name": "getWeatherForecast"
}
]