@pipeworx/mcp-ioos-erddap 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mojibake Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,161 @@
1
+ # @pipeworx/ioos-erddap
2
+
3
+ US Integrated Ocean Observing System data — buoys, tide gauges, gliders, HF radar currents, water
4
+ quality and regional ocean model grids — read live from the IOOS regional associations' ERDDAP
5
+ servers.
6
+
7
+ Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1679+ live data sources.
8
+
9
+ ## Tools
10
+
11
+ - `ioos_erddap_search_datasets(query, protocol?, node?, limit?)` — full-text search of one node's
12
+ catalogue. Start here: every other tool takes a `dataset_id` from these results.
13
+ - `ioos_erddap_dataset_info(dataset_id, node?)` — variables, units, axes, time coverage, licence.
14
+ - `ioos_erddap_tabledap(dataset_id, variables?, constraints?, node?, limit?)` — station and glider
15
+ timeseries rows.
16
+ - `ioos_erddap_griddap_point(dataset_id, variable, latitude, longitude, time?, depth?, node?)` —
17
+ one gridded value from a regional model or radar grid.
18
+
19
+ ## Auth
20
+
21
+ Keyless. Every node serves anonymously.
22
+
23
+ ## Data sources
24
+
25
+ Six nodes, selected with `node`. A dataset lives on exactly one of them, so getting `node` right is
26
+ the first thing a caller has to do; a wrong id raises an error that lists them all.
27
+
28
+ | `node` | Server | Coverage |
29
+ |---|---|---|
30
+ | `national` | <https://erddap.ioos.us/erddap> | IOOS-wide inventories, asset and metric datasets |
31
+ | `sensors` (default) | <https://erddap.sensors.ioos.us/erddap> | the national in-situ sensor network |
32
+ | `gliders` | <https://gliders.ioos.us/erddap> | every US underwater glider deployment |
33
+ | `pacioos` | <https://pae-paha.pacioos.hawaii.edu/erddap> | Hawaii and the Pacific Islands; ROMS and WRF grids |
34
+ | `secoora` | <https://erddap.secoora.org/erddap> | the US Southeast |
35
+ | `gcoos` | <https://erddap.gcoos.org/erddap> | the Gulf of Mexico |
36
+
37
+ **NERACOOS and NANOOS are deliberately absent.** `https://www.neracoos.org/erddap` and
38
+ `https://data.nanoos.org/erddap` both answer 301 from our egress (measured 2026-09-17). Adding them
39
+ without resolving where they redirect would ship two node ids that fail for every caller. If you
40
+ add them, verify a live search first, not just a reachable root.
41
+
42
+ ## Traps
43
+
44
+ Protocol-level traps live in `shared/src/erddap.ts` (shared with `noaa-coastwatch`) and are
45
+ documented in full at the top of that file. Two matter most here:
46
+
47
+ - **`erddap.ioos.us` has almost no griddap.** The national node is inventories and metrics; the
48
+ gridded fields are on the regional nodes. A `griddap_point` call against `national` is not a bug.
49
+ - **PacIOOS ROMS grids are 4-D: time, depth, latitude, longitude.** `depth` is required on those,
50
+ and omitting it is an axis error rather than a defaulted surface reading. `depth: 0.25` is the
51
+ shallowest level of `roms_hiig`.
52
+
53
+ And the one this pack found the hard way: **ERDDAP's first `&`-segment is positional** — the server
54
+ reads it as the variable list whatever it contains. Asking for every column (no `variables`) while
55
+ dropping the now-empty first segment slides the row-cap expression into the variable slot and the
56
+ server answers `Unrecognized variable="orderByLimit("5")"`, which reads as a broken dataset rather
57
+ than a malformed URL. The shared client keeps the empty segment.
58
+
59
+ ## Quick Start
60
+
61
+ Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
62
+
63
+ ```json
64
+ {
65
+ "mcpServers": {
66
+ "ioos-erddap": {
67
+ "url": "https://gateway.pipeworx.io/ioos-erddap/mcp"
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ ### What this endpoint actually serves
74
+
75
+ `tools/list` at `https://gateway.pipeworx.io/ioos-erddap/mcp` returns the tools in the table
76
+ above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
77
+ `discover_tools`, `search_within`, `remember`/`recall` and the rest of the
78
+ gateway-wide set. So the tool count you see is larger than this table: a
79
+ single-pack endpoint currently lists roughly 30 shared tools alongside the
80
+ pack's own. The connection's `initialize` response states its exact scope, and
81
+ is the authoritative answer for a given day.
82
+
83
+ This is deliberate, not multiplexing by accident. The meta-tools are what let a
84
+ scoped connection answer a question this pack does not cover — via
85
+ `ask_pipeworx`, which routes across the whole catalog — without you adding a
86
+ second MCP server. There is currently no way to mount a pack endpoint without
87
+ them; if the extra schemas cost you more context than the routing is worth,
88
+ connect to the full gateway once rather than to several pack endpoints.
89
+
90
+ Or connect to the full Pipeworx gateway to get every pack's tools listed
91
+ directly, instead of just this one's:
92
+
93
+ ```json
94
+ {
95
+ "mcpServers": {
96
+ "pipeworx": {
97
+ "url": "https://gateway.pipeworx.io/mcp"
98
+ }
99
+ }
100
+ }
101
+ ```
102
+
103
+ Both URLs reach the same gateway and the same 1679+ data sources. The
104
+ only difference is which pack's tools are listed **directly**; `ask_pipeworx`
105
+ reaches all of them from either one.
106
+
107
+ ## No MCP client? Call it over HTTP
108
+
109
+ ```bash
110
+ curl -X POST https://gateway.pipeworx.io/v1/tools/ioos_erddap_search_datasets \
111
+ -H 'Content-Type: application/json' \
112
+ -d '{"query":"water temperature","node":"sensors","limit":5}'
113
+ ```
114
+
115
+ No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/ioos_erddap_search_datasets`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
116
+
117
+ ## Standalone (no gateway account)
118
+
119
+ This package also runs as a local stdio MCP server — no Pipeworx account, no
120
+ gateway round-trip:
121
+
122
+ ```json
123
+ {
124
+ "mcpServers": {
125
+ "ioos-erddap": {
126
+ "command": "npx",
127
+ "args": ["-y", "@pipeworx/mcp-ioos-erddap"]
128
+ }
129
+ }
130
+ }
131
+ ```
132
+
133
+ Or run it directly to confirm it starts:
134
+
135
+ ```bash
136
+ npx -y @pipeworx/mcp-ioos-erddap
137
+ ```
138
+
139
+ It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
140
+ for **only** this pack's tools — none of the shared meta-tools the gateway
141
+ connection above adds. Same source, same tools, no ask_pipeworx routing.
142
+
143
+ ## Using with ask_pipeworx
144
+
145
+ Instead of calling tools directly, you can ask questions in plain English —
146
+ this works on the pack endpoint above as well as on the full gateway:
147
+
148
+ ```
149
+ ask_pipeworx({ question: "your question about Ioos Erddap data" })
150
+ ```
151
+
152
+ The gateway picks the right tool and fills the arguments automatically.
153
+
154
+ ## More
155
+
156
+ - [Docs and guides](https://pipeworx.io/docs)
157
+ - [pipeworx.io](https://pipeworx.io)
158
+
159
+ ## License
160
+
161
+ MIT
package/bin/cli.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ //
3
+ // Entry point for `npx @pipeworx/mcp-<slug>`.
4
+ //
5
+ // Packs ship as raw TypeScript (no build step — see publish-pack.sh for why:
6
+ // tsx sidesteps every extensionless-import / bare-JSON-import edge case a
7
+ // per-pack tsc build would have to solve one pack at a time). This file
8
+ // registers tsx's ESM loader programmatically, then hands off to src/server.ts,
9
+ // which wraps the pack's {tools, callTool} export in a stdio MCP server.
10
+ //
11
+ // Copied verbatim into every published pack repo by scripts/publish-pack.sh —
12
+ // edit this file, not a per-pack copy.
13
+ import { register } from 'tsx/esm/api';
14
+
15
+ register();
16
+
17
+ await import('../src/server.ts');
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@pipeworx/mcp-ioos-erddap",
3
+ "version": "0.1.0",
4
+ "description": "US IOOS — regional ocean observing data via ERDDAP.",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "bin": {
9
+ "mcp-ioos-erddap": "bin/cli.js"
10
+ },
11
+ "keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "ioos-erddap"],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/pipeworx-io/mcp-ioos-erddap.git"
16
+ },
17
+ "scripts": {
18
+ "typecheck": "tsc --noEmit"
19
+ },
20
+ "dependencies": {
21
+ "@modelcontextprotocol/sdk": "^1.30.0",
22
+ "tsx": "^4.19.0"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.9.3",
26
+ "@cloudflare/workers-types": "^4.20260405.1"
27
+ },
28
+ "pipeworx": {
29
+ "sourceHash": "v1-41f644663584e8384b3455ef80ea09c5fb1a152571ad0f4584819d349e9be871",
30
+ "sourceCommit": "b0fb3c31386cf0256dcf1e2f1b3440435a87ec35"
31
+ }
32
+ }
package/server.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.pipeworx-io/ioos-erddap",
4
+ "title": "Ioos Erddap",
5
+ "description": "US IOOS — regional ocean observing data via ERDDAP.",
6
+ "version": "0.1.0",
7
+ "websiteUrl": "https://pipeworx.io/packs/ioos-erddap",
8
+ "repository": {
9
+ "url": "https://github.com/pipeworx-io/mcp-ioos-erddap",
10
+ "source": "github"
11
+ },
12
+ "remotes": [
13
+ {
14
+ "type": "streamable-http",
15
+ "url": "https://gateway.pipeworx.io/ioos-erddap/mcp"
16
+ }
17
+ ]
18
+ }