nasa-tempo
by pipeworx-io
README.md
# @pipeworx/nasa-tempo
Hourly air-quality columns over North America from NASA's TEMPO instrument: tropospheric NO2, formaldehyde (HCHO) and total ozone (O3), on a 0.02 degree grid. A value at a latitude/longitude and hour, or a small bounding-box mean, with the quality flag, units, granule id, dataset version and fetch time.
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
- `tempo_find_granule(product, lat, lon, time, include_nrt?)` - the scan covering a place and hour, with its time span, dataset version and release (quality-controlled or near-real-time). Keyless.
- `tempo_point_value(product, lat, lon, time, include_nrt?)` - the column value at a point, with units and quality. Needs an Earthdata token.
- `tempo_bbox_mean(product, min_lat, min_lon, max_lat, max_lon, time, include_nrt?)` - the mean over a box of at most 1 degree a side, with valid and read cell counts. Needs an Earthdata token.
`product` is `no2`, `hcho` or `o3`. Outside North America, or when no scan exists for the hour, a tool returns `count: 0` with the reason.
## Auth
Discovery is keyless. Values need a NASA Earthdata Login bearer token: the platform key `PLATFORM_EARTHDATA_TOKEN` when one is stored, otherwise the caller's own token as `_apiKey` (urs.earthdata.nasa.gov, Generate Token). The Earthdata account must have approved the TEMPO data application; without that the answer is `auth_failed`. With no token a value tool answers `needs_key` and still returns the granule it found.
**Status:** the platform token was stored 2026-12-02 and expires 2027-01-31 19:12Z; the renewal is tracked in `scripts/vendors/intent.json` under `nasa-tempo`. A caller token passed as `_apiKey` takes precedence.
## Data sources
- NASA Atmospheric Science Data Center, TEMPO gridded Level 3 NO2, HCHO and total-ozone products. NASA data is US public domain.
- NASA Common Metadata Repository, granule index.
## Notes
- Values are read with a synchronous point subset, so a call is one round trip and there is no job to poll.
- Every result carries granule id, dataset version, release and fetch time. TEMPO scans in daylight only and reaches the archive a few hours behind; `include_nrt` (default true) falls back to the faster near-real-time release when the quality-controlled granule is not out yet.
- Quality: NO2 and HCHO carry the product's main data-quality flag (0 good, 1 suspect, 2 bad). The ozone product has no per-cell flag; its quality field is the number of samples averaged into the cell. `tempo_bbox_mean` excludes fill values only and does not filter by flag.
- The value path is UNVERIFIED against a live token: it was written from the documented request shape and exercised against a stub. First real call after the token is stored must confirm the response layout.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"nasa-tempo": {
"url": "https://gateway.pipeworx.io/nasa-tempo/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/nasa-tempo/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/nasa-tempo/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/nasa-tempo/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/tempo_find_granule \
-H 'Content-Type: application/json' \
-d '{"product":"no2","lat":34.05,"lon":-118.24,"time":"2026-12-02T15:00:00Z"}'
```
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/tempo_find_granule`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-nasa-tempo` 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/nasa-tempo/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"nasa-tempo": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-nasa-tempo"]
}
}
}
```
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 Nasa Tempo 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