Skip to main content
Glama
SHEARLINE

SHEARLINE

by lostnumber07

SHEARLINE

PyPI Python CI MCP Registry License: MIT

The severe-weather analyst your agent doesn't have. SHEARLINE is a free, MIT-licensed MCP server that gives AI agents analyst-grade US severe-weather tools: live warning polygons with Impact-Based Warning tags, SPC convective outlooks, RAP-derived point environments and forecast trends (CAPE/shear/SRH/STP computed with MetPy), MRMS radar-derived hail and rotation products, GOES lightning, ground-truth storm reports (real-time and historical), and a composite threat brief that synthesizes all of it. A dozen weather MCPs already wrap the basic forecast API; SHEARLINE deliberately skips everything they do and ships only what requires radar meteorology to expose correctly.

Informational only. Not a substitute for official NWS warnings. Every tool repeats this, because it matters: when weather threatens, follow official warnings from weather.gov and local authorities.

Tools

Tool

What it returns

get_active_warnings(lat, lon, radius_km=40)

Active tornado/severe-thunderstorm/flash-flood warning polygons with IBW tags (max hail size, max gust, tornado detection/damage threat), parsed storm motion, expirations, and whether the exact point is inside a polygon. Watches listed separately.

get_spc_outlook(lat, lon, day=1)

SPC categorical risk (TSTM→HIGH) at the point plus tornado/hail/wind probabilities and significant-severe flags, days 1–3, with interpretation calibrated to the category.

get_point_environment(lat, lon)

Latest RAP 13-km analysis profile computed with MetPy: MLCAPE/MUCAPE/CINs, LCL, 0–1/0–6 km shear, 0–1/0–3 km SRH, Bunkers motion, effective inflow layer, effective SRH/shear, SCP, and significant-tornado parameter — interpreted like an analyst (pulse vs. cool-season high-shear vs. classic supercell parameter space).

get_environment_trend(lat, lon)

The anticipatory view: a short RAP forecast series (f00/f01/f03/f06, one consistent cycle) of MLCAPE, 0–6 km shear, 0–1 km SRH, SCP and STP, with an interpretation of the trajectory (intensifying / stabilizing / steady) — for "is this getting worse" rather than "what is it now."

get_mrms_severe(lat, lon, radius_km=40)

MRMS maxima within radius: 60-min MESH (hail, inches and mm), low-level and mid-level rotation tracks (azimuthal shear), VIL, composite reflectivity — each with valid time and distance/bearing of the max.

get_storm_reports(lat, lon, radius_km=80, hours=6)

Normalized Local Storm Reports: type, magnitude with units, time, location, distance/bearing, remarks.

get_lightning(lat, lon, radius_km=40, minutes=15)

GOES-East GLM total-lightning activity in the recent window: flash count and rate, nearest strike (distance/bearing/time), and a tiered outdoor-safety interpretation (overhead / within-striking-distance / in-the-area).

get_historical_storm_reports(lat, lon, date, radius_km=80)

What hail/wind/tornado hit a point on a specific past date (YYYY-MM-DD, UTC) — normalized reports with magnitude+units and distance/bearing, for the insurance / ag / forensic use case. Coverage from ~2005; preliminary LSRs, not the final NCEI record.

get_threat_brief(lat, lon)

The showpiece: runs everything above concurrently and synthesizes a threat level (none/marginal/elevated/significant/extreme) with stated logic, hazards ranked, environment summary, nearest storm signature, and a recommended attention window.

get_radar_snapshot(lat, lon)

Nearest WSR-88D's latest Level 2 volume metadata: VCP (scan strategy), max reflectivity with range/azimuth, coarse echo-top estimate.

Every tool returns structured JSON with data (numeric fields, units stated), interpretation (plain-language analyst sentences), degraded (which upstream sources failed, if any — partial data instead of errors), the safety disclaimer, and a schema_version — the field contract is semver-stable (see ARCHITECTURE), so integrators can depend on it.

Related MCP server: Weather MCP Server

Example: threat brief during a real outbreak

Real output from 2026-06-10, point inside an active tornado warning in northern Missouri:

