odv-mcp
Generates and edits ODV View XML (.xview) files, enabling AI agents to author and modify ODV plot views with configurable plot types, interpolation, palettes, contours, and section waypoints.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
odv-mcp — Ocean Data View (ODV 5) Model Context Protocol (MCP) Server & AI Automation Engine
odv-mcp bridges Ocean Data View (ODV 5) with AI Agents (Antigravity, Claude Desktop, Cursor, Windsurf, Cline) via the Model Context Protocol (MCP).
With odv-mcp, an AI agent can take raw oceanographic datasets (such as World Ocean Database CTDO1012.gz, Sea-Bird CTD .cnv, CSV/Excel, or NetCDF .nc) and automatically:
Generate ready-to-open native ODV Collections (
.odv+.Data/) and ODV Generic Spreadsheets V4.8 (.txt).Author and live-edit ODV View XML files (
.xview) with full control over window layouts (Station Profiles, T-S Scatter Diagrams with Isopycnals $\sigma_\theta$, Vertical Sections with GEBCO Bathymetry, and Horizontal Iso-Surface Maps).Control Spatial Interpolation & Gridding (
DIVAfinite-element optimal interpolation viadiva.exe,Weighted-Average / Barnesgridding,Quickgridding, orOriginaldiscrete data).Drive
odv.exein headless batch mode (.cmd) or interactive GUI mode, exporting 300+ DPI publication graphics (.png,.gif,.jpg,.eps,.tif) while keeping views 100% editable inside the ODV desktop application.
Architecture
flowchart LR
A["AI Agent<br/>(Antigravity / Claude / Cursor)"] <-->|"JSON-RPC 2.0 (stdio)"| B["odv-mcp Server<br/>(odv_mcp.server)"]
B --> C["Multi-Format Converter<br/>(WOD / .gz / .cnv / CSV / .nc)"]
B --> D["ODV .xview XML Engine<br/>(Section / IsoSurface / T-S / DIVA)"]
B --> E["ODV 5 Batch & GUI Controller<br/>(odv.exe -x script.cmd / diva.exe)"]
B --> F["TEOS-10 & 2D Gridding Engine<br/>(gsw + Barnes / RBF Dashboard)"]
C --> G["Ready-to-Open Files<br/>(*.odv + *.txt)"]
D --> H["Editable ODV Views<br/>(*.Data/views/*.xview)"]
E --> I["300 DPI ODV Graphics & Live GUI<br/>(*.png / *.eps / *.tif)"]Related MCP server: erddap-mcp-demo
Features & Exposed MCP Tools
Tool Name | Description |
| Detects local |
| Decompresses |
| Parses |
| Generates a native |
| Modifies any existing |
| Produces a 4-panel hydrographic synthesis figure (Station Map + TEOS-10 T-S Diagram with $\sigma_0$ isopycnals + Interpolated Vertical Section + Interpolated Horizontal Iso-Surface Map). |
| Executes raw ODV batch command lines ( |
| Launches the interactive Ocean Data View desktop application ( |
Installation
git clone https://github.com/dzakyzahy/odv-mcp.git
cd odv-mcp
pip install -e .Optional TEOS-10 (gsw) and NetCDF support:
pip install -e ".[teos10,netcdf]"Connecting to AI Agents (MCP Configuration)
Add odv-mcp to your mcp_config.json (Antigravity / Cursor / Windsurf) or claude_desktop_config.json (Claude Desktop):
{
"mcpServers": {
"odv-mcp": {
"command": "python",
"args": ["-m", "odv_mcp", "serve"],
"env": {
"ODV_EXECUTABLE": "C:\\Program Files\\Ocean Data View\\bin_w64\\odv.exe"
}
}
}
}Example Natural Language Prompts for AI Agents
Once odv-mcp is connected, you can command your AI agent directly:
"Import
CTDO1012.gzinto a ready-to-open ODV collection and show me all available variables and geographic bounds.""Create an ODV vertical section plot of Temperature from 0 to 1000 m with DIVA interpolation and
cmocean_thermalpalette, save the.xview, and export a 300 DPI PNG.""Create an ODV horizontal surface map of Salinity at 50 m depth using Weighted-Average gridding and open it in the ODV GUI."
"Edit the existing
Section_Temperature_DIVA.xviewview to display Oxygen instead of Temperature withcmocean_oxypalette and re-render.""Generate a 4-panel TEOS-10 hydrographic dashboard (Station Map, T-S Diagram with isopycnals, Vertical Section, and 100 m Iso-Surface Map)."
Command-Line Interface (CLI)
odv-mcp also includes a full terminal CLI:
# 1. Check ODV 5 & DIVA installation status
python -m odv_mcp status
# 2. Convert & import raw WOD / CTD / CSV file into a ready-to-open .odv collection
python -m odv_mcp import CTDO1012.gz -o CTDO1012_Ready.odv
# 3. Inspect variables, station count, and geographic bounding box
python -m odv_mcp inspect CTDO1012_Ready.odv
# 4. Create an ODV .xview with DIVA interpolation & render 300 DPI PNG
python -m odv_mcp plot CTDO1012_Ready.odv --type section --z-var Temperature --interp diva --max-depth 1000 --view-name Section_Temp_DIVA -o Section_Temp_DIVA.png
# 5. Render a 4-panel TEOS-10 + DIVA/Barnes synthesis dashboard
python -m odv_mcp dashboard CTDO1012_Ready.odv --z-var Temperature --iso-depth 50 --max-depth 1000 --interp diva -o Dashboard_CTDO1012.pngLicense
MIT License © 2026 Dzaky Zahy Rabbani (Oceanography, FITB ITB).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Clean messy tabular data and render publication-ready PNG charts from your AI assistant.
Offline-first scientific and field tools for AI assistants: navigation, weather, geology, biology.
MCP tools for AI agents: render URLs to image/PDF, check link health, convert HTML/CSV/JSON.
The all-in-one data stack for agents. Upload files, run SQL, evolve tables, and render charts.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAccess oceanographic and environmental data from 63+ ERDDAP servers worldwide through natural language queries. Search datasets, retrieve metadata, and download scientific data for climate research, marine biology, and coastal management.18-
- FlicenseCqualityDmaintenanceEnables LLMs to interact with ERDDAP search, metadata, and tabledap services for oceanographic data.51-

Oceanum MCPofficial
AlicenseAqualityBmaintenanceEnables AI assistants to search, query, and manage ocean/environmental datasets from the Oceanum platform, and to read, write, and delete files in Oceanum cloud storage.131MIT- FlicenseNot gradedqualityDmaintenanceEnables LLMs to work with Copernicus Marine ocean data through semantic tools for dataset discovery, metadata retrieval, recommendation, validation, point time-series extraction, area statistics, subsetting, and computation without exposing raw API plumbing.-