The LandiWetter MCP server provides Swiss weather forecast data through the Model Context Protocol (MCP). It allows you to search for Swiss locations and retrieve detailed weather forecasts, making it a valuable tool for accessing Switzerland's weather information.
To set up the LandiWetter MCP server:
npm install
Launch the server using:
npm start
This command starts the MCP server using the stdio transport, making it compatible with MCP clients such as Claude Desktop.
To add the LandiWetter server to Claude Desktop:
node /path/to/landiwetter-mcp/src/index.js
After integration, you can use natural language to request weather forecasts:
For current weather:
What's the weather forecast for Bern, Switzerland?
For specific date forecasts:
What's the weather forecast for Zürich on 2025-05-10?
This tool helps you find Swiss locations by name.
Parameters:
locationName
: The name of the location to search forExample:
Please search for locations named "Zürich"
Retrieve detailed weather forecasts for specific locations.
Parameters:
locationId
: The location ID (e.g., G2661552)date
(optional): The forecast date in yyyy-MM-dd format (defaults to today)Example:
Please get the weather forecast for location ID G2661552
Access forecasts directly through a resource URI.
URI Template: weather://{location}/{date}
Where:
location
: Location name (e.g., "Zürich")date
(optional): Forecast date in yyyy-MM-dd format (defaults to today)Example:
Please check the resource at weather://Zürich/2025-05-03
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.