Skip to main content
Glama
weather-mcp-server

weather-mcp-server

by elmopps

Weather MCP Server

An MCP (Model Context Protocol) server that gives Claude real-time weather data from the US National Weather Service API — no API key needed.

What it does

  • get_alerts — fetches active weather alerts for any US state

  • get_forecast — fetches a 5-period forecast for any lat/long location

Related MCP server: Weather MCP Server

Requirements

  • Python 3.12+

  • uv

Setup

Clone the repo and install dependencies:

git clone https://github.com/YOUR_USERNAME/weather-mcp-server
cd weather-mcp-server
uv venv --python 3.12
source .venv/bin/activate
uv add "mcp[cli]" httpx

Connect to Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

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

Restart Claude Desktop. Look for the hammer icon in the chat input.

Built with

Available Tools

2 tools
get_alertsB

Get weather alerts for a US state.

Args:
    state: Two-letter US state code (e.g. CA, NY)

Inputs: state (required). Returns: result

get_forecastC

Get weather forecast for a location.

Args:
    latitude: Latitude of the location
    longitude: Longitude of the location

Inputs: latitude (required), longitude (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one for weather alerts by state, another for forecast by coordinates. No overlap in functionality.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern (get_alerts, get_forecast), making the naming predictable and easy to understand.

    Tool Count3/5

    With only two tools, the server feels minimal for a weather domain. While it covers two core functions, 2 tools is on the lower end of reasonable scope.

    Completeness3/5

    The server provides alerts and forecast but lacks current conditions, radar, or marine data, leaving notable gaps for a typical weather information service.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides weather information and alerts from the National Weather Service, including active weather alerts for US states and location-based forecasts using latitude/longitude coordinates.
      2
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      Provides real-time weather forecasts and alerts for US locations using the National Weather Service API. Supports querying forecasts by coordinates and retrieving active weather alerts by state.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides weather information using the US National Weather Service API, including active weather alerts for US states and location-specific forecasts based on latitude and longitude coordinates.
      90 npm
      MIT