Supernova Cosmology MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Supernova Cosmology MCP Server (Type Ia SNe: Pantheon+, DES-SN5YR, Union3/UNITY1.5, optional DES-Dovekie). Start with list_sn_datasets / describe_sn_dataset; list_sn_skills for recipes (sn-tour first). Conventions: z = zHD (CMB + peculiar-velocity corrected), mu in mag, D_L = (1+z_hel) D_M(z_HD), H0 in km/s/Mpc; the SN absolute magnitude M and H0 are degenerate, so every fit and chi2 marginalises the additive offset analytically with the FULL stat+sys covariance - absolute mu levels and H0 carry no cosmological information here. Pantheon+ fits default to z > 0.01 (Brout+22); 'calibrators' include/exclude/only selects the 77 Cepheid-host rows. Union3 is a 22-node compressed (binned) Hubble diagram, not per-SN. Typical chain: fetch_sn_sample -> plot_hubble_diagram / bin_hubble_diagram -> fit_sn_cosmology (heavy) -> plot_sn_contours -> compare_sn_samples; compute_distance_modulus gives theory curves and compute_sn_chi2 tests a single model. Tools that write files take an output_dir and return ArtifactResult; pass file paths between tools, never raw arrays. Heavy tools (fit_sn_cosmology, compare_sn_samples mode=contours) can run on ALCF/NERSC via the hep-genesis IRI dispatch engine (set_dispatch / export_dispatch_pack); this server holds no facility credentials.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_sn_datasetsA | List the public datasets this server exposes. Call this first. Products are grouped as catalogs (object-level data), summary statistics (measurements with covariance) and published results (chains / parameter constraints, for comparison only). Build analyses on catalogs and summary statistics. Each entry also gives access (bundled vs downloaded on first use) and which tools read it. |
| describe_sn_datasetA | Full description of one dataset: products, units, conventions, URLs, citation. |
| list_sn_skillsA | List this server's skills: named multi-tool recipes. |
| load_sn_skillA | Load the full instructions of one of this server's skills and follow them. |
| fetch_sn_sampleA | Download (first use) and tidy one SN Ia Hubble diagram with its FULL stat+sys covariance. |
| compute_distance_modulusA | Theory distance modulus mu(z) = 5 log10(D_L/10pc) for a given cosmology (w0waCDM, curvature). |
| bin_hubble_diagramA | Compress a Hubble diagram into redshift bins of mu residuals vs a fiducial cosmology. |
| plot_hubble_diagramA | Publication-style Hubble diagram: mu(z) with the fiducial curve and a residual panel. |
| compute_sn_chi2A | Offset-marginalised chi2 of ONE cosmology against a sample (full covariance). Fast. Use to test a specific model (e.g. Planck LCDM Om=0.315, or DESI DR2 w0waCDM) against a SN sample, or to compute Delta-chi2 between two models without a full fit. |
| fit_sn_cosmologyA | Fit flat LCDM / wCDM / w0waCDM to one SN sample on a grid (+ Nelder-Mead refinement). |
| plot_sn_contoursA | Plot 68%/95% credible contours (HPD of the gridded marginal posterior) for one parameter pair. |
| compare_sn_samplesA | Compare SN samples: binned residual Hubble diagrams, or cosmology contours + tension. |
| plot_sn_covarianceA | Image of the stat+sys correlation matrix (rows sorted by redshift). Use to show how strongly SNe are correlated by calibration/systematics (off-diagonal structure is what makes diagonal-error fits wrong) and to sanity-check the matrix. |
| fetch_sn_salt2_paramsA | Fetch per-SN SALT2/SALT3 light-curve fit parameters: x1, c, mB and their errors and covariances, HOST_LOGMASS and bias corrections. |
| standardize_sn_salt2A | Tripp standardisation: build a Hubble diagram from per-SN SALT2 fits (from catalog to Hubble diagram). |
| fetch_sn_lightcurveA | Download and parse raw photometric light-curve data for one SN Ia. |
| plot_sn_lightcurveA | Plot a SN Ia multi-band light curve (per-SN photometry). |
| auth_statusA | Report the facility sign-in state THIS server sees for its own HPC dispatch (ALCF and NERSC). |
| export_dispatch_packA | Hand THIS server's compute kernels to the client for HPC runs. |
| get_dispatchA | Report where THIS server's heavy tools currently execute. |
| set_dispatchA | Set where THIS server's heavy tools execute: 'local' (this machine), 'polaris' (ALCF) or 'perlmutter' (NERSC). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| hpc-dispatch-handoff | Run this server's heavy kernel (sn.kernels.fit_sn_cosmology - w0waCDM / fine wCDM grids on the full SN covariance) on ALCF Polaris or NERSC Perlmutter through the hep-genesis IRI engine - client-side pack export (hosted) or server-side set_dispatch (own machine) |
| reproduce-pantheon-plus-om | Reproduce the Pantheon+ SN-only flat-LCDM Om = 0.334 +- 0.018 (Brout+22 Table 3) and wCDM w = -0.90 +- 0.14, with the checks that matter - z > 0.01 cut, calibrators, full vs diagonal covariance, offset marginalisation |
| salt2-standardization | Build a Hubble diagram from scratch using SALT2 light-curve fit parameters (from catalog to Hubble diagram) - Tripp formula with alpha, beta, gamma, sigma_int fitted by maximum likelihood |
| sn-dark-energy-w0wa | Fit wCDM and w0waCDM to Pantheon+, DES-SN5YR and Union3 separately, overlay their contours, and quantify how far each prefers evolving dark energy and how much the samples disagree (residual shapes, Om shifts, pairwise tension) - with the caveats on shared SNe |
| sn-tour | Five-minute all-local tour of the SN Ia server - list datasets, fetch Pantheon+, plot its Hubble diagram, fit flat LCDM to Pantheon+/DES-SN5YR/Union3, overlay residuals of the three samples, and draw a wCDM contour |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 21 tools
Tools are largely distinct and well-separated by verb (fetch/compute/plot/fit/compare). The only mild overlaps are bin_hubble_diagram vs plot_hubble_diagram (both produce binned residuals) and the two light-curve tools, but descriptions clearly distinguish data-writing from plotting.
Mostly consistent verb_noun with a sn_ namespace (fetch_sn_sample, compute_sn_chi2, plot_sn_contours). The dispatch tools deviate slightly (auth_status uses noun_verb order; get/set/export_dispatch lack the sn_ prefix) but remain snake_case and readable.
21 tools is on the heavy side but each targets a distinct scientific operation (data discovery, fetch, fit, plot, compare, dispatch) that earns its place. Slightly over a comfortable count but well-scoped for a rich cosmology workflow.
Covers the full lifecycle: dataset discovery, fetching, SALT2 standardisation, chi2/fit, plotting, sample comparison, skills, and HPC dispatch. Minor gaps like retrieving dispatched job results are handled indirectly via artifact_dir but not as an explicit tool.