MCP weather alert server for US states

MCP weather alert server for US states

hands-on-mcp•byankitmishralive

An MCP server built with fastmcp that fetches and formats active weather alerts for a specified US state from the National Weather Service API, with an example client included.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Fetches and formats active weather alerts for a specified US state.
  • •Exposes the get_alerts tool, which the agent uses to fetch weather alerts.
  • •Is built with the fastmcp library and pulls data from the NWS API at api.weather.gov.

BEST FOR

  • •Querying active weather alerts for US states through an MCP-integrated client.
  • •Learning how to build an MCP server with fastmcp and connect it to an LLM client.

ABOUT HANDS-ON-MCP

MCP weather alert server for US states is cataloged as an MCP server attributed to ankitmishralive. An MCP server built with fastmcp that fetches and formats active weather alerts for a specified US state from the National Weather Service API, with an example client included. 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: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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 alert server for US states 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 the weather alert server use?

It uses the National Weather Service (NWS) API at api.weather.gov.

Does the repository include a client example?

Yes, it includes a client application using the mcp_use library and Langchain with conversation memory.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f0a78aa5aad2 · 采集于 2026-11-13 13:45:42 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP US Weather Client/Server

This was my first encounter with hands on implementation of MCP, i really liked it & i firmly believe MCP is here to stay, i have to implement some more projects to get more more better understanding about the overall ecosystem,About the repository, This repository contains a simple MCP (Model Context Protocol) server that provides weather alert information for US states, leveraging the National Weather Service (NWS) API. It also includes an example client application that demonstrates how to interact with the MCP server using the mcp_use library and Langchain.

Features

  • Weather Alerts: Fetches and formats active weather alerts for a specified US state.
  • MCP Integration: Demonstrates how to build an MCP server using the fastmcp library.
  • Client Example: Provides a client application that uses the server and integrates conversation memory.
  • Langchain Integration: Example showcases LLM integration.

Architecture

graph LR

    %% MCP System
    subgraph MCP_System
        A[Client: client.py]
        B[MCP Agent: mcp_use.MCPAgent]
        C[MCP Client: mcp_use.MCPClient]
        D[FastMCP Server: weather.py]
        E[NWS API: api.weather.gov]

        A --> B
        B --> C
        C --> D
        D --> E
    end

    %% Data Flow
    subgraph Data_Flow
        F[User Input]
        F --> A
        E -->|Geo+JSON| D
        D -->|Weather Data| B
        B -->|LLM Interaction| F
    end

    %% Styling with visible text
    classDef client fill:#f9f,stroke:#333,color:#000,font-weight:bold;
    classDef agent fill:#ccf,stroke:#333,color:#000,font-weight:bold;
    classDef server fill:#fcc,stroke:#333,color:#000,font-weight:bold;
    classDef api fill:#ffc,stroke:#333,color:#000,font-weight:bold;
    classDef user fill:#cfc,stroke:#333,color:#000,font-weight:bold;

    class A client;
    class B,C agent;
    class D server;
    class E api;
    class F user;

    %% Link styling
    linkStyle default stroke:#000,stroke-width:2px;


Prerequisites

Before running the server and client, ensure you have the following installed:

  • Python 3.7+
  • uv (recommended for dependency management - https://github.com/astral-sh/uv)
  • Groq API key. This needs to be added to .env file.
  • mcp_use Library: Make sure you've installed this according to its documentation.

Installation

  1. Clone the repository:

    git clone <your_repository_url>
    cd <repository_directory>
    
  2. Install dependencies (using uv):

    uv add -r requirements.txt
    

    This command uses uv pip install . to install the project and its dependencies based on the pyproject.toml file in the current directory.

  3. Create .env file: Create a .env file in the root directory with the following content, replacing <YOUR_GROQ_API_KEY> with your actual Groq API key:

    GROQ_API_KEY=<YOUR_GROQ_API_KEY>
    

Usage

Running the MCP Weather Server & Client

  1. Start the server:

    uv run mcp dev server/weather.py
    
  2. Start the Client:

    uv run server/client.py
    

Interacting with the Client

  • Type your queries at the prompt. For example: "Get weather alerts for CA, NY or NJ etc".
  • Type exit or quit to end the conversation.
  • Type clear to clear the conversation history.

Example Interactions

The agent will then use the get_alerts tool to fetch weather alerts for California and provide you with the formatted results.

The agent will then use the get_config tool to fetch the resource.

Configuration

server/weather.json

This configuration file describes the tools and resources exposed by the MCP server. It's crucial that this file accurately reflects the definitions in your weather.py file. See the mcp_use documentation for details on the format of this file. The default configuration is in the server folder.

Environment Variables

The client application uses environment variables, specifically GROQ_API_KEY, to authenticate with the Groq API. Make sure to set these variables before running the client. You can set those variables using the .env file.

Output

  • Console Output: This screenshot shows the typical output of the client application during a conversation, demonstrating how the agent interacts with the MCP server and utilizes the get_alerts tool.

image

  • MCP Inspector: This screenshot shows the typical weather.json used with the MCP Inspector

image

Contact

For any inquiries or support, please reach out:

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 alert server for US states 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/hands-on-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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