W
Weather MCP
by @Rajeev-Yada
MCP server by Rajeev-Yada
Created 2/4/2026
Updated about 9 hours ago
README
Repository documentation and setup instructions
weather-mcp
An MCP (Model Context Protocol) server that provides:
weather_alerts: active National Weather Service alerts by 2-letter state/territory codeweather_forecast: forecast by latitude/longitude (US locations)
Build
npm run build
Run (stdio)
npm start
Use from VS Code / Copilot
This workspace includes a VS Code MCP config in .vscode/settings.json:
- Server name:
weather - Command:
node dist/index.js
If you change code, rebuild (npm run build) and then restart/reload MCP servers in VS Code.
You should set a descriptive NWS User-Agent in the config:
MCP_WEATHER_USER_AGENT="weather-mcp/1.0 (contact: you@example.com)"
Test in browser (MCP Inspector)
npm run inspector
Then open the printed http://localhost:6274/... URL.
Quick Setup
Installation guide for this server
Install Package (if required)
npx @modelcontextprotocol/server-weather-mcp
Cursor configuration (mcp.json)
{
"mcpServers": {
"rajeev-yada-weather-mcp": {
"command": "npx",
"args": [
"rajeev-yada-weather-mcp"
]
}
}
}