{
  "markdown": "<div align=\"center\">\n  <h1>@cyanheads/noaa-marine-mcp-server</h1>\n  <p><b>Find NOAA tide stations and NDBC buoys, fetch tide predictions, water levels, tidal currents, and live buoy conditions via MCP. STDIO or Streamable HTTP.</b>\n  <div>7 Tools • 1 Resource</div>\n  </p>\n</div>\n\n<div align=\"center\">\n\n[![Version](https://img.shields.io/badge/Version-0.3.1-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/noaa-marine-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/noaa-marine-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/noaa-marine-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)\n\n</div>\n\n<div align=\"center\">\n\n[![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/noaa-marine-mcp-server/releases/latest/download/noaa-marine-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=noaa-marine-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvbm9hYS1tYXJpbmUtbWNwLXNlcnZlciJdfQ==) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22noaa-marine-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fnoaa-marine-mcp-server%22%5D%7D)\n\n[![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)\n\n</div>\n\n<div align=\"center\">\n\n**Public Hosted Server:** [https://noaa-marine.caseyjhand.com/mcp](https://noaa-marine.caseyjhand.com/mcp)\n\n</div>\n\n---\n\n## Tools\n\nSeven tools covering the full US marine operational workflow — station discovery, tide predictions, observed water levels, tidal current predictions and profiles, and live offshore buoy conditions:\n\n| Tool | Description |\n|:-----|:------------|\n| `noaa_marine_find_stations` | Find CO-OPS tide/water-level/current stations and NDBC buoys near a location or by name/state. Required first step to resolve place names or coordinates to station IDs. |\n| `noaa_marine_get_tide_predictions` | High/low tide predictions for a CO-OPS tide station over a date range. Supports 6-minute interval output and multiple datums (defaults to MLLW — US nautical chart standard). |\n| `noaa_marine_get_water_level` | Observed water level (real-time or historical) for a CO-OPS station, paired with predictions to compute storm surge or anomalous drawdown. |\n| `noaa_marine_get_currents` | Tidal current predictions for a CO-OPS current station: max flood/ebb speeds, slack times, and directions. Defaults to MAX_SLACK (practical passage-planning view). |\n| `noaa_marine_get_conditions` | Live marine conditions from an NDBC buoy: wave height/period/direction, wind, sea-surface temp, air temp, and barometric pressure. |\n| `noaa_marine_get_current_profile` | Observed ocean-current depth profile from an NDBC ADCP buoy: speed and direction at each depth bin. Distinct from `noaa_marine_get_currents`, which is a CO-OPS tidal-current forecast. |\n| `noaa_marine_get_ocean_observations` | Sub-surface water-column observations from an NDBC station: water temperature, salinity, dissolved oxygen, chlorophyll, turbidity, and pH at each reported depth. The water-column counterpart to `noaa_marine_get_conditions` (surface weather and sea state). |\n\n### `noaa_marine_find_stations`\n\nUnified station discovery across CO-OPS (3,450+ tide/water-level stations, 4,430+ current stations) and NDBC (1,354+ active buoys worldwide).\n\n- Filter by proximity (latitude/longitude + radius), name substring, state/territory, source (CO-OPS vs NDBC), or `types`: data capabilities (tide, current, water_level, met, current_profile) or NDBC platform class (buoy)\n- Returns a unified station list with source, coordinates, distance, data capabilities, and — for NDBC — the physical platform class (buoy, fixed, oilrig, dart, tao, usv, other)\n- Station lists are cached in-memory (6-hour TTL) — first call after startup may be slightly slower\n- Required first step: CO-OPS and NDBC use non-overlapping ID systems; guessing a station ID reliably fails\n\n---\n\n### `noaa_marine_get_tide_predictions`\n\nCO-OPS MLLW tide predictions for planning tidal windows.\n\n- High/low events (default) or 6-minute continuous curve\n- Eight datums: MLLW (default, US nautical chart), MHHW, MSL, MTL, MHW, MLW, CD, STND\n- Time zone options: local standard/daylight (default), GMT, local standard only\n- Units: English (feet, default) or metric (meters)\n- Maximum date range: 1 year per request (typed error `date_range_exceeded` for longer ranges)\n\n---\n\n### `noaa_marine_get_water_level`\n\nObserved water level vs. predicted — the storm surge view.\n\n- 6-minute observed water level readings with quality flags\n- Paired tide predictions fetched in parallel (failure degrades gracefully — observed levels still returned)\n- Optional residual summary: max surge and max drawdown when both series are present\n- Maximum date range: 31 days per request for 6-minute data\n\n---\n\n### `noaa_marine_get_currents`\n\nCO-OPS tidal current predictions for passage planning.\n\n- MAX_SLACK interval (default): max flood, max ebb, and slack events only — the actionable view for transiting inlets and channels\n- 6-minute interval: full continuous current curve for charting or integration\n- Current station IDs use alphanumeric format (e.g., `ACT4176`), distinct from numeric tide station IDs — use `find_stations` with `types: [\"current\"]` to discover them\n\n---\n\n### `noaa_marine_get_conditions`\n\nLive NDBC buoy observations (most recent ~45 days, updated every 10 minutes).\n\n- Wave height (m), dominant and average period (sec), mean wave direction\n- Wind speed and gust (m/s), wind direction\n- Sea-surface temperature, air temperature, dew point (°C)\n- Barometric pressure (hPa)\n- All sensor fields nullable (`null` when buoy sensor did not report — normal for offshore buoys)\n- All values in SI units except `TIDE` (feet) and `VIS` (nautical miles), which are rarely populated at offshore buoys\n\n---\n\n### `noaa_marine_get_current_profile`\n\nObserved ocean-current depth profile from an NDBC ADCP buoy — the most recent measurement at each depth bin.\n\n- Depth (m), direction (degrees true, the direction the current flows toward), and speed (cm/s) per bin\n- Distinct from `noaa_marine_get_currents`: this is an NDBC *observed* acoustic-Doppler measurement, not a CO-OPS tidal-current *prediction*\n- Most NDBC stations serve no ADCP profile — use `find_stations` with `source=\"ndbc\"` and `types: [\"current_profile\"]` to discover the ones that do\n- Direction or speed is `null` for a bin when NDBC did not report that component\n\n### `noaa_marine_get_ocean_observations`\n\nSub-surface water-column observations from an NDBC station — the most recent reading at each reported depth.\n\n- Water temperature (°C), conductivity (mS/cm), salinity (psu), dissolved oxygen (% saturation and ppm), chlorophyll (µg/l), turbidity (FTU), pH, and redox potential (mV) per depth\n- The water-column counterpart to `noaa_marine_get_conditions`: this reports what the water is doing below the surface, that one reports surface weather and sea state\n- Sensor coverage is sparse — most stations report only temperature and salinity; any value the station did not report comes back `null`, never a fabricated zero\n- Sub-surface sensors are on only a subset of NDBC stations and carry no station-catalog flag, so there is no capability filter — call it on candidate `source=\"ndbc\"` station IDs and expect the `observations_not_found` error on the many stations that serve no ocean file\n\n## Resources and prompts\n\n| Type | Name | Description |\n|:-----|:-----|:------------|\n| Resource | `noaa-marine://station/{station_id}` | Metadata for a CO-OPS or NDBC station by ID: name, coordinates, source, data capabilities, state, and — for NDBC — physical platform class. |\n\nAll resource data is also reachable via tools. Use `noaa_marine_find_stations` to discover station IDs before accessing the resource.\n\n## Features\n\nBuilt on [`@cyanheads/mcp-ts-core`](https://www.npmjs.com/package/@cyanheads/mcp-ts-core):\n\n- Declarative tool and resource definitions — single file per primitive, framework handles registration and validation\n- Unified error handling — handlers throw, framework catches, classifies, and formats with typed error contracts\n- Structured logging with optional OpenTelemetry tracing\n- STDIO and Streamable HTTP transports\n- MCP 2026 cache hints for static definition lists and station metadata\n- Pluggable auth: `none`, `jwt`, `oauth`\n\nNOAA-specific:\n\n- In-memory station cache (6-hour TTL) for CO-OPS and NDBC station lists — discovery is fast after first startup\n- CO-OPS and NDBC integrated in a unified station model — `find_stations` fans out across both sources in parallel\n- NDBC fixed-width text parser: `MM` (missing sensor data) normalized to `null`, not passed through as strings\n- Paired water-level + prediction fetches for storm surge residual computation\n- CO-OPS `application=` courtesy parameter sent on every request (configurable via `NOAA_APPLICATION_ID`)\n\nAgent-friendly output:\n\n- Datum echoed on every tide/water-level response — agents can state units and reference correctly without assumptions\n- `total_found` on `find_stations` shows count before `limit` slice so agents know whether to re-query\n- All NDBC sensor fields explicitly nullable with per-field unit documentation — agents don't fabricate missing readings\n- Typed station source (`coops` | `ndbc`) on every station record, plus a data-capability `type` and (NDBC only) a `platform` class where applicable — agents can branch on data, not string parsing\n\n## Getting started\n\nNo API key required. Both NOAA CO-OPS and NDBC are open, keyless data sources.\n\n### Public Hosted Instance\n\nConnect directly via Streamable HTTP — no install, no API key:\n\n```json\n{\n  \"mcpServers\": {\n    \"noaa-marine\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://noaa-marine.caseyjhand.com/mcp\"\n    }\n  }\n}\n```\n\n### Self-hosted / local\n\nAdd the following to your MCP client configuration file:\n\n```json\n{\n  \"mcpServers\": {\n    \"noaa-marine\": {\n      \"type\": \"stdio\",\n      \"command\": \"bunx\",\n      \"args\": [\"@cyanheads/noaa-marine-mcp-server@latest\"],\n      \"env\": {\n        \"MCP_TRANSPORT_TYPE\": \"stdio\",\n        \"MCP_LOG_LEVEL\": \"info\"\n      }\n    }\n  }\n}\n```\n\nOr with npx (no Bun required):\n\n```json\n{\n  \"mcpServers\": {\n    \"noaa-marine\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cyanheads/noaa-marine-mcp-server@latest\"],\n      \"env\": {\n        \"MCP_TRANSPORT_TYPE\": \"stdio\",\n        \"MCP_LOG_LEVEL\": \"info\"\n      }\n    }\n  }\n}\n```\n\nOr with Docker:\n\n```json\n{\n  \"mcpServers\": {\n    \"noaa-marine\": {\n      \"type\": \"stdio\",\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\", \"-i\", \"--rm\",\n        \"-e\", \"MCP_TRANSPORT_TYPE=stdio\",\n        \"ghcr.io/cyanheads/noaa-marine-mcp-server:latest\"\n      ]\n    }\n  }\n}\n```\n\nFor Streamable HTTP, set the transport and start the server:\n\n```sh\nMCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http\n# Server listens at http://localhost:3010/mcp\n```\n\n### Prerequisites\n\n- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).\n- No external API keys needed — NOAA CO-OPS and NDBC are fully open.\n\n### Installation\n\n1. **Clone the repository:**\n\n```sh\ngit clone https://github.com/cyanheads/noaa-marine-mcp-server.git\n```\n\n2. **Navigate into the directory:**\n\n```sh\ncd noaa-marine-mcp-server\n```\n\n3. **Install dependencies:**\n\n```sh\nbun install\n```\n\n4. **Configure environment:**\n\n```sh\ncp .env.example .env\n# edit .env if needed (all vars optional)\n```\n\n## Configuration\n\n| Variable | Description | Default |\n|:---------|:------------|:--------|\n| `NOAA_APPLICATION_ID` | Courtesy identifier sent as `application=` on CO-OPS requests. | `noaa-marine-mcp-server` |\n| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |\n| `MCP_HTTP_PORT` | Port for HTTP server. | `3010` |\n| `MCP_AUTH_MODE` | Auth mode: `none`, `jwt`, or `oauth`. | `none` |\n| `MCP_SESSION_MODE` | HTTP session mode: `auto`, `stateful`, or `stateless`. This server pins `stateless`; the framework's `auto` schema default resolves to `stateful`. | `stateless` |\n| `MCP_LOG_LEVEL` | Log level (RFC 5424). | `info` |\n| `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |\n| `OTEL_ENABLED` | Enable [OpenTelemetry instrumentation](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |\n\nSee [`.env.example`](./.env.example) for the full list of optional overrides.\n\n## Running the server\n\n### Local development\n\n- **Build and run:**\n\n  ```sh\n  bun run rebuild\n\n  bun run start:stdio\n  # or\n  bun run start:http\n  ```\n\n- **Run checks and tests:**\n\n  ```sh\n  bun run devcheck   # Lint, format, typecheck, security\n  bun run test       # Vitest test suite\n  bun run lint:mcp   # Validate MCP definitions against spec\n  ```\n\n### Docker\n\n```sh\ndocker build -t noaa-marine-mcp-server .\ndocker run --rm -p 3010:3010 noaa-marine-mcp-server\n```\n\nThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to `/var/log/noaa-marine-mcp-server`. OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.\n\n## Project structure\n\n| Path | Purpose |\n|:-----|:--------|\n| `src/index.ts` | `createApp()` entry point — registers tools, resource, and initializes services. |\n| `src/config/` | `NOAA_APPLICATION_ID` env var parsing with Zod. |\n| `src/services/coops/` | CO-OPS Tides & Currents API client: station list cache, data fetch, error detection. |\n| `src/services/ndbc/` | NDBC buoy service: active stations XML parser, realtime text parser. |\n| `src/mcp-server/tools/` | Seven tool definitions (`*.tool.ts`). |\n| `src/mcp-server/resources/` | Station metadata resource (`noaa-marine-station.resource.ts`). |\n| `tests/` | Vitest tests mirroring `src/`. |\n| `docs/` | Design doc and directory tree. |\n\n## Development guide\n\nSee [`CLAUDE.md`/`AGENTS.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:\n\n- Handlers throw, framework catches — no `try/catch` in tool logic\n- Use `ctx.log` for request-scoped logging\n- Register tools and resources in `src/index.ts` directly (no barrels for this server)\n- Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields\n- NDBC `MM` values must normalize to `null`, not be passed through as strings\n\n## Contributing\n\nIssues and pull requests are welcome. Run checks and tests before submitting:\n\n```sh\nbun run devcheck\nbun run test\n```\n\n## License\n\nApache-2.0 — see [LICENSE](LICENSE) for details.\n",
  "bytes": 15509,
  "sha": "ff2ffaef22c934817a4af6d4ab499452a8d64f27533535ec57a98e721702c759",
  "repo_slug": "cyanheads/noaa-marine-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_cyanheads_noaa_marine_mcp_serv_3f131354/readme"
}