STOFS MCP Server
MCP server providing AI assistants with access to NOAA's Storm Tide Operational Forecast System (STOFS) — operational storm surge and water level forecasts, and validation against CO-OPS observations.
Status: Ready
Tools
| Tool | Description |
|---|---|
stofs_list_cycles |
List available STOFS forecast cycles on AWS S3 |
stofs_get_station_forecast |
Get water level forecast time series at a CO-OPS station |
stofs_get_point_forecast |
Get forecast at arbitrary lat/lon (nearest STOFS station) |
stofs_get_gridded_forecast |
Forecast at any lat/lon via OPeNDAP (regular grid, no download) |
stofs_compare_with_observations |
Compare STOFS forecast vs CO-OPS observations (bias, RMSE, correlation); optional lead-time window (lead_start_hours, lead_end_hours) for same-valid-time comparisons |
stofs_get_max_water_level |
Get top stations by peak predicted water level in a cycle |
stofs_get_system_info |
STOFS model specifications, datums, cycle schedule |
stofs_list_stations |
List STOFS output stations, filter by state/region/proximity |
STOFS Models
STOFS-2D-Global (ADCIRC)
- Domain: Global unstructured mesh (~12.8M nodes)
- Cycles: 4x daily — 00, 06, 12, 18 UTC
- Forecast: 180 hours (7.5 days)
- Stations: ~385 output points at 6-minute resolution
- Datum: LMSL (Local Mean Sea Level)
- Data: s3://noaa-gestofs-pds
STOFS-3D-Atlantic (SCHISM)
- Domain: US East Coast + Gulf of Mexico + Puerto Rico (~2.9M nodes)
- Cycles: 1x daily — 12 UTC
- Forecast: 96 hours (4 days)
- Stations: 108 output points (v2.1); 166 from the v3.1 upgrade, at 6-minute resolution
- Datum: station NetCDF NAVD88 before the v3.1 upgrade (2026-08-17 12z cycle), LMSL from it; gridded output xGEOID20b
- Data: s3://noaa-nos-stofs3d-pds
Vertical Datums
⚠️ Datum differences matter when comparing models and observations:
- STOFS-2D station files: LMSL (Local Mean Sea Level). The files label
zetasea_surface_height_above_geoid, which is ADCIRC's generic default, not the datum.- STOFS-3D station files: NAVD88 through the 2026-08-16 cycle (v2.1); LMSL from the 2026-08-17 12z cycle (v3.1, NWS SCN 26-51). Gridded output stays on xGEOID20b.
- The station tools read the datum from each file's
zetametadata and report it with its provenance (datum_provenance) and anydatum_warning. STOFS-2D-Global files, whose label is always ADCIRC's generic "above geoid", fall back to the documented LMSL only for documented versions (STOFS_2D_GLOBAL V2.1, V3.1; ESTOFS GLOBAL V2.1 with a warning). An unrecognized explicit reference (e.g. NGVD29, NAVD2022), contradictory attributes, or an undocumented 2D version (e.g. V4.0) make the datumundetermined, and no comparison is made.stofs_compare_with_observationsrequests CO-OPSdatum=MSLfor LMSL output anddatum=NAVD(CO-OPS's identifier for NAVD88) for NAVD88 output. No vertical transformation is applied. LMSL and a station's tidal MSL share a label but not necessarily a realization or epoch, so a mean offset alone does not attribute its cause.
Data Validity
Values that are masked, equal to the declared fill, non-finite, no-data sentinels
(|value| ≥ 10⁴ m, including codes shifted by a datum or bias constant such as
STOFS-3D's 1e7 + c and STOFS-2D's -99999 + 0.4) or physically implausible
(|value| ≥ 50 m) are excluded by every tool and counted by reason
(excluded_model_records, excluded_values). stofs_get_max_water_level names
stations left without a valid value (excluded_stations) instead of ranking them.
See CHANGELOG.md for the 0.3.0 changes.
Quick Start
git clone https://github.com/oceanmodeling/ocean-mcp.git
cd ocean-mcp/servers/stofs-mcp
uv sync
Configure your MCP client
{
"mcpServers": {
"stofs": {
"command": "uv",
"args": ["run", "--directory", "/path/to/ocean-mcp/servers/stofs-mcp", "python", "-m", "stofs_mcp"]
}
}
}
Example Queries
- "What is the latest STOFS-2D-Global forecast cycle?"
- "Get the water level forecast for The Battery, NY (station 8518750)"
- "Compare STOFS forecast vs observations at Boston for the past 24 hours"
- "Find STOFS stations within 50 km of New Orleans"
- "What are the top 10 stations with highest predicted water levels?"
- "Get the surge-only forecast at Charleston, SC"
- "Show me the STOFS forecast near lat 29.95, lon -90.07"
- "Get the STOFS forecast at lat 36.85, lon -75.98 (Virginia Beach) using the gridded product"
Running Tests
# Unit tests (fast, no network)
uv run pytest tests/test_utils.py -v
# Live integration tests (requires internet, downloads ~5–10 MB)
uv run pytest tests/test_live.py -v -s
Data Sources
- AWS S3 (primary):
noaa-gestofs-pds(2D-Global),noaa-nos-stofs3d-pds(3D-Atlantic) - NOMADS OPeNDAP:
nomads.ncep.noaa.gov/dods/stofs_2d_glo/(remote slice of regular-grid data, ~2-day window) - CO-OPS API:
api.tidesandcurrents.noaa.gov(for observation validation)
License
MIT
Metadata
Release files for stofs-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stofs_mcp-0.3.0.tar.gz | 110.6 kB | With provenance | Details for stofs_mcp-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stofs_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for stofs_mcp-0.3.0-py3-none-any.whl |
Total release size: 167.0 kB
Release files / stofs_mcp-0.3.0.tar.gz
| Download URL | stofs_mcp-0.3.0.tar.gz |
|---|---|
| Size | 110.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f6e0146af6fa06c6b59e1d6d1b15ff9660804b69e20a14b2deda96e1f18e691
|
|
BLAKE2b-256 checksum How to use checksums |
9993eb1b75d916a856179459a438922fa10452b1a16232e6438b4555684b76b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / stofs_mcp-0.3.0-py3-none-any.whl
| Download URL | stofs_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 56.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d47c1cb8be3410b0f891d20d8a73062130590699ad66d1b6073f97b4a714f605
|
|
BLAKE2b-256 checksum How to use checksums |
e1223f9e634fffd8298f4a2f9b1609687778403d556b3a90f0b659199b73af22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for stofs-mcp 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for stofs_mcp-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.