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

coops-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

coops-mcp

MCP server providing access to NOAA CO-OPS tides, water levels, currents, and meteorological data

pipPyPI
Version
0.1.0
Weekly downloads
284
129.03%
Maintainers
1
Weekly downloads
 

CO-OPS MCP Server

MCP server providing AI assistants with access to NOAA CO-OPS water levels, tides, currents, and coastal oceanographic data.

No API key required — all CO-OPS APIs are free and public.

Features

  • Station Discovery — List, search, and find nearest CO-OPS stations by type, state, or coordinates
  • Water Levels — Real-time and historical observed water levels with multiple datum references
  • Tide Predictions — Harmonic tide predictions (6-min, hourly, or high/low)
  • Meteorological Data — Wind, air/water temperature, pressure, humidity, visibility, and more
  • Currents — Current observations and predictions from PORTS stations
  • Derived Products — Extreme water levels, flood statistics, sea level trends, storm events, tidal datums

Quick Start

Install with uv

git clone https://github.com/mansurjisan/ocean-mcp.git
cd ocean-mcp/servers/coops-mcp
uv sync

Configure your MCP client

Add to your MCP settings:

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

Or if installed as a package:

{
  "mcpServers": {
    "coops": {
      "command": "uvx",
      "args": ["coops-mcp"]
    }
  }
}

Available Tools

ToolDescriptionKey Parameters
coops_list_stationsList CO-OPS stations by type/statestation_type, state, limit
coops_get_stationGet detailed station metadatastation_id, expand (sensors, datums, etc.)
coops_find_nearest_stationsFind stations near coordinateslatitude, longitude, radius_km
coops_get_water_levelsObserved water level datastation_id, begin_date, end_date, datum
coops_get_tide_predictionsTide predictionsstation_id, begin_date, end_date, interval
coops_get_meteorologicalMet observations (wind, temp, etc.)station_id, product, date
coops_get_currentsCurrent observations/predictionsstation_id, product, bin_num
coops_get_extreme_water_levelsRecord water levelsstation_id, datum
coops_get_flood_statsFlood day counts & HTF outlookstation_id, year
coops_get_sea_level_trendsSea level trend datastation_id
coops_get_peak_storm_eventsPeak storm surge eventsstation_id, year
coops_get_datumsTidal datum valuesstation_id, units

Usage Examples

Ask naturally — the right tool will be selected automatically:

  • "Get current water levels at The Battery, NY"coops_get_water_levels(station_id="8518750", date="latest")
  • "Find tide stations near Miami Beach"coops_find_nearest_stations(latitude=25.77, longitude=-80.13, station_type="waterlevels")
  • "What were the highest water levels ever recorded at San Francisco?"coops_get_extreme_water_levels(station_id="9414290")
  • "Show me wind data for Key West today"coops_get_meteorological(station_id="8724580", product="wind", date="today")
  • "What are the flood statistics for The Battery?"coops_get_flood_stats(station_id="8518750")
  • "Get tide predictions for Charleston, SC for next week"coops_get_tide_predictions(station_id="8665530", begin_date="...", end_date="...")

API Reference

This server wraps three NOAA CO-OPS APIs:

  • Data API — Observations and predictions
  • Metadata API — Station information
  • Derived Product API — Historical/statistical products

Development

# Install dev dependencies
uv sync

# Run unit tests
uv run pytest tests/test_models.py tests/test_utils.py tests/test_client.py -v

# Run live integration tests (makes real API calls)
uv run pytest tests/test_live.py -v -s

# Start the server
uv run python -m coops_mcp

License

MIT

Keywords

coastal

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