Overview
What is MCP Weather Server?
MCP Weather Server is a demo implementation of a Model Context Protocol (MCP) server that provides weather-related tools. It uses the US National Weather Service API to fetch active weather alerts for a US state and a forecast for a specific latitude/longitude.
How to use MCP Weather Server?
Install the server via Smithery with npx @smithery/cli install @adarshem/mcp-server-learn --client claude, or manually clone the repository, run pnpm install and pnpm build. Configure it in your MCP client (e.g., VSCode) by adding the server entry to settings.json with the command node and the absolute path to build/index.js.
Key features of MCP Weather Server
- Built with Node.js
- Provides get-alerts tool for US state alerts
- Provides get-forecast tool by lat/lon
- Uses US National Weather Service API
Use cases of MCP Weather Server
- Learning how to build an MCP server with Node.js
- Fetching active weather alerts for a US state
- Retrieving a weather forecast for a specific latitude/longitude
FAQ from MCP Weather Server
What runtime is required?
Node.js must be installed on your system.
Where does the weather data come from?
The server uses the US National Weather Service API for accurate and up-to-date information.
How do I configure the server in VSCode?
Add the server entry to your settings.json with the command node and the absolute path to build/index.js.
Is this server production-ready?
The README describes it as a demo implementation, so it may not be intended for production use.