API & MCP
Everything a person can do on Astro Image Stacker (align & stack), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminaimagestacker.usefulweb.site/api/v1/calculate– run Astro Image Stacker (align & stack)GET https://luminaimagestacker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Astro Image Stacker (align & stack)
Upload a ZIP of 2–16 light frames (FITS, PNG, TIFF or JPEG, up to 1 megapixel each), optionally with darks/, flats/ and bias/ folders. The stacker builds calibration masters, detects stars, aligns frames by triangle matching, combines them with mean, median, kappa-sigma or winsorized rejection and returns a linear 32-bit FITS, a stretched 16-bit PNG and a registration report. Lumina Astro Lab runs the same pipeline for larger sessions.
| Field | Type | Default | Description |
|---|---|---|---|
frames (required) | file | — | ZIP of frames (lights; optional darks/, flats/, bias/ folders). Files inside darks/, flats/ or bias/ folders (or FITS IMAGETYP DARK, FLAT, BIAS) are used for calibration; everything else is a light frame. |
method | select (winsorized, kappa-sigma, median, mean) | "winsorized" | Stacking method |
kappa | number | 3 | Rejection kappa (σ) |
register | boolean | true | Align frames on their stars |
model | select (similarity, affine) | "similarity" | Transform |
interpolation | select (bicubic, bilinear) | "bicubic" | Resampling |
weights | select (none, noise, fwhm) | "none" | Frame weights |
gradient | integer | 0 | Background gradient removal (polynomial degree, 0 = off) |
bayer | select (auto, none, RGGB, BGGR, GRBG, GBRG) | "auto" | Bayer pattern of raw one-plane data |
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://luminaimagestacker.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_image_stacker - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-image-stacker
{
"mcpServers": {
"lumina-image-stacker": { "type": "http", "url": "https://luminaimagestacker.usefulweb.site/mcp" }
}
}