Skip to main content
Use Stormglass through Corsair: one client, typed API calls, local DB sync. The plugin covers the whole Stormglass v2 API: hourly weather and marine forecasts, historical weather back to 2014, tide extremes and hourly sea levels, tide stations, astronomy, solar, bio and elevation. Get a key from the Stormglass dashboard; it is sent as the Authorization header with no Bearer prefix. Every call counts against the account’s daily request quota (10 a day on the free plan); each response’s quota shows the limit and how many requests were used today. A 402 means the quota is used up. Hourly ops return values (one number per parameter: the first source you asked for, else Stormglass’s own sg blend) and sources (every source’s value). Times are UTC; start and end take UNIX seconds or ISO strings such as 2024-01-01 or 2024-01-01T06, and one call covers at most 10 days. Tide data is astronomical tide from the nearest tide station; station in the result names it and its distance. Coordinates are not written to events. What you get:
  • 10 typed API operations
  • 4 synced entities (extremes, points, quotas, stations) for fast .search() / .list()

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

Get the wind and wave forecast
Write No write-style endpoint inferred; pick any operation from the API reference. See the full list on the API page.

Query synced data

Synced entities support tenant.stormglass.db.<entity>.search() and .list(): extremes, points, quotas, stations. See Database for filters and operators.

What’s next

API reference

Every stormglass.api.* operation with input and output types.

Database

Synced entities, search filters, and operators.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.