@pipeworx/mcp-noaa-coastwatch 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 +21 -0
- package/README.md +155 -0
- package/bin/cli.js +17 -0
- package/package.json +32 -0
- package/server.json +18 -0
- package/src/index.ts +1540 -0
- package/src/server.ts +45 -0
- package/tsconfig.json +18 -0
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,155 @@
|
|
|
1
|
+
# @pipeworx/noaa-coastwatch
|
|
2
|
+
|
|
3
|
+
NOAA CoastWatch's satellite and model ocean record — sea surface temperature,
|
|
4
|
+
chlorophyll-a, winds, currents and the full NDBC moored-buoy archive — read
|
|
5
|
+
live from CoastWatch's two ERDDAP 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
|
+
- `noaa_coastwatch_search_datasets(query, protocol?, node?, limit?)` — full-text search of the
|
|
12
|
+
dataset catalogue. Start here: every other tool takes a `dataset_id` from these results.
|
|
13
|
+
- `noaa_coastwatch_dataset_info(dataset_id, node?)` — variables, units, axes, time coverage,
|
|
14
|
+
licence. Call it before querying data; variable names are case-sensitive.
|
|
15
|
+
- `noaa_coastwatch_tabledap(dataset_id, variables?, constraints?, node?, limit?)` — rows from a
|
|
16
|
+
tabledap dataset, e.g. hourly NDBC buoy observations back to 1970.
|
|
17
|
+
- `noaa_coastwatch_griddap_point(dataset_id, variable, latitude, longitude, time?, depth?, node?)` —
|
|
18
|
+
one gridded value at one time/lat/lon, snapped to the nearest grid cell.
|
|
19
|
+
|
|
20
|
+
## Auth
|
|
21
|
+
|
|
22
|
+
Keyless. Both nodes serve anonymously. A User-Agent is sent on every request.
|
|
23
|
+
|
|
24
|
+
## Data sources
|
|
25
|
+
|
|
26
|
+
- <https://coastwatch.pfeg.noaa.gov/erddap> — `node: "westcoast"` (default). ERD/SWFSC: satellite
|
|
27
|
+
SST, chlorophyll, winds, currents, and `cwwcNDBCMet`, the NDBC buoy archive.
|
|
28
|
+
- <https://coastwatch.noaa.gov/erddap> — `node: "national"`. Operational VIIRS and ABI products.
|
|
29
|
+
|
|
30
|
+
The two hold different datasets. A `dataset_id` from one does not resolve on the other, and the
|
|
31
|
+
error for that is "Currently unknown datasetID=…", which reads as a broken id rather than a
|
|
32
|
+
wrong node.
|
|
33
|
+
|
|
34
|
+
## Traps
|
|
35
|
+
|
|
36
|
+
Protocol-level traps live in `shared/src/erddap.ts` (shared with `ioos-erddap`) and are documented
|
|
37
|
+
in full at the top of that file. The two that bite hardest here:
|
|
38
|
+
|
|
39
|
+
- **ERDDAP reports "nothing found" as HTTP 404 with a plain-text body**, not as an empty table —
|
|
40
|
+
for a search that matches nothing AND for a tabledap query whose constraints exclude every row.
|
|
41
|
+
The body is not JSON, so a naive parse loses the message entirely. That message is worth keeping:
|
|
42
|
+
it names the dataset's real range ("No data matches time>=2050-01-01 because the numeric
|
|
43
|
+
variable's source min=1970-02-26T20:00:00Z, max=2026-09-17T23:35:00Z").
|
|
44
|
+
- **Variable names are case-sensitive and often UPPERCASE.** NDBC water temperature is `WTMP`, air
|
|
45
|
+
temperature `ATMP`, wind speed `WSPD`. A lowercase request is a 400 `Unrecognized variable`,
|
|
46
|
+
which reads as "this buoy does not report water temperature".
|
|
47
|
+
|
|
48
|
+
One more, local to this pack: **the two nodes do not agree on their search columns.** The West
|
|
49
|
+
Coast node returns 17 columns including "Accessible"; the national node returns 15 and omits it.
|
|
50
|
+
Anything that indexed `rows[6]` would read the title on one and the ISO-19115 link on the other —
|
|
51
|
+
a wrong answer, never an error. The shared client indexes by column name.
|
|
52
|
+
|
|
53
|
+
## Quick Start
|
|
54
|
+
|
|
55
|
+
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"mcpServers": {
|
|
60
|
+
"noaa-coastwatch": {
|
|
61
|
+
"url": "https://gateway.pipeworx.io/noaa-coastwatch/mcp"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### What this endpoint actually serves
|
|
68
|
+
|
|
69
|
+
`tools/list` at `https://gateway.pipeworx.io/noaa-coastwatch/mcp` returns the tools in the table
|
|
70
|
+
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
|
|
71
|
+
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
|
|
72
|
+
gateway-wide set. So the tool count you see is larger than this table: a
|
|
73
|
+
single-pack endpoint currently lists roughly 30 shared tools alongside the
|
|
74
|
+
pack's own. The connection's `initialize` response states its exact scope, and
|
|
75
|
+
is the authoritative answer for a given day.
|
|
76
|
+
|
|
77
|
+
This is deliberate, not multiplexing by accident. The meta-tools are what let a
|
|
78
|
+
scoped connection answer a question this pack does not cover — via
|
|
79
|
+
`ask_pipeworx`, which routes across the whole catalog — without you adding a
|
|
80
|
+
second MCP server. There is currently no way to mount a pack endpoint without
|
|
81
|
+
them; if the extra schemas cost you more context than the routing is worth,
|
|
82
|
+
connect to the full gateway once rather than to several pack endpoints.
|
|
83
|
+
|
|
84
|
+
Or connect to the full Pipeworx gateway to get every pack's tools listed
|
|
85
|
+
directly, instead of just this one's:
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"mcpServers": {
|
|
90
|
+
"pipeworx": {
|
|
91
|
+
"url": "https://gateway.pipeworx.io/mcp"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Both URLs reach the same gateway and the same 1679+ data sources. The
|
|
98
|
+
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
|
|
99
|
+
reaches all of them from either one.
|
|
100
|
+
|
|
101
|
+
## No MCP client? Call it over HTTP
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
curl -X POST https://gateway.pipeworx.io/v1/tools/noaa_coastwatch_search_datasets \
|
|
105
|
+
-H 'Content-Type: application/json' \
|
|
106
|
+
-d '{"query":"sea surface temperature","protocol":"griddap","limit":5}'
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/noaa_coastwatch_search_datasets`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
|
|
110
|
+
|
|
111
|
+
## Standalone (no gateway account)
|
|
112
|
+
|
|
113
|
+
This package also runs as a local stdio MCP server — no Pipeworx account, no
|
|
114
|
+
gateway round-trip:
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"mcpServers": {
|
|
119
|
+
"noaa-coastwatch": {
|
|
120
|
+
"command": "npx",
|
|
121
|
+
"args": ["-y", "@pipeworx/mcp-noaa-coastwatch"]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Or run it directly to confirm it starts:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
npx -y @pipeworx/mcp-noaa-coastwatch
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
|
|
134
|
+
for **only** this pack's tools — none of the shared meta-tools the gateway
|
|
135
|
+
connection above adds. Same source, same tools, no ask_pipeworx routing.
|
|
136
|
+
|
|
137
|
+
## Using with ask_pipeworx
|
|
138
|
+
|
|
139
|
+
Instead of calling tools directly, you can ask questions in plain English —
|
|
140
|
+
this works on the pack endpoint above as well as on the full gateway:
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
ask_pipeworx({ question: "your question about Noaa Coastwatch data" })
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
The gateway picks the right tool and fills the arguments automatically.
|
|
147
|
+
|
|
148
|
+
## More
|
|
149
|
+
|
|
150
|
+
- [Docs and guides](https://pipeworx.io/docs)
|
|
151
|
+
- [pipeworx.io](https://pipeworx.io)
|
|
152
|
+
|
|
153
|
+
## License
|
|
154
|
+
|
|
155
|
+
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-noaa-coastwatch",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "NOAA CoastWatch — satellite and model ocean data via ERDDAP.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"mcp-noaa-coastwatch": "bin/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "noaa-coastwatch"],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/pipeworx-io/mcp-noaa-coastwatch.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-860af7c0fb6975134e3e81cda141959871360b2fce74dc87102519cb831b867c",
|
|
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/noaa-coastwatch",
|
|
4
|
+
"title": "Noaa Coastwatch",
|
|
5
|
+
"description": "NOAA CoastWatch — satellite and model ocean data via ERDDAP.",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"websiteUrl": "https://pipeworx.io/packs/noaa-coastwatch",
|
|
8
|
+
"repository": {
|
|
9
|
+
"url": "https://github.com/pipeworx-io/mcp-noaa-coastwatch",
|
|
10
|
+
"source": "github"
|
|
11
|
+
},
|
|
12
|
+
"remotes": [
|
|
13
|
+
{
|
|
14
|
+
"type": "streamable-http",
|
|
15
|
+
"url": "https://gateway.pipeworx.io/noaa-coastwatch/mcp"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|