Skip to main content
Glama

StormScope

Real-time US weather data for AI assistants via MCP. Uses the NWS API, NOAA Storm Prediction Center data, NOAA Weather Prediction Center surface analysis, Iowa Environmental Mesonet radar and radiosonde soundings, and Open-Meteo pressure-level model data. Optionally uses data from your Tempest personal weather station.

US locations only. Covers all 50 states, DC, and US territories (Puerto Rico, Guam, USVI, American Samoa). Requests for non-US locations return an error. The SPC national outlook covers the contiguous US only.

What it does

Most tools support a detail parameter. Standard gives a clean summary, and full adds more nerd stuff (METAR, VTEC codes, polygon geometry, probabilistic outlooks).

  • Current conditions: temperature, wind, humidity, sky, pressure

  • Forecast in daily periods, hourly, or raw gridpoint time-value series

  • Active weather alerts with severity filtering

  • SPC severe weather outlook, both categorical risk and probabilistic tornado/wind/hail

  • National severe outlook with human-readable region descriptions

  • NEXRAD radar station metadata and imagery URLs

  • 500mb upper-air analysis: geopotential heights, temperature, wind, and derived vorticity (synoptic-scale resolution from a 5-point finite-difference grid, useful for identifying troughs, ridges, and jet stream patterns but not mesoscale features)

  • Soundings: the latest observed radiosonde from the nearest launch site (with its distance and direction from you) or a model profile at your exact location, with CAPE/CIN, LCL, freezing level, lapse rates, precipitable water, bulk shear, storm-relative helicity, and temperature inversions

  • Surface analysis: fronts, pressure centers (highs/lows), and warm/cold sector detection relative to the nearest cold front

Related MCP server: US Weather MCP Server

Installation

Requires Python 3.11+ and uv.

claude mcp add --scope user stormscope -- uvx --from git+https://github.com/thornjad/stormscope stormscope

Or add to your Claude Code MCP config:

{
  "mcpServers": {
    "stormscope": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/thornjad/stormscope", "stormscope"],
      "env": {
        "PRIMARY_LATITUDE": "YOUR_LATITUDE",
        "PRIMARY_LONGITUDE": "YOUR_LONGITUDE"
      }
    }
  }
}

Configuration

Variable

Default

Description

PRIMARY_LATITUDE

none

Default latitude when coordinates aren't passed explicitly

PRIMARY_LONGITUDE

none

Default longitude when coordinates aren't passed explicitly

UNITS

us

Unit system (us or si)

ENABLE_CORELOCATION

false

Set to true to enable macOS CoreLocation (requires Xcode Command Line Tools)

DISABLE_AUTO_GEOLOCATION

false

Set to true to disable CoreLocation and IP geolocation

TEMPEST_TOKEN

none

Tempest Personal Access Token, enables Tempest station integration

TEMPEST_STATION_ID

none

Explicit station ID to use (optional, see Tempest station)

TEMPEST_STATION_NAME

none

Station name to match instead of ID (optional)

USE_TEMPEST_STATION_GEOLOCATION

false

Use Tempest station coordinates as the primary location

Location detection

All location-aware tools accept optional latitude and longitude parameters. When omitted, the server resolves location through a fallback chain:

  1. Explicit latitude/longitude params. The AI can pass coordinates for any location

  2. Tempest station location (opt-in). Set USE_TEMPEST_STATION_GEOLOCATION=true with a configured station to use its coordinates

  3. PRIMARY_LATITUDE/PRIMARY_LONGITUDE env vars. These are precise and recommended for your home location

  4. macOS CoreLocation (opt-in). Set ENABLE_CORELOCATION=true to use it. It requires Xcode Command Line Tools, has ~100m WiFi-based accuracy, and prompts for location permission on first use. Compiles a small Swift helper into ~/Library/Application Support/stormscope/

  5. IP geolocation via ipinfo.io. This is automatic, with city-level accuracy and one request per session

Setting DISABLE_AUTO_GEOLOCATION=true disables both CoreLocation and IP geolocation (tiers 4 and 5). With auto-geolocation disabled and no env vars or explicit params, tools return an error.

Tempest personal weather station

If you have a Tempest personal weather station, StormScope can enrich NWS data with hyper-local sensor readings that NWS cannot provide: solar radiation, UV index, lightning strike counts, air density, and wet bulb temperature. Tempest also supplies sunrise/sunset times in its forecast, which are added to get_forecast output.

Tempest data supplements NWS. NWS provides authoritative alert text, detailed narrative forecasts, and broad coverage, while Tempest provides hyper-local precision at your exact station location. When a Tempest station is within range, StormScope uses Tempest values for temperature, feels-like, humidity, wind, and pressure, and sets data_source: "tempest" in the response.

If the Tempest API is unavailable, all tools fall back to NWS data.

Setup

  1. Get a Personal Access Token from the Tempest developer portal.

  2. Find your station ID from the Tempest app or API (Settings → Stations, or from the URL at tempestwx.com/station/<id>).

  3. Add to your MCP environment:

{
  "TEMPEST_TOKEN": "your-token-here",
  "TEMPEST_STATION_ID": "your-station-id"
}

Station resolution

When TEMPEST_STATION_ID is not set, StormScope auto-discovers the nearest station associated with your token. If the nearest station is more than 5 miles from the request coordinates, it is not used (to avoid attaching irrelevant data to a distant location). You can also identify a station by name with TEMPEST_STATION_NAME (matched case-insensitively against the station's name and public_name fields).

Variable

Purpose

TEMPEST_TOKEN

Required. Enables all Tempest functionality.

TEMPEST_STATION_ID

Use a specific station by numeric ID.

TEMPEST_STATION_NAME

Use a specific station by name.

USE_TEMPEST_STATION_GEOLOCATION

Set to true to use the station's GPS coordinates as the primary location. Requires TEMPEST_STATION_ID or TEMPEST_STATION_NAME.

Tools

Tool

Description

Key params

get_conditions

Current conditions at a station

detail: standard or full

get_forecast

Forecast in multiple formats

mode: daily, hourly, or raw; days (1-7, default 7); hours (1-48, default 24)

get_alerts

Active weather alerts

severity_filter: Extreme, Severe, Moderate, or Minor; detail: standard or full

get_spc_outlook

SPC outlook for a point

outlook_type: categorical, tornado, wind, or hail; day: 1-3

get_national_outlook

CONUS-wide risk areas (no lat/lon)

day: 1-3

get_radar

NEXRAD radar with textual summary and clickable links

get_upper_air

500mb heights, temperature, wind, derived vorticity (Open-Meteo)

get_sounding

Observed radiosonde or model sounding with CAPE, shear, SRH

source: observed or model; station; hours_ahead: 0-48; detail

get_surface_analysis

Fronts, pressure centers, warm/cold sector detection (WPC)

day: 1-3; detail: standard or full

get_briefing

Combined briefing, the default for general weather questions

detail: standard or full

All location-aware tools accept optional latitude/longitude, falling back to the configured location (see Location detection).

Upper-air data provided by Open-Meteo under CC-BY 4.0. Vorticity is derived from model wind fields at ~110km grid spacing, which captures synoptic-scale features (shortwave troughs, jet maxima) but not mesoscale detail.

Soundings come from the NWS radiosonde network via IEM from roughly 85 US sites, so the nearest site can be hundreds of kilometers away and up to 12 hours old. get_sounding with source=observed reports the site's distance and bearing from you and adds a note when it is far or old. Use source=model for a profile at your exact location or a forecast hour (up to 48). Both report surface-based CAPE/CIN, LCL/LFC/EL, freezing level, lapse rates, precipitable water, 0-1 and 0-6 km bulk shear, 0-1 and 0-3 km storm-relative helicity, and temperature inversions below ~5 km. Index calculations use MetPy.

Example conversation

These examples show how an AI assistant might present StormScope data. The tools return structured JSON, and the assistant formats it for the user.

"What's the weather?" (uses get_briefing):

Currently 72F and Mostly Sunny in Minneapolis, MN.
Feels like 72F. Wind SW 8 mph. Humidity 45%.
Today: High 78F, increasing clouds, chance of PM thunderstorms.
Tonight: Low 58F, scattered thunderstorms likely.
Severe Weather: Marginal Risk (MRGL) - isolated severe storms possible.
Alerts: None active.

"What's the severe weather outlook?" (uses get_briefing detail=full):

...plus dewpoint 50F, cloud layers FEW at 3000m, METAR: KMSP 041200Z...
Probabilistic: 5% tornado (significant), 15% wind, 15% hail
National: SLGT risk in central Oklahoma, MRGL in northern Texas
Radar: KMPX, latest scan 12:00Z, N0B/N0S available
Day 2: TSTM, Day 3: NONE

Using from scripts

The tools can be called without an AI assistant or a running server. FastMCP's in-memory client talks to the server object directly, so the script starts, makes its calls and exits.

# /// script
# requires-python = ">=3.11"
# dependencies = ["stormscope @ git+https://github.com/thornjad/stormscope"]
# ///
import asyncio

from fastmcp import Client

from stormscope.server import mcp


async def main():
    async with Client(mcp) as client:
        result = await client.call_tool(
            "get_conditions", {"latitude": 44.98, "longitude": -93.27}
        )
        print(result.data)


asyncio.run(main())

Run it with uv run script.py. uv installs the dependencies into a cached environment on first run. Inside a checkout, uv run python script.py works the same way with the dependency block omitted.

call_tool takes any tool name from the Tools table and the same parameters, and result.data is the dict the tool returns. Configuration is read from the environment as usual (see Configuration).

Each run starts a fresh process, so the response cache starts empty and importing MetPy adds around a second of startup. A script that makes several calls should keep them inside one async with block to share the cache. For a one-off call from the shell, fastmcp call path/to/server.py get_alerts latitude=44.98 longitude=-93.27 --json also works from a checkout.

Data sources

StormScope aggregates data from several upstream services. None of these services require authentication or API keys.

National Weather Service (NWS) at api.weather.gov (terms) Conditions, forecasts, alerts, and gridpoint data. NWS data is produced by the US federal government and is in the public domain under 17 U.S.C. § 105. Use of NWS data does not imply NOAA or NWS endorsement of this project.

NOAA Storm Prediction Center (SPC) at spc.noaa.gov (terms) Categorical and probabilistic severe weather outlooks (days 1-3). SPC data is US government public domain under the same statute as NWS.

NOAA Weather Prediction Center (WPC) at mapservices.weather.noaa.gov Surface analysis charts with fronts and pressure centers (days 1-3). WPC data is US government public domain under the same statute as NWS. Analysis charts are updated approximately 4 times per day. No pressure values are provided for H/L centers.

Iowa Environmental Mesonet (IEM) at mesonet.agron.iastate.edu (disclaimer) NEXRAD radar station metadata and imagery, plus radiosonde (weather balloon) sounding data from the NWS upper-air network. IEM data is in the public domain and may be used freely by anyone for any lawful purpose. Data provided by the Iowa Environmental Mesonet of Iowa State University.

Open-Meteo at open-meteo.com (terms) 500mb upper-air pressure-level data (geopotential heights, temperature, wind) and model soundings. Provided under CC-BY 4.0. StormScope uses the free non-commercial tier and does not support paid Open-Meteo subscriptions.

ipinfo.io at ipinfo.io (terms) IP-based geolocation, used only as a last-resort fallback when no coordinates are configured and CoreLocation is unavailable. One request per server session. StormScope uses the free tier of this service and does not resell or redistribute the geolocation data. Set DISABLE_AUTO_GEOLOCATION=true to prevent this request entirely.

All upstream services provide data without warranty of accuracy or availability. StormScope caches responses to reduce request volume but cannot guarantee data freshness. Users of StormScope are responsible for complying with each service's terms of use. The authors of StormScope are not liable for how others use this software or the upstream APIs it connects to.

Disclaimer

This application is for informational and educational purposes only. It is not intended for use in life-threatening weather conditions or emergency situations, and should not be relied on as a sole source of weather information. Do not rely on this application for critical weather decisions. Always consult official weather services and emergency broadcasts during severe weather. This application may not provide real-time or accurate weather information. The authors shall not be held liable in the event of injury, death, or property damage resulting from reliance on this software. See the included license for specific language limiting liability.

Development

git clone https://github.com/thornjad/stormscope.git
cd stormscope
uv sync --group dev
uv run python -m pytest

License

ISC


Found this useful? Buy me a coffee!

Available Tools

9 tools
get_alertsA

Get active weather alerts for a US location.

Use proactively at conversation start. Also: "Any warnings?", "Is it safe to travel?"

severity_filter: "Extreme", "Severe", "Moderate", or "Minor" to filter. detail="standard": event, severity, headline, description, instructions. detail="full": adds VTEC codes, polygon geometry, areaDesc, sender.

Omit lat/lon to use configured primary location.

units: accepted for API consistency but does not affect alert output. Alert text is returned as-is from NWS.

Inputs: latitude, longitude, severity_filter, detail, +1 more. Returns: object

get_briefingA

Get a comprehensive weather briefing for a US location.

The default tool for "What's the weather?" — combines conditions, forecast, alerts, and SPC outlook.

detail="standard": current conditions + today/tonight forecast + alerts + categorical SPC. detail="full": adds probabilistic outlooks (when MRGL+), national outlook, radar, and day 2-3 SPC forecasts.

Omit lat/lon to use configured primary location.

units: "us" or "si" for base system, with optional field overrides: "us,pressure:mb,wind:kt". Fields: temperature (f|c), pressure (inhg|mb), wind (mph|kt|kmh|ms), distance (mi|km), accumulation (in|mm|cm).

Inputs: latitude, longitude, detail, units. Returns: object

get_conditionsA

Get current weather conditions for a US location.

Use when: "What's the weather right now?", "How hot is it?", "Is it windy?"

detail="standard": temperature, feels-like, dewpoint (or frost_point when <= 0C), humidity, wind, sky, visibility, pressure. detail="full": adds cloud layers, present weather, raw METAR.

Omit lat/lon to use configured primary location.

units: "us" or "si" for base system, with optional field overrides: "us,pressure:mb,wind:kt". Fields: temperature (f|c), pressure (inhg|mb), wind (mph|kt|kmh|ms), distance (mi|km), accumulation (in|mm|cm).

Inputs: latitude, longitude, detail, units. Returns: object

get_forecastA

Get forecast for a US location.

Use when: "What's the forecast?", "Will it rain?", "Weather this week?"

mode="daily": 12-hour day/night periods with narrative forecasts (default). mode="hourly": hour-by-hour temperature, precip chance, wind. mode="raw": gridpoint time-value series for temperature, dewpoint, wind, precip, sky cover.

days (1-7) controls daily mode. hours (1-48) controls hourly mode. Omit lat/lon to use configured primary location.

Note: the main temperature and wind fields in daily/hourly periods come from NWS pre-formatted data and are always in Fahrenheit/mph. The units parameter affects enriched fields: dewpoint/frost_point, feels_like, pressure, and snow/ice accumulation. Use mode="raw" for full unit-agnostic gridpoint data.

units: "us" or "si" for base system, with optional field overrides: "us,pressure:mb,wind:kt". Fields: temperature (f|c), pressure (inhg|mb), wind (mph|kt|kmh|ms), distance (mi|km), accumulation (in|mm|cm).

Inputs: latitude, longitude, mode, days, +2 more. Returns: object

get_national_outlookA

Get CONUS-wide SPC severe weather risk areas.

Use when: "Any severe weather in the US?", "National storm outlook?"

Returns all active risk areas with human-readable region descriptions (e.g. "central Oklahoma", "northern Texas"). No lat/lon needed.

day: 1=today, 2=tomorrow, 3=day after.

units: accepted for API consistency but does not affect outlook output. Risk levels and region descriptions are unitless.

Inputs: day, units. Returns: object

get_radarA

Get NEXRAD radar info with textual weather summary and clickable links.

Use when: "Show me radar", "What does radar look like?", "Radar imagery?"

Returns a textual summary of current precipitation and near-term outlook (useful when images can't be displayed), plus clickable links to radar imagery the user can open in a browser. Also includes station ID, available products, and latest scan time.

Omit lat/lon to use configured primary location.

units: accepted for API consistency but does not affect radar output. Radar data is imagery-based and unitless.

Inputs: latitude, longitude, units. Returns: object

get_spc_outlookA

Check SPC severe weather outlook for a US location.

Use when: "Severe weather risk?", "Storm outlook?", "Should I worry about storms?"

outlook_type="categorical": risk level (NONE/TSTM/MRGL/SLGT/ENH/MDT/HIGH). outlook_type="tornado"/"wind"/"hail": probabilistic hazard percentage + significant flag.

day: 1=today, 2=tomorrow, 3=day after. Omit lat/lon to use configured primary location.

units: accepted for API consistency but does not affect SPC outlook output. Risk levels and probabilities are unitless.

Inputs: latitude, longitude, outlook_type, day, +1 more. Returns: object

get_surface_analysisA

Get surface analysis or forecast showing fronts, pressure centers, and warm/cold sector.

Use when: "Where are the fronts?", "Am I in the warm sector?", "Surface analysis?", "Where's the nearest low?"

Returns distance and bearing from your location to nearby fronts and pressure centers (highs/lows). For cold fronts, determines whether you're on the warm side (ahead) or cold side (behind).

product="analysis" (default): WPC coded surface analysis (CODSUS) showing current front positions and pressure centers, updated every 3 hours. Includes pressure values on H/L centers. The day parameter is not used. product="forecast": WPC national forecast chart. day: 1=today, 2=tomorrow, 3=day after.

detail="standard": nearest ~5 fronts, ~4 pressure centers, location summary. detail="full": all features with nearest-point coordinates.

scope="local" (default): location summary only references fronts within ~400km — distant fronts are listed but not described as influencing local weather. Use for typical queries about local conditions. scope="all": no distance threshold — location summary always reports warm/cold sector relative to nearest cold front regardless of distance. Use when asking about the broad synoptic pattern.

Note: this tool reports synoptic-scale features (major fronts, pressure centers). Mesoscale boundaries such as outflow boundaries, sea breezes, and moisture gradients are not included in the CODSUS or forecast chart data sources.

Warm/cold sector detection is approximate (geometric heuristic). CONUS coverage only.

Omit lat/lon to use configured primary location.

units: "us" or "si" for base system, with optional field overrides: "us,pressure:mb,wind:kt". Fields: temperature (f|c), pressure (inhg|mb), wind (mph|kt|kmh|ms), distance (mi|km), accumulation (in|mm|cm).

Inputs: latitude, longitude, product, day, +3 more. Returns: object

get_upper_airA

Get 500mb upper-air forecast with heights, temperature, wind, and vorticity.

Use when: "What does 500mb look like?", "Where are the troughs?", "Upper-air pattern?", "Jet stream?", "Vorticity?"

500mb (~18,000 ft) is the key level for synoptic-scale pattern recognition:

  • Heights reveal troughs (low heights, stormier) and ridges (high heights, calmer)

  • Vorticity maxima indicate regions favorable for storm development

  • Wind shows the jet stream position and strength

Returns 12-hour time series with height (dam), temperature, wind, and derived relative/absolute vorticity (10^-5 s^-1) from a 5-point finite-difference grid at ~110km spacing.

Not US-only — uses global GFS model data via Open-Meteo. Omit lat/lon to use configured primary location.

units: "us" or "si" for base system, with optional field overrides: "us,pressure:mb,wind:kt". Fields: temperature (f|c), pressure (inhg|mb), wind (mph|kt|kmh|ms), distance (mi|km), accumulation (in|mm|cm).

Inputs: latitude, longitude, units. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct weather data type (alerts, conditions, forecast, radar, etc.) with no overlap. The get_briefing tool is a composite but clearly documented as a summary tool, avoiding confusion.

    Naming Consistency5/5

    All tool names follow the consistent pattern 'get_<noun>', making it easy to predict the function from the name. No mixing of conventions or irregular verbs.

    Tool Count5/5

    9 tools is well-scoped for a comprehensive weather server, covering all major aspects (alerts, conditions, forecast, radar, severe weather outlooks, surface analysis, upper air) without being overwhelming.

    Completeness4/5

    The tool set covers the core weather domain thoroughly. Minor gaps exist (e.g., marine forecasts, climate data) but are beyond the stated scope. The briefing tool effectively fills the need for an overview.

    Maintenance

    ActivityStale
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to access real-time US weather forecasts and alerts through the National Weather Service API.
      2
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather alerts and forecasts from the National Weather Service for US locations, integrating with AI assistants via the Model Control Protocol.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides weather forecasts and alerts for US locations via the National Weather Service API, enabling AI assistants to deliver real-time weather information.
      ISC