get-alertsLABSCO SUMMARY
Alerts are the part worth having.
Forecasts are available everywhere; active National Weather Service alerts for a state are the thing an assistant cannot otherwise get right, and they arrive here with no key and no account. It is written as a teaching example, so it is also a short read if you want to see what a two-tool server looks like.
What it is
A two-tool weather server built on the US National Weather Service API. One tool returns active alerts for a state, the other a forecast for a point. Written as a demo implementation, and small enough to read end to end.
What you get
get-alertsfetches active weather alerts for a given US stateget-forecastreturns the forecast for a latitude and longitude- Data straight from the National Weather Service, not a reseller
- No API key anywhere in the setup
Requirements
Node.js. Install through Smithery with npx -y @smithery/cli install @adarshem/mcp-server-learn --client claude, or clone it and run pnpm install then pnpm build and point your client at build/index.js. No account and no key. Coverage is the United States, since that is what the source API covers. Version 1.0.0.
Setup effort
One command — npx -y @smithery/cli install @adarshem/mcp-server-learn --client claude
USE CASES
Checking whether anything is being warned about
Pull active alerts for a state before you make a call about travel or work outside.
Getting a forecast for a specific spot
Pass a latitude and longitude rather than a city that may map somewhere else.
Seeing how a small MCP server is put together
Two tools over a public API, short enough to read in one sitting.
2 tools
Listed in project docs. Your client may show a different list.
get-forecastBEFORE YOU INSTALL
What to know first
Tools you get
2 tools named in the project's documentation.
INSTALLATION
Connect your client
Server setup
Build from source
git clone https://github.com/adarshem/mcp-server-learn.git
cd mcp-server-learn
pnpm install
pnpm buildnpx
Claude Desktop
npx -y @smithery/cli install @adarshem/mcp-server-learn --client claudeMCP Clients
VS Code
{
"servers": {
"weather": {
"command": "node",
"args": [
"<YOUR_PATH_TO_PARENT_FOLDER>/mcp-server-learn/build/index.js"
]
}
}
}