Skip to main content

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

Tool Description Key Parameters
coops_list_stations List CO-OPS stations by type/state station_type, state, limit
coops_get_station Get detailed station metadata station_id, expand (sensors, datums, etc.)
coops_find_nearest_stations Find stations near coordinates latitude, longitude, radius_km
coops_get_water_levels Observed water level data station_id, begin_date, end_date, datum
coops_get_tide_predictions Tide predictions station_id, begin_date, end_date, interval
coops_get_meteorological Met observations (wind, temp, etc.) station_id, product, date
coops_get_currents Current observations/predictions station_id, product, bin_num
coops_get_extreme_water_levels Record water levels station_id, datum
coops_get_flood_stats Flood day counts & HTF outlook station_id, year
coops_get_sea_level_trends Sea level trend data station_id
coops_get_peak_storm_events Peak storm surge events station_id, year
coops_get_datums Tidal datum values station_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:

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

Metadata

Release files for coops-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coops-mcp 0.1.0
File Size Uploaded Provenance Actions
coops_mcp-0.1.0.tar.gz 17.7 kB Without provenance Details for coops_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coops-mcp 0.1.0
File Interpreter ABI Platform Actions
coops_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for coops_mcp-0.1.0-py3-none-any.whl

Total release size: 37.4 kB

Release files / coops_mcp-0.1.0.tar.gz

Download URL coops_mcp-0.1.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
60ef8910661d57efcd8dd60dea239e14a914384a089967f37c6c554ac6792d57
BLAKE2b-256 checksum
How to use checksums
6e4915c89d8e57b143a5eae8af39abe8afd01f0a06a40adf1d927b5adca7075b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / coops_mcp-0.1.0-py3-none-any.whl

Download URL coops_mcp-0.1.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6b3ae0f492577e1ead1104df1dc978e37f83c6f15ac301cb7f616303a6ad14d
BLAKE2b-256 checksum
How to use checksums
384ef85ce546ff2d3d81a90fb3f8525642fdc860bcc065c68d6944beb18c35ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for coops-mcp 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page