mcpField
M
MCP Weather Server for Claude

MCP Weather Server for Claude

Local
github.com/shiragannavarMedia & Design2Updated 82w ago

About MCP Weather Server for Claude

MCP Weather Server for Claude uses the U.S. National Weather Service API to provide alerts and forecasts for Claude integrations. It exposes state-based alert lookup and latitude/longitude forecast tools over stdio.

Key features

  1. 01Get active alerts by U.S. state
  2. 02Retrieve forecasts by latitude and longitude
  3. 03Make asynchronous requests with httpx
  4. 04Handle retries through a request helper

Use cases

  1. 01Check active weather alerts for a state
  2. 02Get a forecast for specific coordinates

MCP support

This MCP server for Claude exposes get_alerts and get_forecast over stdio, using data from the U.S. National Weather Service API.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Weather Server for Claude

This project implements an MCP server using the fastmcp interface, designed to serve as a Claude tool. It connects to the U.S. National Weather Service (NWS) API to provide real-time weather alerts and forecasts.

✨ Features

  • 🔔 Get Active Alerts: Retrieve current weather alerts by U.S. state.
  • 🌤️ Get Forecast: Fetch detailed forecasts by latitude and longitude.
  • ⚡ Asynchronous & Fast: Built with httpx and fastmcp for high-performance async operations.

🧠 Powered by Claude

This server is built to serve as a Claude-compatible external tool via the MCP protocol, using stdio transport.

🛠️ Code Overview

Main Components
  • FastMCP: Initializes the MCP server.
  • make_nws_request(): A helper for calling the NWS API with retries and headers.
  • get_alerts(state: str): Claude-accessible tool to get weather alerts for a given U.S. state.
  • get_forecast(latitude: float, longitude: float): Claude-accessible tool to get the forecast for any lat/lon pair.
Example Tool Usage
await get_alerts("CA")
await get_forecast(37.7749, -122.4194)
🌐 External API
National Weather Service API: https://weather.gov/documentation/services-web-api
📄 License

MIT License. Feel free to fork, modify, and use this server as a base for your own Claude tools.

⸻

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.