Galaxy Cluster Catalogs MCP Server
This server lets you discover, download, harmonize, plot, cross-match, and statistically analyze public galaxy-cluster catalogs and supporting selection/weak-lensing data, with optional HPC dispatch.
Browse datasets and load multi-tool skills/recipes.
Fetch catalogs and apply redshift, mass, SNR, and missing-value cuts into harmonized CSVs.
Describe catalog columns, units, mass conventions, and native FITS columns.
Plot M500–z overlays, sky maps, and completeness/noise/field-area diagnostics.
Compute N(z) and N(>M) cluster counts with Poisson errors and area normalization.
Cross-match catalogs by angular separation and redshift, then compare mass calibration and scatter.
Fetch selection functions for Planck, ACT, and SPT, plus SPT-SZ weak-lensing shear profiles.
Predict ΛCDM cluster counts, compare with observed counts, and optionally scan σ8.
Manage HPC dispatch for heavy tools across local, Polaris, or Perlmutter, including auth status and kernel export.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Galaxy Cluster Catalogs MCP Server Crossmatch ACT DR6 with Planck PSZ2 at 3 arcmin and compare their mass calibrations."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
clusters-mcp-server
Galaxy Cluster Catalogs MCP Server. An MCP server for public SZ, X-ray and optical galaxy-cluster catalogues:
Planck PSZ2
SPT-SZ 2500d (Bocquet+19), SPTpol 100d, SPT-ECS and SPT-3G Main 5yr
ACT DR6
eROSITA eRASS1, primary and cosmology samples
DES Y6 WaZP optical clusters (Benoist+25), with the HEALPix footprint for areas
Each catalogue downloads on demand and is harmonised to one schema.
Data products
dataset | Catalogs | Summary statistics | Published results |
psz2 | SZ cluster catalog (1653) | Completeness C(Y500, θ500) for MMF3/union masks | — |
spt_sz | SZ cluster catalog (677) | Field areas + noise corrections (19 fields); Megacam (19, + source N(z)) / HST (13) WL shear profiles; NFW WL masses | σ8(Ωm/0.3)^0.2 = 0.766±0.025 (Bocquet+19) |
sptpol_100d | SZ cluster catalog (89) | — | — |
spt_ecs | SZ cluster catalog (470) | — | — |
spt3g_5yr | SZ cluster catalog (8892) | — | — |
act_dr6 | SZ cluster catalog (10040) | Q(θ500, z) per tile; tile RMS noise levels (293 tiles) | — |
erass1 | X-ray cluster catalog (12247) | — | — |
erass1_cosmo | Cosmology subsample (5259) | — | S8 = 0.86±0.01 (Ghirardini+24) |
des_y6_wazp | Optical cluster catalog (416947, NGALS ≥ 5; members 13.1M on request) | HEALPix footprint (Nside 4096): 4544.7 deg², area(z) from the ZMAX depth map | — |
All URLs were verified by download on 2026-11-04.
Build analyses on catalogs and summary statistics; published results are for comparison only.
The cache lives in
~/.cache/cosmo-mcp/clusters-mcp-server/; override it with$COSMO_MCP_DATA.
Selection functions:
Planck PSZ2: survey completeness C(Y500, θ500) at various SNR cuts, range-fetched from the 403 MB IRSA FITS (~120 KB tail).
ACT DR6: Q-filter mismatch per tile (QFit.fits, 293 tiles) + tile noise levels (RMSTab), streamed from the 7.4 GB nemo tarball (~2 MB extracted).
SPT-SZ: field-by-field areas and noise correction factors (Bocquet+19), hard-coded (no download).
eRASS1: selection function not publicly released (Clerc+24 describes the method but data files are not downloadable).
Weak-lensing shear profiles:
SPT-SZ: the 19 measured Megacam reduced-shear profiles of Dietrich+19 (8 bins, 0.75–2.5 Mpc) and their source N(z), from the official SPT-SZ likelihood release (Bocquet+19).
fetch_cluster_wl_profileswrites one CSV per cluster (r_deg, gt, gt_err, kbin, n_src, r_mpc), the N(z) CSVs, and a README JSON.kbin: the 4th file column is undocumented, and the release'slensing.pynever reads it. It is roughly constant per cluster (0.76–0.89) and anti-correlates with seeing (r = −0.92). Do not rescale g_t with it.fit_cluster_wl_mass: NFW fit followinglensing.py(Σ_crit from ⟨β⟩, reduced shear with the ⟨β²⟩ correction). It reproduces the Dietrich+19 M500 of all 5 clusters the paper shows individually: ratios 0.99–1.005 with DK15 c(M).
DES Y6 WaZP (optical):
Columns: ZPHOT, NGALS richness (the mass proxy), SNR, IN_COSMO and cover fraction. M500 is NaN.
Footprint: HEALPix Nside 4096 NESTED. Effective area Σ DETFRAC = 4544.7 deg², which matches the 4,545 in the paper.
Area where richness is complete (ZMAX > z): 4420 deg² at z = 0.7, 3176 at z = 0.8, 93 at z = 0.9.
|
|
|
|
Related MCP server: esa-gaia
Harmonised schema
Every catalogue is written with these columns:
name, ra, dec [deg]
z, z_err
M500 [1e14 Msun, M500c], M500_err_lo, M500_err_hi
snr: the survey-native statistic
survey, dataset
optical catalogues (des_y6_wazp) append: richness, richness_err (NGALS), z_spec, in_cosmo, cover_frac
Masses come from each survey's own scaling relation. Run describe_catalog_columns to see which.
WaZP has no mass. Mass tools handle it as follows:
plot_mass_redshiftskips it.predict_cluster_counts_lcdmrefuses it.Counts use
richness_min/ N(>richness) instead.
Tools
tool | kind | what |
| meta | discovery |
| catalog | download + harmonise + z/mass/SNR (or richness / in_cosmo) cuts → CSV; WaZP members on request |
| catalog | mapping, units, mass conventions, native FITS columns |
| catalog | multi-survey M500–z overlay |
| catalog | Mollweide map (equatorial/galactic), coloured by survey/z/M500/richness |
| catalog | KD-tree angular + Δz/(1+z) one-to-one match → matched CSV |
| summary_statistic | N(z) and N(>M) (N(>richness) for WaZP) with Poisson errors, raw and per deg² (WaZP: depth-limited area per z bin) |
| summary_statistic | DES Y6 WaZP effective area and area(ZMAX > z) from the HEALPix footprint |
| summary_statistic | M500_b vs M500_a: median ratio ± bootstrap, ln scatter |
| summary_statistic | survey completeness (Planck/ACT/SPT) |
| summary_statistic | measured Megacam g_t(r) profiles + source N(z) of 19 SPT-SZ clusters (Dietrich+19), with README of columns |
| summary_statistic | NFW reduced-shear fit → M500c/M200c ± 68% per cluster; validated against Dietrich+19 |
| summary_statistic | completeness heatmap (Planck) / noise histogram (ACT) / field bar (SPT) |
| summary_statistic | Tinker+08 × EH98 dN/dz above M for a sky area |
| summary_statistic | observed N(z) vs LCDM with pulls and σ8 profile |
| — | HPC dispatch (generic) |
Skills
clusters-tourmulti-survey-mass-redshiftsz-xray-crossmatchselection-function-forward-modelcluster-counts-vs-lcdmhpc-dispatch-handoff
Key numbers (verified)
Planck PSZ2 completeness: 12 SNR thresholds (4.5–10), 32 θ500 bins (0.9–35′), 30 Y500 bins (1.1e-4–0.072 arcmin²). At q≥6 the survey is >80% complete above Y500 ≈ 4e-4 arcmin² for θ500 > 2′.
ACT DR6 selection function: 293 tiles, total 12590 deg², median y0 RMS = 1.07e-5.
SPT-SZ WL: 19 Megacam profiles, each 8 bins over 0.85–2.41 Mpc; 13 HST clusters are also in the release.
WL masses (DK15 c(M), M500c in 1e14 Msun), ours vs Dietrich+19:
SPT-CLJ0516-5430: 7.66 vs 7.70
SPT-CLJ2022-6323: 3.74 vs 3.78
SPT-CLJ2030-5638: 2.74 vs 2.73
SPT-CLJ2032-5627: 9.13 vs 9.08
SPT-CLJ2135-5726: 7.59 vs 7.65
DES Y6 WaZP: 416947 clusters. 301406 are IN_COSMO, and 33304 of those have NGALS ≥ 25. Area 4544.7 deg².
ACT DR6 × PSZ2 (3′): 386 matches. M_Planck/M_ACT = 0.80 ± 0.02, ln-scatter 0.34.
SPT-SZ, M500 > 5e14, z > 0.25: LCDM (σ8=0.8) predicts 138 vs 105 observed → best σ8 ≈ 0.78.
Install / run
uv venv --python 3.12 .venv && uv pip install --python .venv/bin/python -e ".[dev]"
MPLBACKEND=Agg .venv/bin/python -m pytest -q # includes network tests
.venv/bin/python tests/smoke_server.py
./run_server.sh # stdio; or: .venv/bin/python -m mcp_server --transport http --port 8014Caveats
predict_cluster_counts_lcdmhas no selection function, mass–observable scatter or Eddington bias. It is a sanity check, not a cosmology constraint.Cross-survey masses use different calibrations, with 5–25% offsets.
eRASS1 selection function is not publicly released.
WaZP has no mass-richness relation here, so richness counts cannot go into the M500-based LCDM prediction.
WL masses from
fit_cluster_wl_massare raw NFW fits. They do not include the simulation-calibrated Megacam bias (0.938 ± 0.028) or LSS scatter.
Available Tools
20 toolsauth_statusA
Report the facility sign-in state THIS server sees for its own HPC dispatch (ALCF and NERSC).
Call this before set_dispatch to a remote site, or when one of this
server's remote calls fails with an auth error. It says nothing about
the facility servers' own tokens - ask those servers directly. Sign-in
happens outside this server (hep-genesis auth CLIs or the desktop app's
HPC panel); tokens are re-read on every call.
Inputs: no named parameters. Returns: result
compare_mass_calibrationA
Mass-calibration comparison for matched clusters: M500_b vs M500_a scatter, ratio vs z and vs mass.
Use after crossmatch_catalogs to quantify relative mass bias between surveys
(e.g. Planck's hydrostatic 1-b ~0.8 vs WL-calibrated SPT/ACT, or SZ vs eROSITA).
Reports median ratio with bootstrap error, log-normal scatter, per-z-bin ratios
and (optionally) a power-law slope.
Inputs: output_dir (required), matched_csv (required), z_edges, fit_slope. Returns: Uniform result contract returned by every tool.
compute_cluster_countsA
Histogram cluster counts: N(z) per redshift bin and cumulative N(>M500), per catalogue.
Use to compare survey depths or as the observed side of predict_cluster_counts_lcdm.
Writes counts_nz.csv and counts_nm.csv (+ a PNG with both panels).
Inputs: catalogs (required), output_dir (required), m_grid, z_edges, +2 more. Returns: Uniform result contract returned by every tool.
crossmatch_catalogsA
Positionally (+ redshift) cross-match two cluster catalogues; write the matched pairs and mass ratios.
Use for SZ-vs-X-ray (or SZ-vs-SZ) comparisons. Nearest neighbour in A for each B
entry within the radius, made one-to-one (each A keeps its closest B). Typical
radii: 2' for SZ-SZ (ACT/SPT beams ~1'), 3' for Planck (5' beam, larger
positional error) or SZ-vs-eROSITA. Output CSV has *_a / *_b columns,
sep_arcmin, dz and mass_ratio = M500_b / M500_a.
Inputs: catalog_a (required), catalog_b (required), output_dir (required), max_dz, +1 more. Returns: Uniform result contract returned by every tool.
describe_catalog_columnsA
Explain a catalogue's columns: harmonised mapping, units, mass convention, and native FITS columns.
Use before comparing masses across surveys - each survey's M500 comes from
a different scaling relation, and ``snr`` means different things.
Inputs: dataset (required), show_native. Returns: Uniform result contract returned by every tool.
describe_clusters_datasetA
Full description of one dataset: products, units, conventions, URLs, citation.
Inputs: name (required). Returns: Uniform result contract returned by every tool.
export_dispatch_packA
Hand THIS server's compute kernels to the client for HPC runs.
Returns the ``tools/`` package as in-band text files plus a manifest of
kernel entry points (dotted function path, args shape, node-side
pip_deps, walltime hint). The CLIENT - which holds the facility tokens,
Globus endpoint, project and workdir - stages and submits the kernels
with ITS OWN credentials (e.g. the hep-genesis facility servers'
run_pack_kernel tool). Nothing credential-shaped or project-shaped is
needed on, or returned by, this server.
Clients that recognise the ``dispatch_pack`` key should save the files
locally and NOT echo their contents into the conversation.
Inputs: no named parameters.
fetch_cluster_catalogA
Download one cluster catalogue (first use only) and write a harmonised CSV with cuts applied.
Use this first: every other catalogue tool takes the CSV path it writes.
Columns: name, ra, dec [deg], z, z_err, M500 [1e14 Msun, M500c], M500_err_lo,
M500_err_hi, snr (survey-native statistic), survey, dataset. NaN = missing.
Inputs: dataset (required), output_dir (required), z_max, z_min, +5 more. Returns: Uniform result contract returned by every tool.
fetch_cluster_selection_functionA
Fetch the survey selection function / completeness characterisation for a cluster survey.
Use to get the detection probability as a function of the survey observable
(Planck: completeness C(Y500, theta500); ACT: Q-filter + RMS noise per tile;
SPT: field areas + noise correction factors). These are the inputs needed to
forward-model cluster counts via predict_cluster_counts_lcdm.
Planck data: range-fetches only the ~120 KB tail of the 403 MB FITS file.
ACT data: streams the 7.4 GB tarball but extracts only the ~2 MB selFn tables.
SPT data: hard-coded field parameters from Bocquet+19 (no download needed).
Inputs: output_dir (required), dataset, variant. Returns: Uniform result contract returned by every tool.
fetch_cluster_wl_profilesA
Fetch published weak-lensing tangential shear profiles for clusters with WL follow-up.
Currently available: SPT-SZ Megacam shear profiles (20 clusters, Dietrich+19).
Each profile gives g_t(r) with errors as a CSV file per cluster.
These are real summary-statistic data products that can be used for mass calibration.
Inputs: output_dir (required), dataset. Returns: Uniform result contract returned by every tool.
get_dispatchA
Report where THIS server's heavy tools currently execute.
Inputs: no named parameters. Returns: result
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.
Inputs: kind. Returns: Uniform result contract returned by every tool.
list_clusters_skillsA
List this server's skills: named multi-tool recipes.
A skill is procedural know-how - which tools to chain, in which order,
with what parameters, and how to sanity-check and report. When a task
matches one, load it with the load-skill tool and follow it.
Inputs: no named parameters. Returns: Uniform result contract returned by every tool.
load_clusters_skillA
Load the full instructions of one of this server's skills and follow them.
Inputs: name (required). Returns: Uniform result contract returned by every tool.
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.
Inputs: catalogs (required), output_dir (required), stem, coords, +2 more. Returns: Uniform result contract returned by every tool.
plot_completenessA
Plot the survey completeness / selection function.
Planck: heatmap of completeness C(Y500, theta500) at a chosen SNR cut.
ACT DR6: histogram of tile y0 RMS noise levels.
SPT-SZ: bar chart of field areas and noise correction factors.
Inputs: output_dir (required), dataset, snr_cut, variant. Returns: Uniform result contract returned by every tool.
plot_counts_vs_predictionA
Plot observed cluster N(z) (Poisson errors) against LCDM predictions, with a residual panel and the sigma8 profile if scanned.
Use after predict_cluster_counts_lcdm.
Inputs: output_dir (required), prediction_json (required), stem, per_unit_z. Returns: Uniform result contract returned by every tool.
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.
Inputs: catalogs (required), output_dir (required), stem, z_max, +2 more. Returns: Uniform result contract returned by every tool.
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.
Use to ask "is this survey's N(z) above M consistent with LCDM / which sigma8?".
No selection function, mass scatter or Eddington bias is modelled: pick a
threshold where the catalogue is ~complete (SPT-SZ ~5e14 at z>0.25, ACT DR6
SNR>5 ~5e14, PSZ2 ~6e14 at z~0.2) and treat ratios at the 10-20% level as the
systematics floor (the mass-calibration uncertainty dominates). Heavy:
runs as an HPC kernel when dispatch is active.
Inputs: output_dir (required), h, ns, Ob0, +8 more. Returns: Uniform result contract returned by every tool.
set_dispatchA
Set where THIS server's heavy tools execute: 'local' (this machine), 'polaris' (ALCF) or 'perlmutter' (NERSC).
Affects only this server's heavy (dispatchable) tools - never other
servers' dispatch state. Remote sites run each heavy call as one facility
job (staging + queue + walltime: minutes, not seconds) and need facility
sign-in - check with auth_status first. Light tools (listing, plotting,
small reads) always run locally. Optional artifact_dir sets where
produced files are fetched back to. Returns the active configuration.
Inputs: site (required), artifact_dir. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
The tools separate cleanly along a resource+action grid: fetch/describe/list for data access, plot_* for visuals, compute_/crossmatch_/compare_ for analysis, and a distinct dispatch/a HPC quartet. The only friction points are predict_cluster_counts_lcdm vs compute_cluster_counts vs plot_counts_vs_prediction, which sit close together but are distinguished by their descriptions (theory prediction, observed histogram, overlay plot).
Nearly all names are snake_case verb_noun (fetch_cluster_catalog, plot_mass_redshift, crossmatch_catalogs), which is easy to scan. Minor deviations: auth_status is noun-first, get_dispatch/set_dispatch use a bare domain-less noun, and the skill tools inconsistently insert the server prefix (list_clusters_skills vs load_clusters_skill).
Twenty tools is at the heavy end, but the surface covers genuinely different workflows (data discovery, catalogue I/O, plotting, statistical comparison, theory prediction, and HPC dispatch) so few tools feel redundant. The four dispatch/auth tools are infrastructure rather than science, which pushes the count slightly over what the core domain needs.
The catalogue side is well covered end-to-end: list, describe, fetch, column semantics, selection functions, crossmatching, mass-calibration comparison, counts, and LCDM prediction. However, the server advertises summary statistics and published chains in list_clusters_datasets, yet no tool actually loads or reads those products, and there is no query/filter or per-object lookup tool beyond re-fetching with cuts.
Maintenance
Related MCP Connectors
arXiv, PubMed, Crossref and OpenAlex scholarly metadata.
ESA Gaia MCP — the Gaia star catalogue, queried over the ESA TAP service.
Observational astronomy in one place
VizieR MCP — CDS astronomical catalogue access.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceExposes HACC cosmological hydrodynamic simulation emulators (GSMF, HMF, cluster profiles, P(k) suppression) as MCP tools, allowing LLM agents to predict observables and generate comparison plots.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying the ESA Gaia star catalogue (DR3) for astrometric and photometric data via cone searches, source ID lookups, and arbitrary ADQL queries over the TAP service.55 npmMIT
- AlicenseAqualityBmaintenanceEnables fetching and analyzing public Type Ia supernova Hubble diagrams, including covariance-aware binning, plotting, chi-squared evaluation, and flat LCDM/wCDM/w0waCDM fits with contour comparisons and optional HPC dispatch.211MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying and analyzing spectroscopic galaxy survey data, including BAO/RSD compilations with cosmological fits and plots, SDSS SkyServer catalog queries and galaxy properties, and GSWLC-A2 catalog access and crossmatching.1MIT



