Buoys
NOAA NDBC buoy stations, latest observations and recent station histories for marine analysis
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available Β· $10/month organization minimum
Use with an agent
Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.
npx skills add Query-farm/vgi-skills --skill orchard
Copy this request into your coding agent to get started.
Use https://query.farm/products/orchard/connectors/buoys/index.md to help me query Buoys with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.
Discover stations with meteorological data
Example output Β· captured
- Connector release
- v0.2.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20
| station_id | name | latitude | longitude |
|---|---|---|---|
| 14049 | NULL | -12 | 65 |
| 15001 | Gavotte | -10 | -10 |
| 15006 | Valse | -6 | -10 |
| 15009 | NULL | 0 | -3.051 |
| 22101 | NULL | 37.23 | 126.02 |
Quick start
Choose where to run Buoys, then follow the steps below.
The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.
1. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
2. Attach the connector
Attach the release directly
Downloads the latest release for your platform and caches it locally.
ATTACH 'buoys' AS buoys (
TYPE vgi,
LOCATION 'github-auto://Query-farm/vgi-buoys'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'buoys' AS buoys (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-buoys:0.2.0'
);
3. Run a query
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connectorβs deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'buoys' AS buoys
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20
Query Farm operates Buoys for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use buoys as the catalog alias for the query below.
4. Run a query
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20
Technical details
- Verified connector release
- v0.2.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
Pin a version for production
When running the connector yourself, keep a specific release until youβre ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.
Attach the release directly
Uses the verified release each time you attach the connector.
ATTACH 'buoys' AS buoys (
TYPE vgi,
LOCATION 'github-auto://Query-farm/[email protected]'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'buoys' AS buoys (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-buoys:0.2.0'
);
Overview
NOAA National Data Buoy Center stations, latest marine observations and about 45 days of recent station history (wind, waves, pressure, temperatures, visibility, water level) as SQL tables in metric units. No API key needed.
NOAA NDBC buoy stations, latest observations and recent station histories in SQL. Table functions return typed Arrow columns with UTC timestamps, source URLs and retrieval times. No API key is needed. Missing measurements become NULL; invalid arguments and unexpected upstream responses fail explicitly. Data is retrieved when a query executes. Use SQL to filter, aggregate and join stations to measurements. Wind speeds are m/s, waves are metres, periods seconds, temperatures Celsius and pressure hPa. Visibility is converted to metres and water level to metres relative to MLLW. The recent station file covers approximately 45 days; this worker does not read annual archives. Observation timestamps, not retrieval times, determine freshness.
Data access
Use the main schema to discover stations and retrieve observations. Each response preserves its source URL and UTC retrieval time. Missing sensor values remain NULL.
Sources and references
- NOAA National Data Buoy Center: the upstream station directory, latest-observation file and realtime station files this worker reads.
- NDBC realtime data access: how the realtime2 station files are published.
- NDBC measurement descriptions and units: definitions of the source columns converted here.
Catalog
Everything buoys exposes once attached β read straight from the worker's
released build.
main 2 tables Β· 2 functions
NOAA NDBC buoy station directory, latest observations, recent station histories and a measurement unit reference.
Schema examples (7)
Discover stations with meteorological data
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20;
| station_id | name | latitude | longitude |
|---|---|---|---|
| 14049 | NULL | -12 | 65 |
| 15001 | Gavotte | -10 | -10 |
| 15006 | Valse | -6 | -10 |
| 15009 | NULL | 0 | -3.051 |
| 22101 | NULL | 37.23 | 126.02 |
List directory stations flagged has_met that have no row in the latest observations file, with owner and station type
SELECT s.station_id, s.name, s.owner, s.station_type
FROM buoys.main.stations AS s ANTI
JOIN buoys.main.latest_observations() AS o USING (station_id)
WHERE s.has_met
ORDER BY s.station_id;
Find the largest reported seas and their wave periods
SELECT station_id, time, wave_height_m, dominant_period_s
FROM buoys.main.latest_observations()
WHERE wave_height_m IS NOT NULL
ORDER BY wave_height_m DESC, station_id
LIMIT 10;
Name the 10 stations reporting the largest significant wave heights in the latest file, with owner, station type and dominant period
SELECT o.station_id, s.name, s.owner, s.station_type, o.time,
o.wave_height_m, o.dominant_period_s
FROM buoys.main.latest_observations() AS o
JOIN buoys.main.stations AS s USING (station_id)
WHERE o.wave_height_m IS NOT NULL
ORDER BY o.wave_height_m DESC, o.station_id
LIMIT 10;
3 more examples
Inspect the latest measured waves and winds off Boston
SELECT time, wind_speed_mps, wave_height_m, dominant_period_s
FROM buoys.main.observations('44013')
WHERE wave_height_m IS NOT NULL
ORDER BY time DESC
LIMIT 24;
Summarise the 7 most recent days (session time zone) at buoy 44013 (daily peak wave height, mean wind speed, report count) with the directory name and coordinates that recent files omit
SELECT s.station_id, s.name, s.latitude, s.longitude,
date_trunc('day', o.time) AS obs_day,
max(o.wave_height_m) AS max_wave_height_m,
avg(o.wind_speed_mps) AS mean_wind_speed_mps, count(*) AS reports
FROM buoys.main.observations('44013') AS o
JOIN buoys.main.stations AS s USING (station_id)
GROUP BY ALL
ORDER BY obs_day DESC
LIMIT 7;
Show each non-missing measurement in station 46026's latest report as one row, with its output unit, NDBC source field, source unit and conversion scale
SELECT v.column_name, v.value, m.output_unit, m.source_field, m.source_unit,
m.scale
FROM (UNPIVOT buoys.main.latest_observations(station_id := '46026') ON COLUMNS(* EXCLUDE (station_id, time, latitude, longitude, source_url, fetched_at)) INTO NAME column_name VALUE value) AS v
JOIN buoys.main.measurements AS m USING (column_name)
ORDER BY v.column_name;
measurements
NDBC measurement fields, source units and conversion factors
NDBC measurement fields, source units and conversion factors
SELECT column_name, source_unit, output_unit, scale
FROM buoys.main.measurements
WHERE column_name = 'visibility_m';
Show each non-missing measurement in station 46026's latest report as one row, with its output unit, NDBC source field, source unit and conversion scale
SELECT v.column_name, v.value, m.output_unit, m.source_field, m.source_unit,
m.scale
FROM (UNPIVOT buoys.main.latest_observations(station_id := '46026') ON COLUMNS(* EXCLUDE (station_id, time, latitude, longitude, source_url, fetched_at)) INTO NAME column_name VALUE value) AS v
JOIN buoys.main.measurements AS m USING (column_name)
ORDER BY v.column_name;
stations
Active NDBC station directory with locations, owners and instrument capability flags
Discover stations with meteorological data
SELECT station_id, name
FROM buoys.main.stations
WHERE has_met
ORDER BY station_id;
List directory stations flagged has_met that have no row in the latest observations file, with owner and station type
SELECT s.station_id, s.name, s.owner, s.station_type
FROM buoys.main.stations AS s ANTI
JOIN buoys.main.latest_observations() AS o USING (station_id)
WHERE s.has_met
ORDER BY s.station_id;
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20;
| station_id | name | latitude | longitude |
|---|---|---|---|
| 14049 | NULL | -12 | 65 |
| 15001 | Gavotte | -10 | -10 |
| 15006 | Valse | -6 | -10 |
| 15009 | NULL | 0 | -3.051 |
| 22101 | NULL | 37.23 | 126.02 |
latest_observations (station_id := VARCHAR)
Read the latest available standard meteorological observations across NDBC stations
Find the largest reported seas and their wave periods
SELECT station_id, time, wave_height_m, dominant_period_s
FROM buoys.main.latest_observations()
WHERE wave_height_m IS NOT NULL
ORDER BY wave_height_m DESC, station_id
LIMIT 10;
Name the 10 stations reporting the largest significant wave heights in the latest file, with owner, station type and dominant period
SELECT o.station_id, s.name, s.owner, s.station_type, o.time,
o.wave_height_m, o.dominant_period_s
FROM buoys.main.latest_observations() AS o
JOIN buoys.main.stations AS s USING (station_id)
WHERE o.wave_height_m IS NOT NULL
ORDER BY o.wave_height_m DESC, o.station_id
LIMIT 10;
observations (station_id VARCHAR, end_time := VARCHAR, start_time := VARCHAR)
Read the recent standard meteorological history for a buoy or land station
Inspect the latest measured waves and winds off Boston
SELECT time, wind_speed_mps, wave_height_m, dominant_period_s
FROM buoys.main.observations('44013')
WHERE wave_height_m IS NOT NULL
ORDER BY time DESC
LIMIT 24;
Summarise the 7 most recent days (session time zone) at buoy 44013 (daily peak wave height, mean wind speed, report count) with the directory name and coordinates that recent files omit
SELECT s.station_id, s.name, s.latitude, s.longitude,
date_trunc('day', o.time) AS obs_day,
max(o.wave_height_m) AS max_wave_height_m,
avg(o.wind_speed_mps) AS mean_wind_speed_mps, count(*) AS reports
FROM buoys.main.observations('44013') AS o
JOIN buoys.main.stations AS s USING (station_id)
GROUP BY ALL
ORDER BY obs_day DESC
LIMIT 7;
Try these queries
List directory stations flagged has_met that have no row in the latest observations file, with owner and station type
SELECT s.station_id, s.name, s.owner, s.station_type
FROM buoys.main.stations AS s ANTI
JOIN buoys.main.latest_observations() AS o USING (station_id)
WHERE s.has_met
ORDER BY s.station_id
Find the largest reported seas and their wave periods
SELECT station_id, time, wave_height_m, dominant_period_s
FROM buoys.main.latest_observations()
WHERE wave_height_m IS NOT NULL
ORDER BY wave_height_m DESC, station_id
LIMIT 10
Uses latest_observations
Name the 10 stations reporting the largest significant wave heights in the latest file, with owner, station type and dominant period
SELECT o.station_id, s.name, s.owner, s.station_type, o.time,
o.wave_height_m, o.dominant_period_s
FROM buoys.main.latest_observations() AS o
JOIN buoys.main.stations AS s USING (station_id)
WHERE o.wave_height_m IS NOT NULL
ORDER BY o.wave_height_m DESC, o.station_id
LIMIT 10
Inspect the latest measured waves and winds off Boston
SELECT time, wind_speed_mps, wave_height_m, dominant_period_s
FROM buoys.main.observations('44013')
WHERE wave_height_m IS NOT NULL
ORDER BY time DESC
LIMIT 24
Uses observations
Summarise the 7 most recent days (session time zone) at buoy 44013 (daily peak wave height, mean wind speed, report count) with the directory name and coordinates that recent files omit
SELECT s.station_id, s.name, s.latitude, s.longitude,
date_trunc('day', o.time) AS obs_day,
max(o.wave_height_m) AS max_wave_height_m,
avg(o.wind_speed_mps) AS mean_wind_speed_mps, count(*) AS reports
FROM buoys.main.observations('44013') AS o
JOIN buoys.main.stations AS s USING (station_id)
GROUP BY ALL
ORDER BY obs_day DESC
LIMIT 7
Uses observationsstations
NDBC measurement fields, source units and conversion factors
SELECT column_name, source_unit, output_unit, scale
FROM buoys.main.measurements
WHERE column_name = 'visibility_m'
Uses measurements
2 more examples in the Catalog, each listed under the table or function it uses.
Questions it can answer
Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.
- List column_name, source_unit, output_unit and scale for visibility_m in the measurements reference table.
- Using buoys.main.stations, list the first five station IDs and names ordered by station ID.
- Using buoys.main.latest_observations, list the five stations with highest nonmissing wind_speed_mps, ordered by wind_speed_mps descending then station_id.
- Using buoys.main.observations, list the five most recent nonmissing wave heights for station 44013, showing time and wave_height_m.
Buoys is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.
Related workers
Tides
Weather, ocean & earth
NOAA CO-OPS tide and current stations, predictions and observations for marine analysis
NWS
Weather, ocean & earth
Explore US weather alerts, observations, forecast grids, bulletins, and river conditions
Open-Meteo
Weather, ocean & earth
Open-Meteo weather β forecasts, history, air quality, marine, flood and climate data