Skip to main content
Glama
svo-filters

svo-filters

by pipeworx-io
README.md
# @pipeworx/svo-filters

Astronomical photometric filter profiles from the Spanish Virtual Observatory (SVO) Filter Profile Service: pivot, mean and effective wavelength, widths, magnitude-system zero points and the transmission curve, for facilities such as JWST, HST, Euclid and Gaia.

Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2075+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

## Tools

- `svo_find_filters(facility?, instrument?, band?, wavelength_min?, wavelength_max?, limit?)` -- lists filters for a facility and instrument (or an effective-wavelength range in Angstrom) with pivot, mean, effective, min/max wavelength, effective width, FWHM and zero point. At least one filter is required. Reports matched, returned and not-returned counts.
- `svo_get_filter(filter_id | facility+instrument+band, max_points?)` -- one filter's full profile and its transmission curve. The curve is thinned evenly (endpoints kept) to max_points (default 200, max 2000) and the response states curve_points_total, curve_points_returned and curve_points_omitted.

## Auth

Keyless.

## Data sources

- Spanish Virtual Observatory (SVO), Filter Profile Service -- the VO's repository of filter transmission curves and derived photometric quantities. Every call is a live request; nothing is stored here.

Wavelengths are returned in the unit the service publishes for each filter (reported as `wavelength_unit`, normally Angstrom); no conversion is applied. Some instruments list several versions of the same band as separate systems (for example NIRCam and NIRCam2025); each is its own filter_id with its own values.

The service asks users to acknowledge it in publications:

> This research has made use of the SVO Filter Profile Service "Carlos Rodrigo", funded by MCIN/AEI/10.13039/501100011033/ through grant PID2023-146210NB-I00.

and to cite Rodrigo, Cruz, Aguilar et al. 2024 (A&A 689, A93), Rodrigo, Solano & Bayo 2012 (IVOA Note) and Rodrigo & Solano 2020.

Notes: the service answers VOTable XML with an INFO QUERY_STATUS of OK or ERROR (HTTP 200 either way); the plain-http address redirects to https. The listing query ignores a Band parameter, so band is matched against the filter ID after the listing is read.

## Quick Start

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

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

### What this endpoint actually serves

`tools/list` at `https://gateway.pipeworx.io/svo-filters/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/svo-filters/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/svo-filters/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 2075+ 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/svo_find_filters \
  -H 'Content-Type: application/json' \
  -d '{"facility":"JWST","instrument":"NIRCam","band":"F200W"}'
```

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

## Run it from npm

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

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

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 Svo Filters 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