clusters-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| COSMO_MCP_DATA | No | Override the download cache directory (default is ~/.cache/cosmo-mcp/clusters-mcp-server/). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Galaxy Cluster Catalogs MCP Server: Planck PSZ2, SPT-SZ 2500d (Bocquet+19), SPTpol 100d, SPT-ECS, SPT-3G Main 5yr, ACT DR6, eROSITA eRASS1 (primary + cosmology) and DES Y6 WaZP (optical; richness NGALS instead of mass, M500=NaN, extra columns richness/z_spec/in_cosmo; footprint 4544.7 deg^2 via compute_wazp_footprint_area) cluster catalogues. Start with list_clusters_datasets; list_clusters_skills for recipes (clusters-tour first). fetch_cluster_catalog downloads a catalogue on first use and writes a harmonised CSV (name, ra, dec [deg J2000], z, z_err, M500 [1e14 Msun, M500c], M500_err_lo/hi, snr, survey, dataset; NaN = missing); every other catalogue tool takes those CSV paths (or a dataset key for the full catalogue). Units/conventions: M500 is each survey's own estimate - SPT (xi-mass, WL+X-ray calibrated, h70), ACT DR6 (WL-consistent normalisation, Eddington-corrected), Planck PSZ2 MSZ (hydrostatic Y-M, expect 20% lower, 1-b0.8), eRASS1 (count-rate-mass, native 1e13 Msun converted). snr is survey-native (xi / SNR / EXT_LIKE / WaZP wavelet SNR) and NOT comparable across surveys. fetch_cluster_wl_profiles returns the REAL measured Megacam shear profiles of 19 SPT clusters (Dietrich+19) with source N(z); get masses with fit_cluster_wl_mass, never by fitting the gt means. predict_cluster_counts_lcdm (heavy) uses Tinker+08 x Eisenstein-Hu P(k) with no selection function: use mass thresholds where samples are ~complete. Tools that write files take an output_dir and return ArtifactResult; pass file paths between tools, never raw arrays. Heavy tools 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_clusters_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_clusters_datasetA | Full description of one dataset: products, units, conventions, URLs, citation. |
| list_clusters_skillsA | List this server's skills: named multi-tool recipes. |
| load_clusters_skillA | Load the full instructions of one of this server's skills and follow them. |
| fetch_cluster_catalogA | Download one cluster catalogue (first use only) and write a harmonised CSV with cuts applied. |
| describe_catalog_columnsA | Explain a catalogue's columns: harmonised mapping, units, mass convention, and native FITS columns. |
| plot_mass_redshiftA | Overlay several cluster catalogues in the M500-z plane (the standard selection-function picture). Use to show how SZ (flat-in-M at high z) and X-ray (flux-limited, low z, low mass) selections differ. Only entries with both z and M500 are drawn. |
| plot_cluster_sky_mapA | Mollweide sky map of one or more cluster catalogues (RA increasing to the left, astronomical convention). Use to show footprints and overlaps (e.g. SPT south, ACT equatorial strip, eRASS1 western Galactic half, Planck all-sky) before a crossmatch. |
| compute_cluster_countsA | Histogram cluster counts: N(z) per redshift bin and cumulative N(>M500) (or N(>richness)), per catalogue. |
| compute_wazp_footprint_areaA | Effective survey area [deg^2] of the DES Y6 WaZP footprint, total and as a function of redshift. |
| crossmatch_catalogsA | Positionally (+ redshift) cross-match two cluster catalogues; write the matched pairs and mass ratios. |
| compare_mass_calibrationA | Mass-calibration comparison for matched clusters: M500_b vs M500_a scatter, ratio vs z and vs mass. |
| fetch_cluster_selection_functionA | Fetch the survey selection function / completeness characterisation for a cluster survey. |
| fetch_cluster_wl_profilesA | Fetch the measured Megacam weak-lensing tangential shear profiles of 19 SPT-SZ clusters (Dietrich+19). |
| fit_cluster_wl_massA | NFW weak-lensing mass of SPT-SZ Megacam clusters from their measured g_t(r) profiles. |
| plot_completenessA | Plot the survey completeness / selection function. |
| predict_cluster_counts_lcdmA | Predict LCDM cluster counts dN/dz above a mass threshold (Tinker+08 HMF x Eisenstein-Hu P(k)) and compare with a catalogue. |
| plot_counts_vs_predictionA | Plot observed cluster N(z) (Poisson errors) against LCDM predictions, with a residual panel and the sigma8 profile if scanned. |
| 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 |
|---|---|
| cluster-counts-vs-lcdm | Compare observed cluster N(z) above a mass threshold with LCDM predictions (Tinker+08 HMF x Eisenstein-Hu P(k)) for SPT-SZ, ACT DR6, SPT-3G, PSZ2 or eRASS1 (DES Y6 WaZP richness counts per deg^2 as the observed side only) - obs/pred ratio, per-bin pulls, and a Poisson sigma8 profile; with the completeness/mass-calibration caveats |
| clusters-tour | Five-minute all-local tour of the cluster server - fetch catalogues (SZ, X-ray, DES Y6 WaZP optical), M500-z overlay, sky map, counts, crossmatch, mass calibration, selection functions, WL profiles + NFW WL masses, LCDM prediction; one call per tool family with expected numbers |
| hpc-dispatch-handoff | Run this server's heavy kernels (likelihood scans, fits, large downloads + reductions) on ALCF Polaris or NERSC Perlmutter through the hep-genesis IRI engine - client-side pack export (hosted) or server-side set_dispatch (own machine) |
| multi-survey-mass-redshift | Reproduce the classic SZ/X-ray cluster mass-redshift comparison figure (SPT Bleem+15 Fig. 6 style) - SPT-SZ, SPTpol, SPT-3G, ACT DR6, Planck PSZ2 and eRASS1 on one M500-z plane, with completeness-threshold annotations and the mass-convention caveats |
| selection-function-forward-model | Recipe to extract selection functions and use them alongside LCDM counts - Planck PSZ2 completeness to show how the mass limit varies with z and theta, ACT tile noise, SPT field corrections, plus WL shear profiles |
| sz-xray-crossmatch | Cross-match SZ catalogues (ACT DR6, SPT-SZ, SPT-3G, Planck PSZ2) with each other and with eROSITA eRASS1, and quantify relative mass calibration (median M500 ratio, log scatter, z trend, slope) - recovers the Planck hydrostatic bias 1-b~0.8 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 22 tools
Each tool targets a distinct resource or analysis step: catalog fetching, column description, sky/mass plots, counts, crossmatching, WL fitting, selection functions, predictions, and dispatch control. Fetch-like tools are clearly separated by data type (catalog, selection function, WL profiles), and observed vs predicted counts are explicitly distinguished.
Most names follow a predictable verb_noun snake_case pattern (fetch_cluster_catalog, compute_cluster_counts, plot_mass_redshift, crossmatch_catalogs). Minor deviations exist: auth_status is noun-only, and cluster/clusters pluralization varies, but the convention remains readable and consistent overall.
With 22 tools, the surface is above the ideal 3-15 range and feels heavy, though most tools have a clear specialized role. The inclusion of skills, dispatch, and many analysis/plotting tools makes it broad but borderline for a single MCP server.
The server covers the core cluster-catalog lifecycle: list/describe datasets, fetch catalogs, inspect columns, plot, count, crossmatch, compare mass calibration, fit WL masses, model selection functions, and predict LCDM counts. Minor gaps remain, such as no obvious tool for reading summary statistics or published chains despite listing them as dataset products.