API & MCP
Everything a person can do on Star Detector & FWHM Meter, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminastardetector.usefulweb.site/api/v1/calculate– run Star Detector & FWHM MeterGET https://luminastardetector.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Star Detector & FWHM Meter
Upload a FITS, PNG, TIFF or JPEG frame to detect stars above a noise threshold, measure sub-pixel centroids, full width at half maximum, half-flux radius and roundness, and download a star list CSV and an overlay PNG. Useful for focusing, judging seeing and tracking, and checking frames before stacking. Lumina Astro Lab runs the same detector.
| Field | Type | Default | Description |
|---|---|---|---|
image (required) | file | — | Image (FITS, PNG, TIFF or JPEG; up to 16 MB and 1 megapixel) |
threshold | number | 5 | Detection threshold (σ above background) |
minArea | integer | 3 | Minimum star area (pixels) |
maxStars | integer | 300 | Stars to list (brightest first) |
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://luminastardetector.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_star_detector - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-star-detector
{
"mcpServers": {
"lumina-star-detector": { "type": "http", "url": "https://luminastardetector.usefulweb.site/mcp" }
}
}