Noaa Marine Mcp Server
БесплатноПоддерживаетсяFind NOAA tide stations and NDBC buoys, fetch tide predictions, water levels, tidal currents, and live buoy conditions via MCP. STDIO or Streamable HTTP.
Описание
Find NOAA tide stations and NDBC buoys, fetch tide predictions, water levels, tidal currents, and live buoy conditions via MCP. STDIO or Streamable HTTP.
README
@cyanheads/noaa-marine-mcp-server
Find NOAA tide stations and NDBC buoys, fetch tide predictions, water levels, tidal currents, and latest buoy observations via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://noaa-marine.caseyjhand.com/mcp
Overview
US tides, currents, water levels, and buoy observations from NOAA CO-OPS and NDBC. Find coastal stations and buoys, then fetch tide and tidal-current predictions, observed and monthly-mean water levels, and the latest buoy conditions, current profiles, and water-column readings.
Tools
| Tool | Description |
|---|---|
noaa_marine_find_stations |
Find CO-OPS tide, water-level, and current stations and NDBC buoys by location, name, ID, state, or capability |
noaa_marine_get_tide_predictions |
High/low tide predictions or a 6-minute curve for a CO-OPS tide station |
noaa_marine_get_water_level |
Observed water level at four cadences, with extrema and storm-surge residuals where available |
noaa_marine_get_monthly_means |
Verified monthly tidal datums and extremes for a CO-OPS water-level station |
noaa_marine_get_currents |
CO-OPS tidal-current predictions: max flood, max ebb, and slack events, or a 6-minute harmonic curve |
noaa_marine_get_conditions |
Latest NDBC buoy conditions: waves, wind, sea-surface and air temperature, pressure |
noaa_marine_get_current_profile |
Observed ocean-current depth profile from an NDBC ADCP buoy |
noaa_marine_get_ocean_observations |
Sub-surface water-column readings (temperature, salinity, oxygen, and more) from an NDBC station |
Resources
| Resource | Description |
|---|---|
noaa-marine://station/{station_id} |
Metadata for a CO-OPS or NDBC station: name, coordinates, source, capabilities, prediction class, platform |
Everything in the resource except NDBC owner is also on noaa_marine_find_stations rows, for clients that only call tools.
Agent skill
The published noaa-marine-guide skill carries the gates and conventions the tool descriptions don't: which station serves which tool, why a place-name search misses, the clock and direction differences between CO-OPS and NDBC, and what the server can't answer (forecasts, warnings, past buoy readings). MCP clients read it as skill://noaa-marine-guide/SKILL.md through the Skills extension. Plugin installs include it too.
Capability reference
noaa_marine_find_stations tool
- Filters combine:
latitude+longitudewithradius_km(default 100, max 1000),query(name or ID substring on both sources; an exact ID leads unless sorting by distance),state(CO-OPS only),source(coops/ndbc/all), andtypes(tide,current,water_level,met,current_profile,water_quality, or the platform classbuoy);limitdefaults to 20, and a larger value is clamped to 200 with a notice (rejected whenNOAA_CLAMP_LIMITS=false);offsetpages past one page - Each station carries
source,capabilities,type, and for NDBC aplatform; CO-OPS rows addstate(state_derived: truewhen borrowed from the nearest state-bearing station within 25 km), a tideprediction_class(reference, orsubordinatewithreference_id), and currentbins[]giving each bin's number, depth in feet, and class total_foundcounts every match across pages;truncatedandnext_offsetappear while matches remain past the page; zero matches is a success withapplied_search, and the notice distinguishes a name/ID miss in the catalogs read from matches excluded by other filters.sourcesflags partial catalog reads. Total catalog failure issources_unavailable. Supplying justlatitudeorlongitudeisincomplete_coordinates
noaa_marine_get_tide_predictions tool
intervalhilo(default) or6min, up to 365 days; ten datums (MLLW, MHHW, MHW, MTL, MSL, MLW, DTL, NAVD, STND, CRD),time_zone(lst_ldt,gmt,lst), andunits(englishfeet,metricmeters)6minworks at reference stations only: a subordinate station fails assubordinate_no_6minnaming its reference station, and a Great Lakes station isno_predictions, pointing tonoaa_marine_get_water_level- Other failures:
invalid_date_range,date_range_exceeded,station_not_found,datum_unavailable(its hint names a datum to retry with, never the one just rejected), andupstream_throttled, a retryable CO-OPS HTTP 403 that clears in a couple of minutes
noaa_marine_get_water_level tool
interval6min(default, 31 days),hourlyorhigh_low(365 days), ordaily_mean(3,655 days, Great Lakes only, always in LST; a coastal station isgreat_lakes_only); eleven datums (MLLW, MHHW, MHW, MTL, MSL, MLW, NAVD, STND, IGLD, LWD, CRD)- Observations carry
quality(p/v,6minonly),sigma(6minandhourly), andtype(H/HH/L/LL,high_lowonly); slots with no reading are dropped and counted ingaps_dropped - Paired predictions at the matching cadence (none on
daily_mean), withpredictions_status(empty/unavailable) explaining an empty series;observed_extremesreportsmaxandminwith times across the whole matched range, including daily averages ondaily_mean. On6minandhourly,residual_summaryreportsmax_surgeandmax_drawdownacross all matched observed/predicted pairs, withmax_surge_atandmax_drawdown_atwhen the respective sign occurs. Failures:invalid_date_range,date_range_exceeded,station_not_found,datum_unavailable,no_gauge,future_window(begin_dateafter the station's current date in the requestedtime_zone),no_data,verified_data_lag(a coarser-cadence window ending on or after the first day of the prior month, which CO-OPS may not have verified yet), andupstream_throttled
noaa_marine_get_monthly_means tool
- Up to 73,000 days per request; eleven datums (MLLW, MHHW, MHW, MTL, MSL, MLW, NAVD, STND, IGLD, LWD, CRD) in
englishfeet ormetricmeters; returned months fall within the inclusive local calendar months ofbegin_dateandend_date - One row per month:
highest,lowest, the tidal datums (mhhw,mhw,msl,mtl,mlw,mllw,dtl), ranges (gt,mn,dhq,dlq), lunitidal intervals in hours (hwi,lwi), and theinferredcode verbatim; values CO-OPS leaves blank are omitted, so a Great Lakes station carries onlyhighest,msl, andlowest - Failures:
invalid_date_range,date_range_exceeded,station_not_found,datum_unavailable,no_gauge,upstream_throttled, and for an empty windowverified_data_lagwhen it ends on or after the first day of the prior month,no_dataotherwise
noaa_marine_get_currents tool
intervalMAX_SLACK(default, up to 365 days) or6min(up to 31 days);binpicks a depth bin frombins[](CO-OPS chooses the default when omitted);unitsenglish(knots, feet) ormetric(cm/s, meters)- For
6min, harmonic bins return the curve inpredictions[]. When CO-OPS answers with max flood, max ebb, and slack events, they appear inevents[]withpredictions: []and a notice. Every response echoesbinanddepth; rows carry aflood/ebb/slacktype, a non-negativespeed, and asdirectionthe station's mean bearing for that flow - A bin the station lacks is
bin_unavailablelisting the ones it has; a station CO-OPS won't predict as events returns an empty list with its statement innotice, and one with no published predictions ispredictions_unavailable; alsoinvalid_date_range,date_range_exceeded,station_not_found,no_predictions, andupstream_throttled
noaa_marine_get_conditions tool
- One NDBC
station_id; returns wind, waves, sea-surface and air temperature, dew point, and pressure in SI units, excepttide_ftandvisibility_nmi - A 7-digit CO-OPS station ID also works when NDBC relays that gauge's met sensors under a station of its own:
station_idis then the NDBC station read, the requested ID comes back ascoops_station_id, andnoticenames both - Every sensor field is nullable; each column block comes from the newest row within 90 minutes that carried it, waves reporting their own
waves_observed_atand any other older block named innotice. Failures:buoy_not_found(no observation file and no relay, a relay with no file, or several relays the met flag doesn't settle),no_sensor_data
noaa_marine_get_current_profile tool
- One NDBC
station_id, found withtypes: ["current_profile"];bins[]runs shallowest first withdepth_m,direction_deg(true, flow-toward), andspeed_cm_s, the last two null when unreported - Observed ADCP measurements, not the CO-OPS predictions
noaa_marine_get_currentsreturns; failures areprofile_not_found(no ADCP file) andno_current_data
noaa_marine_get_ocean_observations tool
- One NDBC
station_id, found with the catalog filtertypes: ["water_quality"];readings[]holds one row per depth with temperature, conductivity, salinity, dissolved oxygen (% and ppm), chlorophyll, turbidity, pH, and redox potential - Most stations report only temperature and salinity, and unreported values are
null; failures areobservations_not_found(no.oceanfile) andno_ocean_data
noaa-marine://station/{station_id} resource
station_idfromnoaa_marine_find_stations; returns that tool's station record asapplication/json, plusownerfor NDBC stations, with a 6-hourcacheHintstation_not_foundonly when both catalogs were read;source_unavailablewhen one could not be
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
CO-OPS / NDBC-specific:
- CO-OPS data and metadata APIs plus the NDBC active-stations catalog and
realtime2feeds (.txt,.adcp,.ocean), with station catalogs cached in memory for 6 hours; CO-OPS requests carryapplication=fromNOAA_APPLICATION_ID - Station IDs belong to one source, with one exception: CO-OPS tide and water-level IDs are numeric (
9447130), CO-OPS current IDs alphanumeric (ACT4176), NDBC IDs mostly 5-character codes (46041) with some 7-digit numbers, and onlynoaa_marine_get_conditionsreads a CO-OPS ID, through its NDBC relay - CO-OPS tools take
begin_date/end_dateasYYYYMMDDorYYYY-MM-DDand check the calendar and each tool's range ceiling before calling (invalid_date_range,date_range_exceeded); heights default to MLLW, a datum a station lacks isdatum_unavailablewith a hint naming a datum to retry with, never the rejected one, and a datum failure at a station that has never had a water-level gauge isno_gauge. When a water-level or monthly-mean request fails for a window entirely after a confirmed gauge retirement,no_datanames the removal date and points to nearby gauges - CO-OPS verifies
hourly,high_low,daily_mean, and monthly means once a month, for the prior month. When a recenthourly,daily_mean, or monthly series ends early,noticenames the last available observation or month and says later data may still await verification - CO-OPS answers a burst of requests with HTTP 403 for about two minutes; the CO-OPS data tools report it as a retryable
upstream_throttledwhose recovery names the wait
Agent-friendly output:
- Count paging on the four CO-OPS series tools: a page is
limitrows fromoffset, defaulting to 50 (24 for monthly means) with a larger value clamped to 1,000 and a notice; a range of at mostlimitrows returns whole, and a longer one addsrows_matched,rows_returned,page_offset, andnext_offset - All three NDBC data tools report
observed_atandobservation_age_minutes(signed elapsed minutes rounded down), and add a notice when the reading is over three hours old. NDBC capability filters identify candidate stations, and the selected feed may be unavailable. Missing meansnullor omitted, never fabricated: NDBCMMmarkers becomenull, blank CO-OPS values are dropped, andqualityis left out rather than defaulted - Discriminated fields: station
source(coops|ndbc), capabilitytype, NDBCplatform, andprediction_class, with datum and units echoed on every CO-OPS height response, so callers branch on data, not string parsing
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http noaa-marine-mcp-server https://noaa-marine.caseyjhand.com/mcp
Or run it locally:
claude mcp add noaa-marine-mcp-server -- npx -y @cyanheads/noaa-marine-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"noaa-marine-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/noaa-marine-mcp-server"]
}
}
}
No API key: NOAA CO-OPS and NDBC are open data sources. For Docker or a source build, see Running the server.
Configuration
| Variable | Description | Default |
|---|---|---|
NOAA_APPLICATION_ID |
Courtesy identifier sent as application= on CO-OPS requests. |
noaa-marine-mcp-server |
NOAA_CLAMP_LIMITS |
Clamp a limit above its cap (1,000 series rows, 200 stations) to the cap with a notice. false enforces each cap as a schema maximum. |
true |
MCP_TRANSPORT_TYPE |
Transport: stdio or http. |
stdio |
MCP_HTTP_PORT |
HTTP server port. | 3010 |
MCP_HTTP_HOST |
HTTP bind address. | 127.0.0.1 |
MCP_SESSION_MODE |
HTTP session mode: stateless, stateful, or auto. |
stateless |
MCP_AUTH_MODE |
Authentication: none, jwt, or oauth. |
none |
MCP_LOG_LEVEL |
Log level (debug, info, warning, error, etc.). |
info |
LOGS_DIR |
Directory for log files (Node.js only). Relative paths resolve from the server package root. | <server-package-root>/logs |
LOG_TOOL_FAILURE_PAYLOADS |
Log each failed tool call's arguments and result (redacted by key name only), capped by LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES. |
false |
OTEL_ENABLED |
Enable OpenTelemetry. | false |
OTEL_EXPORTER_OTLP_ENDPOINT |
OTLP base URL; traces and metrics export to /v1/traces and /v1/metrics under it. |
— |
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT |
Opt-in OTLP log export endpoint; the base URL never enables it. | — |
See .env.example for the full list of optional overrides.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
Clone and install:
git clone https://github.com/cyanheads/noaa-marine-mcp-server.git cd noaa-marine-mcp-server && bun install cp .env.example .env # all vars optionalBuild and run:
bun run rebuild bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/noaa-marine-mcp-server:latest
The image defaults to HTTP transport, stateless session mode, and logs to /var/log/noaa-marine-mcp-server. To run it over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/noaa-marine-mcp-server:latest"]. To build locally, docker build -t noaa-marine-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
| Path | Purpose |
|---|---|
src/index.ts |
createApp() entry point: registers the tools and resource, initializes services. |
src/config/ |
NOAA_APPLICATION_ID and NOAA_CLAMP_LIMITS env var parsing with Zod. |
src/services/coops/ |
CO-OPS client: station catalog cache, data fetch, error classification, date-range validation, row paging, state resolution. |
src/services/ndbc/ |
NDBC service: active-stations XML and realtime2 feed parsers. |
src/services/geo.ts |
Haversine distance for proximity search and state resolution. |
src/mcp-server/tools/definitions/ |
Eight tool definitions (*.tool.ts). |
src/mcp-server/resources/definitions/ |
Station metadata resource (noaa-marine-station.resource.ts). |
tests/ |
Vitest tests mirroring src/. |
docs/ |
Design doc and directory tree. |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor request-scoped logging - Register tools and resources in
src/index.tsdirectly (no barrels for this server) - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
- NDBC
MMvalues must normalize tonull, not be passed through as strings
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
License
Apache-2.0 — see LICENSE for details.
Установить Noaa Marine Mcp Server в Claude Desktop, Claude Code, Cursor
unyly install noaa-marine-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add noaa-marine-mcp-server --env MCP_LOG_LEVEL="" --env MCP_TRANSPORT_TYPE="" -- npx -y @cyanheads/noaa-marine-mcp-serverПошаговые гайды: как установить Noaa Marine Mcp Server
FAQ
Noaa Marine Mcp Server MCP бесплатный?
Да, Noaa Marine Mcp Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Noaa Marine Mcp Server?
Да, требуются переменные окружения: MCP_LOG_LEVEL, MCP_TRANSPORT_TYPE. Unyly подставит их в конфиг при установке.
Noaa Marine Mcp Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Noaa Marine Mcp Server в Claude Desktop, Claude Code или Cursor?
Открой Noaa Marine Mcp Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Изменения
Версии и запрашиваемые доступы со временем.
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
автор: mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
автор: agbergsmannAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiCompare Noaa Marine Mcp Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
