NOAA
This is an MCP (Model Context Protocol) server that provides tools for interacting with the NOAA Tides and Currents API.
This is an MCP (Model Context Protocol) server that provides tools for interacting with the NOAA Tides and Currents API.
This is an MCP (Model Context Protocol) server that provides tools for interacting with the NOAA Tides and Currents API using the FastMCP framework.
To install NOAA Tides and Currents for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @RyanCardin15/tidesandcurrents --client claude
npm install
.env
file based on the .env.example
file:# Server Configuration
PORT=3000
# Transport type (stdio or sse)
TRANSPORT_TYPE=stdio
# NOAA API application name for identification (recommended)
APPLICATION_NAME=YourAppName
npm run build
npm start
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:
npx fastmcp dev dist/index.js
Or, you can use the MCP Inspector:
npx fastmcp inspect dist/index.js
get_water_levels
- Get water level data for a stationstation
(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)get_tide_predictions
- Get tide prediction datastation
(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)get_currents
- Get currents data for a stationstation
(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)get_current_predictions
- Get current predictionsstation
(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)get_meteorological_data
- Get meteorological datastation
(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)get_stations
- Get list of stationsParameters:
type
(string, optional) - Station type (waterlevels, currents, etc.)units
(string, optional) - Units to use ("english" or "metric")format
(string, optional) - Output format (json, xml)get_station_details
- Get detailed information about a station
station
(string) - Station IDunits
(string, optional) - Units to use ("english" or "metric")format
(string, optional) - Output format (json, xml)get_moon_phase
- Get moon phase information for a specific dateParameters:
date
(string, optional) - Date to get moon phase for (YYYY-MM-DD format). Defaults to current date.latitude
(number, optional) - Latitude for location-specific calculationslongitude
(number, optional) - Longitude for location-specific calculationsformat
(string, optional) - Output format (json or text)get_moon_phases_range
- Get moon phase information for a date range
Parameters:
start_date
(string) - Start date (YYYY-MM-DD format)end_date
(string) - End date (YYYY-MM-DD format)latitude
(number, optional) - Latitude for location-specific calculationslongitude
(number, optional) - Longitude for location-specific calculationsformat
(string, optional) - Output format (json or text)get_next_moon_phase
- Get the next occurrence(s) of a specific moon phase
phase
(string) - Moon phase to find (New Moon, First Quarter, Full Moon, Last Quarter)date
(string, optional) - Starting date (YYYY-MM-DD format). Defaults to current date.count
(number, optional) - Number of occurrences to return. Defaults to 1.format
(string, optional) - Output format (json or text)get_sun_times
- Get sun rise/set and other sun event times for a specific date and locationParameters:
date
(string, optional) - Date to get sun times for (YYYY-MM-DD format). Defaults to current date.latitude
(number) - Latitude for location-specific calculationslongitude
(number) - Longitude for location-specific calculationsformat
(string, optional) - Output format (json or text)timezone
(string, optional) - Timezone for the results. Defaults to UTC.get_sun_times_range
- Get sun rise/set and other sun event times for a date range and location
Parameters:
start_date
(string) - Start date (YYYY-MM-DD format)end_date
(string) - End date (YYYY-MM-DD format)latitude
(number) - Latitude for location-specific calculationslongitude
(number) - Longitude for location-specific calculationsformat
(string, optional) - Output format (json or text)timezone
(string, optional) - Timezone for the results. Defaults to UTC.get_sun_position
- Get sun position information for a specific date, time, and location
Parameters:
date
(string, optional) - Date to get sun position for (YYYY-MM-DD format). Defaults to current date.time
(string, optional) - Time to get sun position for (HH:MM:SS format). Defaults to current time.latitude
(number) - Latitude for location-specific calculationslongitude
(number) - Longitude for location-specific calculationsformat
(string, optional) - Output format (json or text)get_next_sun_event
- Get the next occurrence(s) of a specific sun event
event
(string) - Sun event to find (sunrise, sunset, dawn, dusk, solarNoon, etc.)date
(string, optional) - Starting date (YYYY-MM-DD format). Defaults to current date.latitude
(number) - Latitude for location-specific calculationslongitude
(number) - Longitude for location-specific calculationscount
(number, optional) - Number of occurrences to return. Defaults to 1.format
(string, optional) - Output format (json or text)timezone
(string, optional) - Timezone for the results. Defaults to UTC.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/
FastMCP is a TypeScript framework for building MCP servers capable of handling client sessions. It provides:
Learn more at: https://github.com/punkpeye/fastmcp
MIT