Ocean MCP
MCP server for ocean analysis: CTD casts, TEOS-10, water masses, Argo and glider profiles, sections, transports, tides, eddies, particles, marine heatwaves and model checks, each result with a provenance record
claude mcp add --scope project clio-ocean -- clio-kit mcp-server ocean
Install the launcher first. Restart your client after setup. Configuration locations →
Check the connection
clio-kit doctor --server ocean --connect
Checks prerequisites and tool discovery. Test on known input to verify results. Native backends may require additional setup.
Tools
ctd_readRead CTD cast files (Sea-Bird .cnv, CCHDO WHP-exchange _ct1.csv or a zip of them, CF NetCDF, or CSV) into one profile table (Parquet) with profile, time, latitude, longitude, pressure and the measured variables. Reports profiles, depth range, positions and the formats read.
teos10Add TEOS-10 properties to a profile table with gsw: Absolute Salinity (SA), Conservative Temperature (CT), potential temperature (pt0), sigma0 and depth; optionally buoyancy frequency N² per profile as a second table. Needs in-situ temperature and practical salinity.
water_massesAssign each sample of a profile table to a water mass by its potential temperature, salinity and pressure against a stated regional definition: a built-in one (atlantic_emery_meincke_1986) or your own {name, citation, masses:[{name, theta:[lo,hi], salinity:[lo,hi], pressure:[lo,hi]}]}. Returns the definition used, counts and where each mass sits (pressure, latitude, mean θ-S).
argo_fetchFetch Argo profiles with argopy into a profile table: a region box [lon_min, lon_max, lat_min, lat_max, p_min, p_max, 'YYYY-MM-DD', 'YYYY-MM-DD'] or float WMO numbers; core (phy) or BGC (oxygen, chlorophyll, nitrate). 'standard' mode keeps only good adjusted data. Large boxes over many years take minutes; fetch by year if needed.
glider_fetchFind glider deployments in the IOOS Glider DAC (give box and dates), or fetch one deployment (give dataset_id): its profiles as a table split into transects by heading reversals, with suspect samples flagged (provider QC, spikes, density inversions).
profile_metricsPer-profile mixed layer depth by a stated criterion (density or temperature threshold from a reference pressure, e.g. 0.03 kg m-3 from 10 dbar), mean N² over a pressure band, and optionally anomaly profiles on standard levels against a reference table with their vertical type. Returns one row per profile and, with a reference, the anomaly table.
sectionBuild a section (field along a path against depth or pressure) as NetCDF: from a profile table (casts ordered by time, latitude, longitude or a given order, on pressure levels) or from a gridded file sampled along a path of [lon, lat] vertices. The path is stored with the section so a map can draw it and a redrawn path can recompute it.
transportVolume (Sv) and heat (PW, relative to a stated reference temperature) transport normal to a path through gridded u, v (and temperature) on a regular lon-lat product, per time step. Positive is to the right of the path's direction. The result states that a drawn path on a regular grid gives an approximate transport.
overturningMeridional overturning streamfunction (Sv) in depth or density space, on a grid whose rows are latitude lines (regular or MOM6-style), from a per-cell meridional transport (vmo kg/s or vh m3/s) or a velocity v, within a basin_mask or the whole file; plus the time series of its maximum at a chosen latitude (e.g. 26.5 N). A curvilinear grid is refused with the reason.
harmonicsTidal harmonic analysis with UTide of a sea level (height) or current (u, v) series: constituent amplitudes and phases (or ellipse parameters for currents) with confidence and SNR, the predicted and residual series, and optionally a comparison against another constituent table (a tide model at the same point).
spectraPower spectrum (Welch) of a series, or rotary spectra (clockwise and anticlockwise) of a current u + iv; frequencies in cycles per day, with the inertial frequency for a latitude.
sea_level_decomposeTrends of a tide gauge record and the nearest altimetry series over their common period (annual cycle removed, autocorrelation-corrected errors) and of their difference, the local part, which includes vertical land motion.
particlesLagrangian particles with Parcels 3 (RK4) in a gridded velocity field, seeded on a disc around a station and run forward (where water goes) or backward (where it came from). Writes the trajectories and a density grid of end points (destinations or origins).
eddy_trackIdentify mesoscale eddies in daily gridded sea level (SLA or ADT) with py-eddy-tracker (closed contours after a Bessel high-pass at a stated wavelength) and link them into tracks; returns a track table (time, position, amplitude, speed radius, polarity). Runs in a separate GPL worker environment; the first call builds it.
track_crossingsWhich tracks (eddies, particles, storms) cross a contour of a field, such as an isobath of a bathymetry grid: a track crosses when any of its points lies on the shallow (or low) side. Returns the count and the crossing tracks with the first crossing time.
swath_fetchSearch SWOT L2 LR sea surface height granules over a box and period (no login needed), or download them with download=true (needs NASA Earthdata Login in the connector).
swath_compareCompare SWOT swath sea surface height with a gridded product at each pass time inside a box (each pass's mean removed from both): a pixel table with both values and the difference.
mhw_pointMarine heatwaves (or any threshold events) in a daily series at a point, by the Hobday definition: day-of-year climatology and percentile threshold over a stated baseline, events of at least min_duration days, gaps up to max_gap joined; per event duration, max/mean/cumulative intensity, category and onset/decline rates. Input is a series file or a gridded file and a point.
mhw_trackDetect and track marine heatwaves over a region with marEx (anomalies from a stated baseline, seasonal percentile threshold, connected-object tracking with merging/splitting), keeping events of at least min_duration days. Writes the event ID field (NetCDF) and per-event daily series; run mhw_events next for Hobday metrics and categories. Runs in a separate AGPL worker environment.
mhw_eventsHobday metrics and category for every tracked marine heatwave from mhw_track's event series: start, end, duration, area-mean max/mean/cumulative intensity, intensity ratio to the threshold, category (moderate/strong/severe/extreme), peak area and centroid path. Optionally only events overlapping a period or a box.
bloom_phenologyPhytoplankton bloom initiation per year from a chlorophyll series (or a gridded product averaged over a box) by a stated method: median plus 5 % (Siegel et al. 2002) or the steepest rise of log-chlorophyll, both tied to the chosen months' chlorophyll peak. A year whose bloom is already under way when the months open gets no date, with the reason.
mixed_layer_budgetMixed-layer heat budget over an event: temperature tendency against net surface heat flux divided by rho cp h (with optional shortwave penetration below h), the residual standing for advection, entrainment and mixing; daily and cumulative terms.
cruise_planPlan stations to sample a moving feature (an eddy's forecast track) within ship time: steam from a port, a line of stations across the feature where it will be on arrival, and back; or re-time a plan whose stations the scientist moved (give stations). Reports whether it fits.
driftSpin-up check of a model run: area-weighted domain means of temperature and salinity and mean kinetic energy per level and time, and per level whether the drift over the last window is below a stated tolerance (equilibrated) or not.
colocateSample a model at each observation's position, depth and time (profiles from Argo, CTD or moorings) and report bias and RMSE overall, by depth band and by region cell; writes the matched pairs (for a profile stack of model against observation) and the statistics.
mom6_preflightCheck a regional MOM6 run directory before running: open-boundary segments in MOM_input match the segment files; boundary and initial files cover the run dates in input.nml; the land mask has no isolated wet cells or one-cell channels (except cells the scientist kept); MINIMUM_DEPTH agrees with the bathymetry; LAYOUT fits the mask table. Each check passes, fails or says why it could not run.
Examples
Replace example paths with your own files and check the returned results.
Usage
Available tools: ctd_read, teos10, water_masses, argo_fetch, glider_fetch, profile_metrics, section, transport, overturning, harmonics, spectra, sea_level_decompose, particles, eddy_track, track_crossings, swath_fetch, swath_compare, mhw_point, mhw_track, mhw_events, bloom_phenology, mixed_layer_budget, cruise_plan, drift, colocate, mom6_preflight.
Inspect the tool input schema in your MCP client before calling it. Use a small known input, check the result and any reported errors, then expand to the intended workload.