Node.js server implementing
This is an example explained in
It has been hosted as an npx
.
Merge the following JSON fragment into your claude_desktop_config.json
.
Please refer to the "Testing your server with Claude for Desktop" section of
# MacOS/Linux
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
code $env:AppData\Claude\claude_desktop_config.json
{
"mcpServers": {
"weather": {
"command": "npx",
"args": [
"-y",
"@h1deya/mcp-server-weather"
],
}
}
}
- get-alerts
- Get weather alerts for a US state.
- Input:
state
(string): Two-letter US state code (e.g. CA, NY)
- get-forecast
- Get weather forecast for a location in the US
- Inputs:
latitude
(number): Latitude of the locationlongitude
(number): Longitude of the location
- Tomorrow's weather in Palo Alto?
- Any weather alerts in California?
This example is based on the code explained in