ornl-modis-subsets
by pipeworx-io
README.md
# @pipeworx/ornl-modis-subsets
NASA land-product time series at a point: MODIS and VIIRS vegetation indices (NDVI, EVI), land surface temperature, leaf area index, burned area and more, with scale factors applied and fill values removed.
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2088+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
## Tools
- `modis_list_products(query?)` — products that can be subset (code, description, frequency, pixel size).
- `modis_list_bands(product)` — bands of a product with units, valid range, fill value, scale factor, add offset, and a flag for quality bands.
- `modis_list_dates(product, latitude, longitude, start_date?, end_date?, limit?)` — dates with data at a site, as MODIS dates and calendar dates, plus the first and last available.
- `modis_point_subset(product, band, latitude, longitude, start_date, end_date, buffer_km?, include_qc?, qc_bands?, max_dates?)` — values per date. `value = raw x scale_factor + add_offset`; fill and out-of-range pixels are excluded. A buffer of 1 to 10 km returns mean, min, max over valid pixels.
## Limits
The service accepts at most 10 dates per request. `modis_point_subset` pages the window in chunks of 10 and returns at most `max_dates` dates per call (default 20, cap 50). When the window holds more, `truncated` is true and `next_start_date` is where to continue. Buffer is capped at 10 km. A window with no data returns `empty_reason` with the available date range.
## Auth
Keyless.
## Data sources
- NASA ORNL DAAC, MODIS and VIIRS Global Subsets (also the Daymet, SMAP, GEDI and ECOSTRESS products it lists).
Dates are 8-day or 16-day composites depending on the product, so a 3-month window holds about 6 dates for MOD13Q1. QC values are raw integers for the centre pixel; decode them with the product user guide.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"ornl-modis-subsets": {
"url": "https://gateway.pipeworx.io/ornl-modis-subsets/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/ornl-modis-subsets/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.
Add an option to the same URL:
- `https://gateway.pipeworx.io/ornl-modis-subsets/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/ornl-modis-subsets/mcp?meta=0` lists this pack's tools alone.
Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 2088+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).
## No MCP client? Call it over HTTP
```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/modis_list_products \
-H 'Content-Type: application/json' \
-d '{"query":"NDVI"}'
```
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/modis_list_products`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-ornl-modis-subsets` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/ornl-modis-subsets/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"ornl-modis-subsets": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-ornl-modis-subsets"]
}
}
}
```
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.
## Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:
```
ask_pipeworx({ question: "your question about Ornl Modis Subsets data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues