weather-mcp

nurbxfit/weather-mcp

3.2

If you are the rightful owner of weather-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a simple MCP server example that fetches weather alerts from the National Weather Service and sends them to an MCP client.

Weather Alert

A simple MCP server example using stdio. It fetches weather alerts from the National Weather Service and sends them to an MCP client.


🚀 Getting Started

Install dependencies:

npm install

Build the project:

npm run build

Run the server:

npm run index.ts

📚 About

  • Based on the official MCP documentation.
  • Focused on receiving weather alerts and sending them to the MCP client.
  • The code structure is slightly different from the official docs for clarity and personal preference.

⚠️ Note

As of 2025-07-24, there is a bug with declaring the inputSchema for server.registerTool if you use zod version 4.
This project uses zod version ^3.25.1, which works fine with the MCP server.