NDBC Examples
Practical examples for using NDBC tools.
Get Latest Observation
MCP Protocol Tester
Protocol Flow
Example: Get Station Info
curl -X POST \
-H "x-api-key: dev-key-12345" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ndbc.get_station_info",
"arguments": {
"station_id": "46108"
}
}
}' \
http://localhost:3001/api/v1/services/ndbc/mcpExample: Get Historical Data
curl -X POST \
-H "x-api-key: dev-key-12345" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "ndbc.get_historical_observations",
"arguments": {
"station_id": "46108",
"start_time": "2025-01-01T00:00:00Z",
"end_time": "2025-01-02T00:00:00Z",
"data_format": "cleaned"
}
}
}' \
http://localhost:3001/api/v1/services/ndbc/mcp