Skip to main content
Glama
Kennexcorp

Weather MCP Server

by Kennexcorp

Weather MCP Server

A Model Context Protocol (MCP) server that provides real-time weather alerts and forecasts using the National Weather Service (NWS) API. This server is built with Python and fastmcp, and is designed to integrate seamlessly with Claude Desktop.

Features

This server exposes two main tools:

  • get_alerts(state: str): Retrieves active weather alerts for a specific US state (e.g., "TX", "CA").

    • Returns a list of alerts including event type, severity, description, and instructions.

  • get_forecast(latitude: float, longitude: float): Fetches the weather forecast for a given location.

    • Automatically resolves the NWS grid point for the coordinates.

    • Returns a detailed forecast including temperature, wind speed, and detailed descriptions for upcoming periods.

Related MCP server: Weather MCP Server

Prerequisites

  • Docker (required)

Installation & Usage

1. Build the Docker Image

docker build -t weather-mcp .

2. Configure Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "weather": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "weather-mcp"
      ]
    }
  }
}

Development

To test your changes during development, rebuild and run the container manually:

# Rebuild the image
docker build -t weather-mcp .

# Run the container (interactive mode to test stdin/stdout)
docker run -i --rm weather-mcp

You can then paste JSON-RPC messages (if you know them) or simply ensure the container starts without errors.

To verify a specific tool execution (e.g., getting alerts), you can pipe a request into the container:

echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "get_alerts", "arguments": {"state": "TX"}}}' | docker run -i --rm weather-mcp

Technologies

  • mcp: The official Python SDK for the Model Context Protocol.

  • httpx: A next-generation HTTP client for Python.

  • uv: An extremely fast Python package installer and resolver.

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

0Releases (12mo)

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • An MCP server for weather information by @kulybaba

  • An MCP server for weather information by @kulybaba

  • MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.

  • Smarter Weather MCP: forecasts, alerts, outlooks, observations, AQI, grids, and map imagery.

View all MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.
    2
    80
    1
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides current weather forecasts for specific locations and active weather alerts for US states.
    2
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI models to fetch weather alerts and detailed forecasts for US locations using the National Weather Service API.
    80
    GPL 3.0

View all related MCP servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kennexcorp/weather_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server