🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ofs-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ofs-mcp

MCP server for NOAA Operational Forecast System (OFS) regional ocean model access

pipPyPI
Version
0.1.0
Weekly downloads
175
-27.39%
Maintainers
1
Weekly downloads
 

OFS MCP Server

MCP server for NOAA's Operational Forecast System (OFS) — regional hydrodynamic ocean models covering US coastal waters.

Status: Ready

Overview

OFS comprises ~15 regional ocean models providing 48–72 hour forecasts of water levels, temperature, and salinity for US coastal bays, estuaries, and offshore waters. This server provides AI assistants with access to model metadata, cycle availability, and forecast extraction at geographic points.

Supported Models

ModelNameGridRegion
cbofsChesapeake Bay OFSROMSChesapeake Bay, MD/VA
dbofsDelaware Bay OFSROMSDelaware Bay, DE/NJ
gomofsGulf of Maine OFSROMSGulf of Maine, ME/MA
ngofs2N. Gulf of Mexico OFS v2FVCOMGulf Coast, LA/TX
nyofsNew York/NJ Harbor OFSFVCOMNY Harbor, NY/NJ
sfbofsSan Francisco Bay OFSFVCOMSan Francisco Bay, CA
tbofsTampa Bay OFSFVCOMTampa Bay, FL
wcofsWest Coast OFSROMSUS West Coast, CA–WA
ciofsCook Inlet OFSFVCOMCook Inlet, AK

All models run 4× daily (2× for WCOFS) at 00, 06, 12, 18 UTC with 6-minute output resolution.

Tools

ToolDescription
ofs_list_modelsList all supported models with metadata
ofs_get_model_infoDetailed specs for a specific model
ofs_list_cyclesCheck S3 for available forecast cycles
ofs_find_models_for_locationWhich models cover a lat/lon point
ofs_get_forecast_at_pointForecast time series at lat/lon
ofs_compare_with_coopsCompare model vs CO-OPS observations

Data Access

Model data is accessed via two strategies:

  • NOAA THREDDS OPeNDAP (https://opendap.co-ops.nos.noaa.gov/thredds/): lazy remote access to BEST aggregations (most efficient, only loads requested variables/points)
  • AWS S3 (noaa-nos-ofs-pds): direct download for single forecast timesteps

Quick Start

cd servers/ofs-mcp
uv sync
uv run ofs-mcp

MCP Client Config

{
  "mcpServers": {
    "ofs": {
      "command": "uv",
      "args": ["--directory", "/path/to/ocean-mcp/servers/ofs-mcp", "run", "ofs-mcp"]
    }
  }
}

Example Queries

  • "What OFS models cover the Chesapeake Bay?"
  • "List available CBOFS forecast cycles for today"
  • "Get the water level forecast at lat 38.98, lon -76.48 from CBOFS"
  • "Compare CBOFS water level with CO-OPS observations at station 8571892"
  • "What OFS models are available for San Francisco Bay?"
  • "Get temperature forecast at lat 37.8, lon -122.4 from SFBOFS"

Variables

All models provide surface-layer output:

VariableUnitsDescription
water_levelmSurface elevation relative to model datum
temperature°CWater temperature at surface sigma layer
salinityPSUSalinity at surface sigma layer

Datum Notes

Most OFS models use NAVD88 as their vertical datum. CO-OPS observations use either NAVD or MSL depending on the station. Small systematic offsets (1–5 cm) are expected when comparing model output to observations due to datum differences and distance between CO-OPS stations and model grid points.

Data Sources

  • NOAA OFS Overview
  • AWS S3: noaa-nos-ofs-pds
  • NOAA THREDDS
  • CO-OPS API

License

MIT

Keywords

fvcom

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts