noaa-tidesandcurrents-mcp
This server provides tools for interacting with the NOAA Tides and Currents API using the FastMCP framework, allowing you to:
Retrieve real-time and historical water level data
Get tide predictions (high/low or interval-based)
Access real-time and historical currents data
Obtain current predictions
Retrieve meteorological data (wind, air/water temperature, etc.)
Get station lists and detailed station metadata
Access moon phase information (past, present, future)
Retrieve sun rise/set times, positions, and event data
Get valid parameter values for NOAA API requests
The server supports retrieving data from NOAA API in XML format, as specified in various tool parameters
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@noaa-tidesandcurrents-mcpwhat are the tide predictions for Seattle tomorrow?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌊 NOAA Tides & Currents MCP Server
A Model Context Protocol server for NOAA CO-OPS Tides and Currents data
Built by Cardin Labs · Hosted at Perigee
Water levels · tide predictions · currents · marine weather · station metadata · tidal datums · harmonic constituents · sea level trends & projections · high tide flooding · sun & moon calculations
Quick Start
# Run immediately with npx
npx @ryancardin/noaa-tides-currents-mcp-server
# Or the short alias
npx noaa-mcpClaude Desktop / Claude Code configuration
{
"mcpServers": {
"noaa": {
"command": "npx",
"args": ["-y", "@ryancardin/noaa-tides-currents-mcp-server"]
}
}
}Claude Code one-liner:
claude mcp add noaa -- npx -y @ryancardin/noaa-tides-currents-mcp-serverHTTP mode (optional)
npx noaa-mcp --http --port 3000 # stateless streamable HTTP at http://localhost:3000/mcpNo API key is required — NOAA's CO-OPS APIs are open.
Related MCP server: LocalTides MCP Server
Tools (25)
Observations & Predictions (Data API)
Tool | What it does |
| Observed water levels: 1-minute, 6-minute, or hourly series, preliminary/verified quality flags decoded |
| high_low (HH/H/L/LL daily extremes), daily_mean (Great Lakes), daily_max_min, monthly_mean datum tables |
| Harmonic tide predictions — |
| Observed current speed/direction by depth bin (ADCP), optional beam diagnostics |
| Predicted currents — |
| Wind, air/water temperature, pressure, air gap (bridge clearance), conductivity, visibility, humidity, salinity |
Station Discovery & Metadata (Metadata API)
Tool | What it does |
| Search the station directory by capability type, name substring, state — paginated |
| Nearest stations to any lat/lon (great-circle, cached directory), filterable by type |
| Full station record with expandable sensors, flood levels, benchmarks, bins, deployments... |
| Tidal datum elevations (MLLW, MSL, MHHW, NAVD88...), HAT/LAT, historic extremes, current or superseded epoch |
| The M2/S2/K1/... constituents behind a station's predictions (water level or current ellipse form) |
| Subordinate-station time/height offsets from their reference stations (tide or current) |
Climate & Derived Products (DPAPI)
Tool | What it does |
| Long-term relative sea level trend with error bars and observation period |
| 2022 Interagency SLR scenario projections per decade through 2150 |
| Annual exceedance probability levels (e.g. the "100-year" water level) |
| Highest water levels ever recorded, with causal events (hurricanes, nor'easters) |
| HTF flood-day counts (daily/monthly/seasonal/annual), outlooks, decadal projections, likelihoods |
Astronomy (computed locally)
Tool | What it does |
| Phase, illumination, age, distance for a date or range (spring/neap tide context) |
| Next new/full/quarter moon date(s) |
| Sunrise/sunset, twilights, golden hour, day length for any location/date |
| Azimuth/altitude (+ approximate declination/RA) |
| Next occurrence(s) of any sun event |
Wind & Marine Forecasts (NWS Weather API)
Tool | What it does |
| Hourly numeric wind forecast (speed/gust/direction, wave height where gridded) for any US lat/lon, up to ~7 days |
| Official Coastal Waters Forecast narrative for the marine zone covering a lat/lon, incl. Small Craft Advisories |
Reference
Tool | What it does |
| Curated NOAA reference: products, datums, units, time zones, intervals, station types, data limits, quality flags, date formats, marine forecasts |
Every tool supports response_format: "markdown" (readable tables with units spelled out — the default) or "json" (complete structured payload), and attaches structured content for MCP clients that consume it.
Resources
noaa://guide/getting-started— workflow recipes and common pitfallsnoaa://reference/{topic}— the ten reference topics above as pinnable resources
Prompts
tide_report— tide report for a place/station and dateboating_conditions— pre-departure briefing: tides, currents, wind, daylightstation_flood_risk— flood risk profile: HTF history, extremes, trends, projectionsstation_overview— everything a station offers
The Nuances (handled for you)
These are the things that make NOAA's API tricky — this server encodes them:
Datums matter. Heights are meaningless without a vertical reference. MLLW (chart datum) is the default; stations differ in which datums they support (Great Lakes use IGLD/LWD and have no tide predictions).
noaa_get_station_datumsgives the conversion table.Units are asymmetric.
metricmeans m/s for wind but cm/s for currents; air pressure is millibars and salinity PSU in both systems. Every response labels its units.Per-product request-span limits (4 days for 1-minute data, 31 days for 6-minute, 1 year hourly, 10 years for hilo predictions...) are validated client-side with actionable messages before hitting NOAA.
Two station ID schemes. Water-level/met stations are 7-digit numeric (
9414290); current stations are alphanumeric (cb0102).Reference vs subordinate stations. Subordinate (S) prediction stations only support
hilopredictions, derived by offsets from a reference (R) station.daily_meanrequires local standard time and only exists for Great Lakes stations — enforced automatically.Quality flags decoded. Preliminary vs verified data, sigma, flag alphabets (which differ between preliminary and verified!), and HH/H/L/LL tide types are explained inline.
Predictions are astronomical — storm surge is not included; compare with observed water levels.
Station directory is cached (6 h) so nearest-station searches don't refetch thousands of records.
Usage Examples
"When is high tide in Boston tomorrow?"
noaa_find_nearest_stations(typetidepredictions) →8443970 BOSTONnoaa_get_tide_predictions(intervalhilo) → high/low times & heights above MLLW
"How strong will the current be in the Cape Cod Canal this afternoon?"
noaa_find_nearest_stations(typecurrentpredictions)noaa_get_current_predictions(intervalmax_slack) → max flood/ebb (knots) and slack times
"How often does Providence flood now vs 20 years ago, and what's projected for 2050?"
noaa_get_high_tide_flooding(reportannual, range 25)noaa_get_high_tide_flooding(reportprojections, decade 2050)noaa_get_sea_level_trends+noaa_get_sea_level_rise_projections
Development
npm install
npm run build # tsc → dist/
npm test # vitest unit tests (validation, formatting, astronomy)
npm run test:live # end-to-end smoke test against the live NOAA API
npm run inspector # MCP Inspector against dist/index.js
npm run dev # tsx src/index.tsArchitecture
src/
├── index.ts # entry point: stdio (default) or --http streamable HTTP
├── constants.ts # API base URLs, timeouts, cache TTLs, response limits
├── client/ # shared HTTP layer (retry/backoff, error mapping) + TTL cache
├── validation/ # date normalization + per-product span limit enforcement
├── format/ # unit labeling, flag legends, markdown/json response shaping
├── schemas/ # shared Zod field schemas with nuance-carrying descriptions
├── services/ # Data API, Metadata API, DPAPI, moon & sun services
├── tools/ # 23 tool registrations grouped by domain
├── resources/ # noaa:// reference resources
├── prompts/ # workflow prompt templates
└── reference/ # curated NOAA reference contentData sources:
Data API —
api.tidesandcurrents.noaa.gov/api/prod/datagetterMetadata API —
api.tidesandcurrents.noaa.gov/mdapi/prod/webapiDerived Product API —
api.tidesandcurrents.noaa.gov/dpapi/prod/webapiAstronomy — suncalc, computed locally
License
MIT © Cardin LLC (Cardin Labs)
NOAA data is provided by the NOAA Center for Operational Oceanographic Products and Services (CO-OPS). This project is not affiliated with or endorsed by NOAA.
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RyanCardin15/Perigee-Tides'
If you have feedback or need assistance with the MCP directory API, please join our Discord server