MCP Weather Server

MCP Weather Server

mcp-server-weather-msremigio•bymsremigio

An MCP server that offers real-time weather alerts and five-day forecasts for US locations, using the National Weather Service API.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Retrieves current weather alerts for a specified US state by two-letter abbreviation.
  • •Retrieves a five-day weather forecast for specific latitude and longitude coordinates.
  • •Communicates with MCP clients over stdio transport.
  • •Fetches live weather data from the National Weather Service API.

BEST FOR

  • •Checking active weather alerts for a US state from an MCP-compatible AI assistant.
  • •Getting a short-term forecast for specific coordinates within a US location.

ABOUT MCP-SERVER-WEATHER-MSREMIGIO

MCP Weather Server is cataloged as an MCP server attributed to msremigio. An MCP server that offers real-time weather alerts and five-day forecasts for US locations, using the National Weather Service API. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Weather Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What data source does this server use?

It uses the official National Weather Service API for weather data.

Does the server handle network errors?

Yes, it includes error handling for HTTP failures, response validation, timeouts, and missing data.

Upstream README

View this exact version on GitHub

README.md · 1e4d7e7f62e9 · Fetched 2026-11-13 13:42:55 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Weather Server

A Model Context Protocol (MCP) server that provides real-time weather alerts and forecasts for locations across the United States. Built with FastMCP and powered by the National Weather Service (NWS) API.

Author

Matheus Remigio
Contact: matheus.remido@gmail.com

🌟 Features

  • Weather Alerts: Get current weather alerts for any US state
  • Weather Forecasts: Retrieve detailed 5-day weather forecasts for specific coordinates
  • Real-time Data: Powered by the official National Weather Service API
  • MCP Integration: Seamlessly integrates with MCP-compatible clients and AI assistants
  • Async Support: Built with async/await for optimal performance
  • Error Handling: Robust error handling with graceful fallbacks

🚀 Quick Start

Prerequisites

  • Python 3.13 or higher
  • uv package manager (recommended)
  • MCP-compatible client (like Cursor IDE)

Installation

  1. Clone the repository

    git clone https://github.com/msremigio/mcp-server-weather.git
    cd mcp_weather
    
  2. Install dependencies using uv

    uv sync
    
  3. Activate the virtual environment

    uv shell
    

Running the Server

uv run weather.py

The server will start and listen for MCP protocol messages via stdio transport.

🔧 Configuration

MCP Client Configuration

Add the following to your MCP client configuration (e.g., mcp.json):

{
  "mcpServers": {
    "mcp_weather": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/your/mcp_weather/project",
        "run",
        "weather.py"
      ]
    }
  }
}

Note: Update the --directory path to match your actual project location.

📚 API Reference

Available Tools

1. Get Weather Alerts (get_alerts)

Retrieves current weather alerts for a specific US state.

Parameters:

  • state (str): Two-letter state abbreviation (e.g., "CA", "NY", "TX")

Returns:

  • Formatted string containing all active alerts for the specified state

Example Response:

Event: Severe Thunderstorm Warning
Area: Northern California
Severity: Severe
Description: Severe thunderstorms capable of producing large hail and damaging winds
Instructions: Move to an interior room on the lowest floor of a building

---

Event: Flash Flood Watch
Area: Southern California
Severity: Moderate
Description: Heavy rainfall may cause flash flooding
Instructions: Monitor weather conditions and be prepared to take action

2. Get Weather Forecast (get_forecast)

Retrieves a 5-day weather forecast for specific coordinates.

Parameters:

  • latitude (str): Latitude coordinate (decimal degrees)
  • longitude (str): Longitude coordinate (decimal degrees)

Returns:

  • Formatted string containing the next 5 forecast periods

Example Response:

Tonight:
- Temperature: 45°F
- Wind: 5 mph NW
- Forecast: Clear skies with light winds

---

Tomorrow:
- Temperature: 72°F
- Wind: 10 mph SW
- Forecast: Sunny and warm with increasing clouds in the afternoon

🏗️ Project Structure

mcp_weather/
├── weather.py          # Main MCP server implementation
├── main.py             # Simple entry point (placeholder)
├── pyproject.toml      # Project configuration and dependencies
├── mcp.json           # MCP client configuration template
├── README.md          # This file
├── uv.lock            # Dependency lock file
├── .python-version    # Python version specification
└── .venv/             # Virtual environment directory

🔌 Dependencies

  • httpx: Modern async HTTP client for API requests
  • mcp: Model Context Protocol implementation
  • FastMCP: FastMCP framework for building MCP servers

🌐 Data Source

This project uses the National Weather Service (NWS) API, which provides:

  • Real-time weather alerts and warnings
  • Detailed weather forecasts
  • Geographic point data
  • Free and reliable weather information

🛠️ Development

Adding New Tools

To add new weather-related tools:

  1. Create a new async function in weather.py
  2. Decorate it with @mcp.tool()
  3. Add proper type hints and docstrings
  4. Implement the tool logic using the existing helper functions

Testing

# Run the server in development mode
uv run weather.py

# Test with MCP client tools
# The server will respond to MCP protocol messages

📝 Error Handling

The server includes comprehensive error handling:

  • HTTP request failures
  • API response validation
  • Network timeouts (30-second limit)
  • Graceful fallbacks for missing data

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

📄 License

MIT License.

🙏 Acknowledgments

📞 Support

For issues, questions, or contributions:

  • Open an issue on GitHub
  • Check the MCP documentation
  • Review the National Weather Service API documentation

Note: This server requires an active internet connection to fetch weather data from the NWS API.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Weather Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-weather-msremigio)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research