Weather MCP Server
An MCP server that retrieves weather alerts and forecasts from the National Weather Service API.
Requirements
- Node.js 18 or newer
- An MCP-compatible client
Installation
npm install
npm run build
The compiled server is written to build/index.js.
MCP client configuration
Configure your MCP client to launch the built server over stdio. For example:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/absolute/path/to/weather/build/index.js"]
}
}
}
Replace the path with the absolute path to this project.
Available tools
get_alerts
Returns active weather alerts for a US state.
Input:
state: two-letter state code, such asCA
get_forecast
Returns the forecast for a geographic location.
Input:
latitude: number from-90to90longitude: number from-180to180
Data source
Weather data is provided by the National Weather Service API.
License
ISC