{
  "threat_level": "extreme",
  "threat_logic": [
    "Tornado Warning in effect at the point, corroborated by confirmed tornado reports nearby — treat as an immediate life-safety situation.",
    "Severe Thunderstorm Warning at the point tagged 'Considerable' (hail to 1.75\", gusts to 60 mph).",
    "Significant-tornado parameter of 4.0 with storms ongoing — environment strongly supports tornadic supercells.",
    "MRMS MESH of 2.3\" hail within radius in the last hour.",
    "Intense rotation track (azimuthal shear 0.013 /s) nearby in the last hour.",
    "6 tornado report(s) near the point in the report window."
  ],
  "hazards_ranked": [
    {"hazard": "tornado", "level": "extreme"},
    {"hazard": "hail", "level": "extreme"},
    {"hazard": "damaging_wind", "level": "extreme"},
    {"hazard": "flash_flood", "level": "moderate"}
  ],
  "nearest_storm_signature": {
    "signature": "composite reflectivity", "value": "58.5 dBZ",
    "distance_km": 18.0, "direction": "ENE", "valid_utc": "2026-06-10T22:14Z"
  },
  "attention_window": {"window": "now", "until_utc": "2026-06-10T21:00:00-05:00"}
}

And the same tool for a quiet coastal Maine point reads as confidently quiet — not as an error: "threat_level": "none" with the environment numbers shown so the agent can see why it's quiet.

Install

Requires Python 3.12+ and uv. No API keys — every data source is public and anonymous. uvx downloads and runs the published package in one step; nothing is installed permanently.

Claude Code:

claude mcp add shearline -- uvx shearline

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "shearline": {
      "command": "uvx",
      "args": ["shearline"]
    }
  }
}

Streamable HTTP (for remote/agent-platform use):

uvx shearline --http --port 8741
# serves at http://127.0.0.1:8741/mcp

On macOS you can also double-click scripts/launch.command to start the HTTP server in a Terminal window (honours SHEARLINE_PORT).

The HTTP transport is built to be hosted: it emits one structured JSON log line per tool call (tool, coarse 1° lat/lon bucket, latency, degraded list, cache hit/miss) and applies a per-client token-bucket rate limit, returning 429 with Retry-After when exceeded. Both are HTTP-only — stdio behaviour is unchanged. Configure via environment variables:

Env var

Default

Effect

SHEARLINE_RATE_RPM

60

sustained requests/minute/client (0 disables the limit)

SHEARLINE_RATE_BURST

30

token-bucket capacity (max burst)

SHEARLINE_HTTP_LOG

1

set 0 to silence per-request logging

SHEARLINE_LOG_LEVEL

INFO

log level for the shearline.http logger

SHEARLINE_UPSTREAM_CONCURRENCY

8

max concurrent upstream fetches (politeness toward NOAA)

To run the latest unreleased main instead of the PyPI release, swap shearline for --from git+https://github.com/lostnumber07/shearline shearline.

Why these tools

A forecast API tells you it might rain. None of the questions that matter on a severe weather day — is this storm rotating, how big is the hail, is the environment loaded for tornadoes, am I inside the polygon — are answerable from a forecast endpoint. They require the warning's IBW tags, radar-derived products, and a real sounding:

  • Warnings with IBW tags, not just warning text. A base-tier Severe Thunderstorm Warning and one tagged DESTRUCTIVE with 80 mph gusts are different planning problems. SHEARLINE parses the machine-readable tags (max hail size, max gust, tornado detection/damage threat) and the storm-motion vector, and does the point-in-polygon test for you.

  • The environment, computed honestly. CAPE without shear is a pulse-storm day; shear without CAPE is wind-driven rain. SHEARLINE pulls the current RAP analysis profile and computes the discriminating quantities with MetPy — including the effective inflow layer, effective SRH/shear, SCP, and STP — because high-CAPE/low-shear, low-CAPE/high-shear, and classic supercell parameter spaces produce very different hazards, and the interpretation says which one you're in.

  • MRMS, because warnings lag storms. MESH tells you what hail a storm has already produced; rotation tracks show where mesocyclones have tracked in the last hour — both on a ~2-minute cadence from the national radar mosaic, often ahead of the next warning update.

  • LSRs, because radar isn't ground truth. Spotter reports confirm what's actually reaching the ground — in real time, or for any past date (the insurance / forensic question, "what hit this address that day").

  • Lightning, because it's the most common outdoor-safety trigger. GOES GLM total lightning, distance-tiered to the 30-30 / 10-mile rules — the signal that actually stops a ballgame, a job site, or a drone flight.

  • Now and next. The point environment is the analysis now; the forecast trend (f00→f06 from one model cycle) says whether STP/CAPE is rising into the afternoon — the difference between "what is it" and "is it getting worse."

  • One brief that reasons across all of it. The threat level is rule-based with the triggered rules quoted back, so an agent can audit the logic instead of trusting a vibe.

