noaa-tidesandcurrents-mcp
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
NOAA Tides and Currents MCP Server
This is an MCP (Model Context Protocol) server that provides tools for interacting with the NOAA Tides and Currents API using the FastMCP framework.
Features
- Water Level data retrieval (real-time and historical)
- Tide Predictions (high/low or interval-based)
- Currents data (real-time and historical)
- Current predictions
- Station metadata retrieval
- Wind, air temperature, water temperature, and other meteorological data
Prerequisites
- Node.js (v18 or higher)
- npm or yarn
Setup
- Clone this repository
- Install dependencies
- Create a
.env
file based on the.env.example
file:
- Build the TypeScript code
- Start the server
Usage
This MCP server can be used with any MCP host such as Claude Desktop, which allows you to use the NOAA Tides and Currents API through the MCP protocol.
You can also test it directly using the fastmcp
command-line tool:
Or, you can use the MCP Inspector:
Available Tools
Water Levels
get_water_levels
- Get water level data for a station- Parameters:
station
(string) - Station IDdate
(string, optional) - Date to retrieve data for ("today", "latest", "recent", or specific date)begin_date
(string, optional) - Start date (YYYYMMDD or MM/DD/YYYY)end_date
(string, optional) - End date (YYYYMMDD or MM/DD/YYYY)range
(number, optional) - Number of hours to retrieve data fordatum
(string, optional) - Datum to use (MLLW, MSL, etc.)units
(string, optional) - Units to use ("english" or "metric")time_zone
(string, optional) - Time zone (gmt, lst, lst_ldt)format
(string, optional) - Output format (json, xml, csv)
- Parameters:
Tide Predictions
get_tide_predictions
- Get tide prediction data- Parameters:
station
(string) - Station IDbegin_date
(string) - Start date (YYYYMMDD or MM/DD/YYYY)end_date
(string) - End date (YYYYMMDD or MM/DD/YYYY)datum
(string, optional) - Datum to use (MLLW, MSL, etc.)units
(string, optional) - Units to use ("english" or "metric")time_zone
(string, optional) - Time zone (gmt, lst, lst_ldt)interval
(string, optional) - Interval (hilo, hl, h, or a number for minutes)format
(string, optional) - Output format (json, xml, csv)
- Parameters:
Currents
get_currents
- Get currents data for a station- Parameters:
station
(string) - Station IDdate
(string, optional) - Date to retrieve data for ("today", "latest", "recent", or specific date)begin_date
(string, optional) - Start date (YYYYMMDD or MM/DD/YYYY)end_date
(string, optional) - End date (YYYYMMDD or MM/DD/YYYY)bin
(number, optional) - Bin numberunits
(string, optional) - Units to use ("english" or "metric")time_zone
(string, optional) - Time zone (gmt, lst, lst_ldt)format
(string, optional) - Output format (json, xml, csv)
- Parameters:
Current Predictions
get_current_predictions
- Get current predictions- Parameters:
station
(string) - Station IDdate
(string, optional) - Date to retrieve data for ("today", "latest", "recent", or specific date)begin_date
(string, optional) - Start date (YYYYMMDD or MM/DD/YYYY)end_date
(string, optional) - End date (YYYYMMDD or MM/DD/YYYY)bin
(number, optional) - Bin numberinterval
(string, optional) - Interval (MAX_SLACK or a number for minutes)vel_type
(string, optional) - Velocity type (speed_dir or default)units
(string, optional) - Units to use ("english" or "metric")time_zone
(string, optional) - Time zone (gmt, lst, lst_ldt)format
(string, optional) - Output format (json, xml, csv)
- Parameters:
Meteorological Data
get_meteorological_data
- Get meteorological data- Parameters:
station
(string) - Station IDproduct
(string) - Product (air_temperature, wind, etc.)date
(string, optional) - Date to retrieve data for ("today", "latest", "recent", or specific date)begin_date
(string, optional) - Start date (YYYYMMDD or MM/DD/YYYY)end_date
(string, optional) - End date (YYYYMMDD or MM/DD/YYYY)units
(string, optional) - Units to use ("english" or "metric")time_zone
(string, optional) - Time zone (gmt, lst, lst_ldt)format
(string, optional) - Output format (json, xml, csv)
- Parameters:
Station Information
get_stations
- Get list of stations- Parameters:
type
(string, optional) - Station type (waterlevels, currents, etc.)units
(string, optional) - Units to use ("english" or "metric")format
(string, optional) - Output format (json, xml)
- Parameters:
get_station_details
- Get detailed information about a station- Parameters:
station
(string) - Station IDunits
(string, optional) - Units to use ("english" or "metric")format
(string, optional) - Output format (json, xml)
- Parameters:
API Documentation
NOAA Tides and Currents API documentation can be found at:
- CO-OPS Data API: https://api.tidesandcurrents.noaa.gov/api/prod/
- CO-OPS Metadata API: https://api.tidesandcurrents.noaa.gov/mdapi/prod/
- CO-OPS Derived Product API: https://api.tidesandcurrents.noaa.gov/dpapi/prod/
About FastMCP
FastMCP is a TypeScript framework for building MCP servers capable of handling client sessions. It provides:
- Simple Tool, Resource, Prompt definition
- Sessions
- Image content
- Logging
- Error handling
- SSE
- Progress notifications
- Typed server events
- And more
Learn more at: https://github.com/punkpeye/fastmcp
License
MIT
You must be authenticated.
This is an MCP (Model Context Protocol) server that provides tools for interacting with the NOAA Tides and Currents API.