API & MCP
Everything a person can do on FITS Header & Image Inspector, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminafitsinspector.usefulweb.site/api/v1/calculate– run FITS Header & Image InspectorGET https://luminafitsinspector.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
FITS Header & Image Inspector
Open an astronomical FITS file (also .fits.gz) to list every header card, see the data type, BZERO/BSCALE scaling, row order and Bayer pattern, measure per-plane statistics and download a stretched preview PNG. Reads the primary image or the first image extension; tile-compressed files are explained, not guessed. Lumina Astro Lab uses the same reader.
| Field | Type | Default | Description |
|---|---|---|---|
file (required) | file | — | FITS file (.fits, .fit, .fts or .gz; up to 16 MB) |
stretch | select (auto, asinh, linear) | "auto" | Preview stretch |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://luminafitsinspector.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_fits_inspector - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-fits-inspector
{
"mcpServers": {
"lumina-fits-inspector": { "type": "http", "url": "https://luminafitsinspector.usefulweb.site/mcp" }
}
}