Data sources (all public, no keys)

Coverage is continental US only — out-of-bounds coordinates are rejected with a clear error. Upstream fetches are cached (warnings 60 s, MRMS/lightning 120 s, LSRs 300 s, outlooks/RAP 30 min, historical reports 6 h) and degrade gracefully: if one source is down, you get partial data plus a degraded field, never a bare exception. A daily canary workflow checks every upstream's response shape and fails on schema drift (renamed fields, moved buckets) before it reaches you.

Recipes for non-meteorologists

You don't need to know what an STP is to use SHEARLINE. The .claude/skills/ directory ships three end-to-end recipes that name the exact tool sequence for a domain task — drop them into any agent that has SHEARLINE connected:

  • hail-claim-verification — did damaging hail occur at this address on this date? (insurance / forensic)

  • chase-day-briefing — outlook → environment → trend → warnings → radar, into a go/no-go with a target window (chase / EM)

  • event-day-lightning-watch — poll lightning proximity and issue suspend/shelter/resume calls by the 30-30 / 10-mile rules (venues / outdoor ops)

Architecture

SHEARLINE is a thin, layered async server: per-source fetch/parse modules feed a meteorology derivation layer, which feeds a uniform tool layer. Every tool returns the same {data, interpretation, degraded, disclaimer} envelope, every upstream call is TTL-cached, and one failing source degrades to partial data instead of an exception. See ARCHITECTURE.md for the module map, the request lifecycle of get_threat_brief, the concurrency model, and the upstream quirks each source module encodes.

Development

git clone https://github.com/lostnumber07/shearline && cd shearline
uv sync
uv run pytest          # offline test suite against recorded fixtures
uv run ruff check .
uv run shearline       # stdio
uv run python scripts/smoke.py     # live smoke test, both transports
uv run python scripts/canary.py    # live upstream drift check (shape-only)

See ARCHITECTURE.md for how to add a tool or data source.

License

MIT © Backshear LLC. Weather data is produced by NOAA/NWS and other public services; this project is not affiliated with or endorsed by NOAA.

Available Tools

10 tools
get_active_warningsA

Active NWS severe-weather warning polygons near a CONUS point.

Returns tornado / severe thunderstorm / flash flood warnings within
radius_km, each with Impact-Based Warning tags (max hail size, max wind
gust, tornado detection / damage threat), parsed storm motion, expiration
times, polygon geometry, and whether the exact point is inside the
polygon. Watches in effect at the point are listed separately.

Inputs: lat (required), lon (required), radius_km. Returns: object

get_environment_trendA

RAP forecast-environment trend at a CONUS point (the anticipatory view).

Where get_point_environment is "now" (the f00 analysis), this returns a short
forecast series (f00/f01/f03/f06) of the discriminating quantities — MLCAPE,
0-6 km bulk shear, 0-1 km SRH, supercell composite, significant-tornado
parameter — all from one consistent RAP cycle, with an interpretation of the
TRAJECTORY (intensifying / stabilizing / steady). Downloads and decodes four
forecast hours, so the first call can take ~15-20 seconds.

Inputs: lat (required), lon (required). Returns: object

get_historical_storm_reportsA

Local Storm Reports near a CONUS point on a specific PAST date.

Answers "what hail/wind/tornado hit this location on this day." `date` is a
single UTC calendar day formatted 'YYYY-MM-DD'. Returns normalized reports
(type, magnitude with units, time, location, distance/bearing, remarks) plus
a summary. Coverage begins ~2005; the data is preliminary NWS/spotter reports
via the Iowa Environmental Mesonet, not the final NCEI Storm Events record.
For the current situation use get_storm_reports instead.

Inputs: lat (required), lon (required), date (required), radius_km. Returns: object

get_lightningA

GOES GLM total-lightning activity near a CONUS point in the recent window.

Returns the flash count and rate within radius_km over the last `minutes`,
the nearest strike (distance/bearing/time), and a tiered outdoor-safety
interpretation (overhead / within-striking-distance / in-the-area). GLM
detects total lightning — both in-cloud and cloud-to-ground — from the
GOES-East satellite, with ~20-40 s latency.

Inputs: lat (required), lon (required), radius_km, minutes. Returns: object

get_mrms_severeA

MRMS radar-derived severe weather products near a CONUS point.

Samples within radius_km: max 60-minute MESH (hail size, inches and mm),
max low-level and mid-level rotation-track azimuthal shear over the last
hour, max VIL, and max composite reflectivity — each with valid time and
the distance/bearing of the maximum from the point.

Inputs: lat (required), lon (required), radius_km. Returns: object

get_point_environmentA

RAP-analysis severe-weather environment at a CONUS point.

Downloads the latest RAP 13-km analysis profile and computes, with MetPy:
MLCAPE/MUCAPE/SBCAPE and CINs, LCL height, 0-1 and 0-6 km bulk shear,
0-1 and 0-3 km storm-relative helicity, Bunkers storm motion, effective
inflow layer, effective SRH/shear, supercell composite (SCP) and
significant-tornado parameter (STP). Interpretation reasons through the
parameter space like an analyst. First call may take several seconds.

Inputs: lat (required), lon (required). Returns: object

get_radar_snapshotA

Latest NEXRAD Level 2 volume metadata from the nearest WSR-88D radar.

Metadata only (no imagery): radar site and distance, volume scan start
time, VCP (scan strategy) with meaning, max reflectivity and its
range/azimuth, and a coarse 18-dBZ echo-top estimate. Downloads a full
Level 2 volume (~5-15 MB), so expect a few seconds on first call.

Inputs: lat (required), lon (required). Returns: object

get_spc_outlookA

SPC convective outlook at a CONUS point for day 1, 2, or 3.

Returns the categorical risk (TSTM/MRGL/SLGT/ENH/MDT/HIGH) plus hazard probabilities (tornado/hail/wind for days 1-2; total severe for day 3) and significant-severe flags, with an interpretation calibrated to the category.

Inputs: lat (required), lon (required), day. Returns: object

get_storm_reportsA

Local Storm Reports (spotter/official reports) near a CONUS point.

Normalized tornado, hail, wind, and flood reports within radius_km over
the past N hours: type, magnitude with units, time, location,
distance/bearing from the point, and remarks.

Inputs: lat (required), lon (required), radius_km, hours. Returns: object

get_threat_briefA

Composite severe-weather threat brief for a CONUS point.

Runs warnings, SPC outlook, RAP environment, MRMS products, and storm
reports concurrently, then synthesizes: an overall threat level
(none/marginal/elevated/significant/extreme) with stated logic, hazards
ranked by concern, an environment summary, the nearest current storm
signature, and a recommended attention window. The first call can take
~10 seconds while the RAP profile downloads.

Inputs: lat (required), lon (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a clearly different severe-weather data source or time horizon: warnings, outlook, analyzed environment, forecast trend, MRMS products, lightning, current reports, historical reports, radar metadata, and a composite brief. Even the two radar-related tools are cleanly separated by purpose, and get_point_environment/get_environment_trend are explicitly distinguished as now vs forecast.

    Naming Consistency5/5

    All ten tools follow a consistent get_<descriptive_noun> pattern that reflects both action and resource. The names are uniformly snake_case with no mixed conventions or vague verbs.

    Tool Count5/5

    Ten tools is well within the ideal range and each one corresponds to a distinct severe-weather data product needed for situational awareness. The count is neither bloated nor too thin for the server's stated domain.

    Completeness5/5

    The surface covers the full severe-weather assessment workflow: current warnings, forecast outlooks, current and trended environment parameters, observed radar/lightning, recent and historical storm reports, and a synthesizing brief. There are no obvious dead ends or missing operations for a point-based CONUS severe-weather tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.
      13 npm
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A demo MCP server that provides AI assistants access to live US weather data via the free National Weather Service API, offering forecast and alert tools without requiring an API key.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that gives AI agents grounded access to US natural-hazard data — weather alerts, forecasts, earthquakes, and FEMA flood zones — from free, keyless US government APIs.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      This MCP server provides tools to get current weather, forecasts, and weather alerts from the US National Weather Service via REST APIs, enabling AI agents to query live weather data.
      1
      -