CMB Data 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.
CMB Data MCP Server, organised by kind of data. Maps: Planck PR3 SMICA/Commander maps + masks (fetch_cmb_map, downloaded once and downgraded to nside<=1024; plot_cmb_map); measure_cmb_power_spectrum turns a map into YOUR OWN TT power spectrum (use the hm1 x hm2 cross). Summary statistics: public CMB bandpowers with covariances (Planck PR3, ACT DR6, SPT-3G D1/2018) and lensing bandpowers. Published results (COMPARISON ONLY, never a measurement or prior): published chains (Planck 2018, ACT DR6), the Planck best-fit theory, and compare_with_published_constraints. Build analyses on maps and bandpowers and compare with published results last. Start with list_cmb_datasets; list_cmb_skills for recipes (cmb-tour first, planck-map-to-power-spectrum for map -> power spectrum). Units: D_ell = ell(ell+1)C_ell/2pi in muK^2; lensing [L(L+1)]^2 C_L^phiphi/2pi. Tools that write files take an output_dir and return ArtifactResult; pass file paths between tools, never raw arrays. chi2 from Planck/SPT plotting products is diagonal-only (indicative); ACT DR6 and lensing use full covariances. Heavy tools (fetch_cmb_map, measure_cmb_power_spectrum, analyze_chain, compute_lcdm_theory_spectrum) 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_cmb_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_cmb_datasetB | Full description of one dataset: products, units, conventions, URLs, citation. |
| list_cmb_skillsA | List this server's skills: named multi-tool recipes. |
| load_cmb_skillA | Load the full instructions of one of this server's skills and follow them. |
| fetch_cmb_spectrumA | Fetch one public CMB bandpower spectrum and write it as a tidy CSV. |
| plot_cmb_spectraA | Plot D_ell bandpowers with error bars for one or more experiments + LCDM + residuals. |
| compute_cmb_residualsA | chi2 of one experiment's bandpowers against an LCDM theory spectrum, plus residuals. |
| compute_lcdm_theory_spectrumA | Compute a lensed LCDM TT/TE/EE/BB + lensing-potential theory spectrum to CSV. |
| plot_lensing_spectrumA | Plot CMB lensing-potential bandpowers [L(L+1)]^2 C_L^phiphi/2pi for Planck/ACT/SPT. |
| fetch_cmb_mapA | Fetch a Planck PR3 component-separated CMB MAP and its common mask, downgraded. |
| measure_cmb_power_spectrumA | Measure the CMB TT (optionally EE/TE/BB) power spectrum FROM A MAP (from map to power spectrum). |
| plot_cmb_mapA | Mollweide (Galactic) PNG of a HEALPix CMB map, with the mask greyed out. |
| fetch_cmb_chainA | [Published result - for comparison only] Published result, comparison only: download and extract ONE published MCMC chain (never the 11 GB grid). Returns the getdist chain root path (pass to analyze_chain / plot_triangle) and the parameter list. First call downloads into the cache; later calls are instant. |
| analyze_chainA | [Published result - for comparison only] Published result, comparison only: getdist marginal statistics (mean, std, 68/95%) of a PUBLISHED chain. Use only to compare against your own fit of maps / bandpowers; never feed these numbers into a fit as a measurement or prior. Heavy: downloads/extracts the chain on first use. With set_dispatch('polaris'| 'perlmutter') it runs as one facility job (the node downloads the archive itself). Sanity check (Planck 2018): H0 67.36+-0.54, omegam 0.3153+-0.0073, sigma8 0.8111+-0.0060. |
| plot_triangleA | [Published result - for comparison only] Published result, comparison only: getdist triangle plot (68/95% contours) of published CMB chains. Overlay planck_pr3 with act_dr6_lite to show the Planck-vs-ACT LCDM agreement. |
| compare_with_published_constraintsA | [Published result - for comparison only] Published result, comparison only: whisker plot of PUBLISHED H0, S8, Omega_m, n_s (sigma8) constraints. Every entry is a published inference product (chains or tables) across CMB experiments and late-time probes - for the final "compare with published" step of an analysis. Every point is either a getdist analysis of a public chain (marked 'chain') or a published table value with its citation. Reports the Gaussian tension of each entry vs the reference: (x - x_ref) / sqrt(s^2 + s_ref^2) - e.g. SH0ES vs Planck H0 ~ 4.9 sigma. |
| 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 |
|---|---|
| cmb-experiment-comparison | Planck vs ACT DR6 vs SPT-3G - overlay TT/TE/EE bandpowers (Camphuis+25 Fig. 1), chi2 of each experiment against one common LCDM theory to ell=6600, lensing amplitudes, and a chain-level triangle comparison |
| cmb-tour | Tour of the CMB Data server - Planck PR3 component-separated CMB map -> your own TT spectrum and released Planck/ACT/SPT bandpowers -> your own LCDM fit/chi2 -> compare with published chains (published results, for comparison only), with the numbers to expect |
| h0-s8-tension-whisker | Published results (for comparison only) - build the H0 / S8 / Omega_m / n_s whisker plot across Planck, ACT, SPT-3G, CMB-SPA, SH0ES, DES Y3 and KiDS from public chains + cited tables and quantify the Hubble and S8 tensions in sigma |
| hpc-dispatch-handoff | Run this server's heavy kernels (Planck map download + downgrade, pseudo-C_ell from maps, getdist chain analysis with on-node chain download, camb LCDM spectra) on ALCF Polaris or NERSC Perlmutter through the hep-genesis IRI engine - client-side pack export (hosted) or server-side set_dispatch (own machine) |
| planck-map-to-power-spectrum | From map to power spectrum - download the Planck PR3 SMICA-noSZ half-mission maps + common mask, downgrade to nside 1024, plot the map, and measure the TT power spectrum yourself (pseudo-C_ell hm1 x hm2 cross, beam/pixel-window/fsky corrected), then validate it against the released Planck bandpowers |
| reproduce-planck-tt-spectrum | Reproduce the Planck 2018 TT (and TE/EE) power-spectrum figure with the best-fit LCDM curve and residual panel, check chi2 against the PLA best fit, and optionally recompute the theory with camb |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 20 tools
Tools are mostly cleanly separated by resource and action (fetch map vs fetch spectrum vs fetch chain; plot_map vs plot_spectra vs plot_lensing_spectrum). The closest pair is fetch_cmb_spectrum vs measure_cmb_power_spectrum (released bandpowers vs own pseudo-C_ell from a map), but the descriptions explicitly distinguish them. Infrastructure tools (dispatch, skills, discovery) are clearly bounded.
Every tool follows snake_case verb_noun with a coherent cmb/lensing domain namespace (fetch_cmb_map, plot_cmb_spectra, compute_lcdm_theory_spectrum, compute_cmb_residuals). Even the infrastructure tools follow the same pattern (get_dispatch, set_dispatch, auth_status, export_dispatch_pack). No mixed conventions.
20 tools is on the heavy side but the domain genuinely spans maps, spectra, lensing, chains, theory, and HPC dispatch, so most tools earn their place. A few infrastructure tools (list/load skills, export_dispatch_pack) inflate the count beyond core science operations. Slightly over-scoped but defensible.
Covers the full analysis lifecycle: discovery, map fetch, measured/released spectra, theory, residuals, lensing, chain analysis, triangle plots, and published-constraint comparison. Minor gaps exist (no explicit parameter-fitting tool despite references to fitting, no cache/artifact management or deletion), but agents can work around them with external code.