Skip to main content
Glama
ASF Search

ASF Search

by pipeworx-io
README.md
# @pipeworx/asf-search

SAR scene search over the Alaska Satellite Facility DAAC archive: Sentinel-1, ALOS PALSAR, UAVSAR and other missions, with granule metadata, footprints and InSAR baseline stacks.

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

- `asf_search_scenes(lat, lon | bbox | wkt, platform, dataset, start, end, beam_mode, processing_level, flight_direction, max_results)` -- scenes matching the filters, newest first, with granule name, dates, orbit, path/frame, flight direction, footprint and download URL. An empty result says why.
- `asf_get_product(granule_name)` -- full detail for any product family (Sentinel-1, ALOS, UAVSAR, NISAR, OPERA-S1, ARIA S1 GUNW interferograms), including every additional file URL, all labelled `requires Earthdata Login`.
- `asf_get_scene(granule_name)` -- one scene by exact granule name.
- `asf_baseline_stack(reference, max_results)` -- acquisitions in the same stack as a Sentinel-1 SLC reference, with perpendicular and temporal baselines, closest in time first.

## Auth

Keyless. Metadata search needs no login. Downloading the products requires a NASA Earthdata Login; every scene carries `download_url` and `download_access: "requires Earthdata Login"`, and the pack never fetches the files.

## Data sources

- NASA Alaska Satellite Facility DAAC, SAR scene catalog and baseline service.

Use `dataset` for NISAR, `OPERA-S1` and `ARIA S1 GUNW` products. Files are never fetched or proxied. Notes: a granule lookup rejects `maxResults`, so `asf_get_scene` sends none; the baseline service ignores `maxResults`, so the pack caps the stack itself. The baseline reference must exist as an SLC granule or the service answers "Reference scene not found".

## Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

```json
{
  "mcpServers": {
    "asf-search": {
      "url": "https://gateway.pipeworx.io/asf-search/mcp"
    }
  }
}
```

### What this endpoint actually serves

`tools/list` at `https://gateway.pipeworx.io/asf-search/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/asf-search/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/asf-search/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/asf_search_scenes \
  -H 'Content-Type: application/json' \
  -d '{"lat":47.61,"lon":-122.33,"platform":"Sentinel-1","start":"2026-11-02","processing_level":"GRD_HD","max_results":3}'
```

No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/asf_search_scenes`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.

## Run it from npm

`@pipeworx/mcp-asf-search` 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/asf-search/mcp` endpoint shown above. It needs network access;
there is no offline mode.

```json
{
  "mcpServers": {
    "asf-search": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-asf-search"]
    }
  }
}
```

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 Asf Search 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