


Public Hosted Server: https://noaa-spaceweather.caseyjhand.com/mcp
Overview
Space weather from NOAA's Space Weather Prediction Center: geomagnetic storms, Kp index, aurora forecasts, solar wind, solar activity, and active alerts. Check current conditions, see whether the aurora is visible where you are, or pull solar wind time series.
Tools
| Tool |
Description |
noaa_spaceweather_get_conditions |
Latest R/S/G observations, rolling 24-hour maxima, three-day forecast, latest Kp, and an optional SWPC forecast discussion |
noaa_spaceweather_get_kp_index |
Planetary K-index (0–9) — recent observed 3-hour values with G-scale equivalents and aurora-latitude guidance, plus 3-day forecast |
noaa_spaceweather_get_aurora_forecast |
OVATION model aurora forecast: global probability grid, optional local lookup by coordinates with a daylight-aware go/no-go verdict and a poleward horizon reading |
noaa_spaceweather_get_solar_wind |
Real-time solar wind from the active L1 spacecraft: speed, proton density, temperature, and the critical Bz component with the window's most southward reading — explains why current geomagnetic conditions exist |
noaa_spaceweather_get_solar_activity |
Solar flare picture: discrete flare events with peak class and R-scale level, GOES X-ray flux, the daily F10.7 cm radio flux, 3-day flare-class probabilities, active solar regions with same-day flare counts and next-day probabilities, and solar radiation storm level |
noaa_spaceweather_get_alerts |
Active SWPC alerts, watches, and warnings — structured records with product type, severity, issue time, validity window, and full message text |
Capability reference
noaa_spaceweather_get_conditions tool
include_discussion (bool, default false) is the only input; one call composes the noaa-scales.json and noaa-planetary-k-index.json feeds, plus the discussion.txt product when the discussion is requested
today holds the latest observed R/S/G levels. yesterday holds the rolling 24-hour observed maxima with SWPC’s date stamp, or null when the period is absent or SWPC issued no level in it. Each maximum, like a latest level or forecast G, can be unissued, with null scale, text, and label; a forecast R/S level that is not a whole number 0–5 reads as unissued too. Forecast R/S can carry probabilities. The three-day forecast starts on the current UTC date. The latest observed Kp bin with a value comes with its G-scale equivalent, aurora-latitude guidance, and currentKpTimeTag (the bin's 3-hour start); all four are null when no bin has a value, and kpUnavailableBins lists the observed bins without one.
- With
include_discussion, the forecaster-written Forecast Discussion split into its topic sections (Solar Activity, Energetic Particle, Solar Wind, Geospace), each with its 24-hour summary and 3-day forecast text
noaa_spaceweather_get_kp_index tool
window_days (1–7, default 1) bounds the observed series, and observedCount counts the in-window bins with a value; the forecast is always SWPC's full 3-day series of forward-looking estimated/predicted rows
- Each record carries Kp, its G level and label, and aurora-latitude guidance. A bin without a value (absent, null, NaN, or fill) is not a record: its time tag goes to
kpUnavailableBins (scoped to window_days), or to forecastUnavailableBins for a forward forecast row. The headline currentKp comes from the latest in-window bin with a value, and its fields are null together when none has one. G levels follow SWPC's minus-third band floors — G1 starts at Kp 4.67 (5−), and only Kp 9 is G5
noaa_spaceweather_get_aurora_forecast tool
latitude/longitude (WGS84) are optional but required together — one alone fails invalid_coordinates. Without them the call returns global metadata only: grid point count, global peak probability, and peak region
- With coordinates,
localLookup carries the nearest 1°-grid probability, the geomagnetic latitude, the minimum Kp and G level needed there, the sun's elevation and darkness state (day, civil_twilight, nautical_twilight, dark) at the forecast time, the strongest reading within 1000 km poleward (horizonMaxPercent, horizonMaxLatitude, horizonDistanceKm), and a go/no-go verdict — not visible in daylight, whatever the model probability
- The OVATION model updates every ~5 minutes and forecasts ~30–90 minutes ahead (the solar wind's travel time from L1 to Earth)
noaa_spaceweather_get_solar_wind tool
window_hours (1–168, default 3) slices a feed that carries roughly the last 24 hours at ~1-minute cadence. resolution sets series detail: reduced (default) caps each series at 200 records, keeping each bucket's fastest speed and most southward Bz; full returns every record (~1,400 per series over 24 hours); summary returns empty series and every headline field, about 2 KB
- Returns oldest-first plasma (speed, density, temperature) and magnetic-field (Bx/By/Bz/Bt GSM) series, each record naming its spacecraft, plus headline fields computed over the full window at every resolution:
bzStatus, bzMinInWindow, speedMaxInWindow, densityMaxInWindow, btMaxInWindow, and bzSouthMinutesInWindow
latestFeedPlasmaTime/latestFeedMagTime/feedStalenessHours distinguish an empty window from a stale feed
noaa_spaceweather_get_solar_activity tool
flare_hours (1–168, default 24) bounds the flare events returned by onset over the feed's rolling 7 days; include_regions (default true) toggles per-region detail to control response size; include_source_region (default false) tags each flare event with the NOAA region SWPC's edited events credit it to, at the cost of one more ~550 KB feed read
- Returns discrete flare events with onset, peak, and decay classes, peak flux, and the NOAA R level (0–5) it implies (decay is null while a flare is in progress; peak fields are null when SWPC recorded no peak); GOES X-ray flux with its flare class (
flareClassFull); the daily F10.7 cm radio flux with its observation time; 3-day C/M/X flare and proton-event probabilities (cClassProbability, mClassProbability, xClassProbability, protonEventProbability — the deprecated *1Day names still carry them in structuredContent); and the S level from ≥10 MeV proton flux. The S level and its text are null, never S0, when no ≥10 MeV reading has a finite flux, and a probability SWPC left unpublished is null under both names and renders "unavailable"
- With
include_source_region, each flare event also carries sourceRegion (the NOAA region number) and sourceRegionStatus: assigned, unassigned (SWPC's edited record names no region yet; SWPC may credit one later, most often for recent flares), or not_yet_edited (the edited feed lags the flare feed by hours). If the edited-events feed fails, the fields are omitted and a notice says why
- With
include_regions, each active region's sunspot area, the C/M/X flare counts SWPC attributed to it on its observation day, and its next-day flare probabilities, each null when SWPC left it unpublished
noaa_spaceweather_get_alerts tool
active_only (default true) returns in-force Warnings, Watches, and Alerts. It drops cancellations and their targets, superseded Watches, older links in explicit Alert continuation and Warning extension chains, Summaries, and expired products. max_age_hours (1–720, default 48) bounds the lookback. An active product with a future validity end can survive that cutoff. Set active_only: false for the complete history within the window.
- Each record carries product type, NOAA scale and level (0 means "no scale stated," not zero severity), serial number, parsed validity window,
cancelled, and full message text. Under active_only the response also counts what it excluded, by reason, so an empty result reads as "quiet" or "everything was filtered"
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
SWPC-specific:
- All SWPC feeds are public and keyless — no API keys required
- Single
SpaceWeatherService wraps every NOAA SWPC feed — the JSON products and the plain-text forecast discussion — behind one fetchWithTimeout + withRetry funnel, so both paths classify an upstream failure the same way — and every retry ladder runs inside one 45-second budget, so a hung upstream still returns the classified error before a 60-second client timeout
- Heterogeneous feed normalization: interleaved multi-spacecraft records (solar wind), keyed objects (storm scales), coordinate triples (OVATION), section-delimited text (forecast discussion)
- NOAA scale interpretation: raw Kp 6 → "G2 moderate storm — aurora possible to ~55° geomagnetic latitude"
- Feed freshness surfaced per-response: solar wind updates ~1 min, aurora ~5 min, Kp 3-hour intervals
Agent-friendly output:
- Observed timestamps on every response so agents can reason about data freshness
- Plain-language summaries and verdicts alongside raw values — agents can display or reason without re-interpreting indices
- Bz component surfaced as a first-class field in solar wind output (southward Bz = primary storm driver)
- Typed error contracts with recovery hints, split on whether retrying can help: a transient feed failure is
feed_unavailable → "Retry in 30–60 s"; a feed path SWPC no longer serves, or a redirect the client cannot follow, is feed_moved → "Retrying will not help", raised on the first attempt
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http noaa-spaceweather-mcp-server https://noaa-spaceweather.caseyjhand.com/mcp
Or run it locally:
claude mcp add noaa-spaceweather-mcp-server -- npx -y @cyanheads/noaa-spaceweather-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"noaa-spaceweather-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/noaa-spaceweather-mcp-server"]
}
}
}
No API key is needed — every SWPC feed is public. For Docker or a source build, see Running the server.
Configuration