alma-corpus-mcp
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., "@alma-corpus-mcp What robust value do disk papers use?"
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.
alma-mcp
Two Model Context Protocol servers for ALMA science that you can add to Claude (Desktop or Code), Codex, Cursor or any other MCP client.
alma-corpus-mcp(knowledge): what ALMA papers actually did, with which settings, and where they wrote it. It serves methods cards extracted from refereed ALMA papers, reviewed technique skills and corpus-wide parameter statistics. Ask things like "what robust value do disk papers use?", "which papers fit visibilities with galario?", or "show me the self-calibration recipe of 2018ApJ...869L..41A".alma-analysis-mcp(compute): the analysis steps those papers use most, as tested tools (see Analysis tools).
Every corpus result carries bibcodes and ADS links (https://ui.adsabs.harvard.edu/abs/<bibcode>) so you can check
the source.
What is in the data bundle
Numbers from the bundle built on 2026-11-02 (version 2026.11.02):
count | |
Papers (methods cards) | 3,537 (published 2012 to 2026) |
Analysis steps | 19,482 |
Software mentions | 14,812 |
Numeric results (with units) | 43,069 |
Claim tuples | 11,291 |
ALMA project codes linked | 7,505 |
Processing facts (calibration, imaging, data) | 99,036 |
Parsed settings (robust, cell size, solint, ...) | 12,337 (in 3,109 papers) |
Reviewed technique skills | 38 |
Papers with a CC BY / CC BY-SA / CC0 license | 707 |
Each card records, for one paper: science fields, targets, bands, arrays, resolution and sensitivity, project codes, calibration and imaging settings (pipeline or manual, CASA version, self-calibration, weighting, cell size, deconvolver, continuum subtraction, beam, rms), the ordered analysis steps with software and key parameters, numeric results with units, claims and a reproducibility assessment. Each value carries the location of its evidence in the paper (section, table or figure) and, in the full bundle, a short verbatim quote.
Cards were extracted from the paper full texts by LLMs and every quote was checked against the text. Only papers whose evidence checks passed are included. Treat a card as a pointer into the paper, not as the paper: check a number on ADS before you rely on it.
Bundle sizes: full 279 MB (tarball 79 MB), public 223 MB (tarball 60 MB).
Related MCP server: trove-mcp
Install
With uv, nothing to install first:
uvx --from git+https://github.com/adamzacharia/alma-mcp alma-corpus-mcp download # fetch the data bundle once
uvx --from git+https://github.com/adamzacharia/alma-mcp alma-corpus-mcp info # check: version and countsOr with pip:
pip install git+https://github.com/adamzacharia/alma-mcp # both servers, light core
pip install "alma-mcp[fit] @ git+https://github.com/adamzacharia/alma-mcp" # + emcee for MCMC posteriors
pip install "alma-mcp[all] @ git+https://github.com/adamzacharia/alma-mcp" # + emcee, frank, bettermoments
alma-corpus-mcp downloadFrom a checkout:
git clone https://github.com/adamzacharia/alma-mcp && cd alma-mcp
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[fit,test]"
pytestThe servers need Python 3.10 or newer and use the mcp Python SDK 1.x (FastMCP; the 2.x SDK renamed it, so the
dependency is pinned below 2).
Get the data
The corpus server needs the data bundle (a directory with alma_methods.sqlite, manifest.json and skills/).
alma-corpus-mcp download # into ~/.alma-mcp/data, sha256-checked (60 MB)
alma-corpus-mcp info # version, counts, licensesThe download comes from the latest GitHub release
(alma-mcp-data-public.tar.gz, the public bundle) and is checked against the release's .sha256 file; a mismatch
aborts without touching an existing bundle. --url or ALMA_MCP_DATA_URL selects another tarball.
To use a bundle somewhere else, set ALMA_MCP_DATA to its directory. If no bundle is found the server still
starts, and every tool returns an error that says how to get one.
Maintainers build the bundle from the corpus with:
python scripts/build_bundle.py --corpus /path/to/alma-corpus # full -> dist-data/, public -> dist-data/public/
python scripts/build_bundle.py --corpus /path/to/alma-corpus --public # public variant only--corpus can also come from the ALMA_CORPUS environment variable. The build writes each release tarball and its
.sha256 file to its own folder:
dist-data/release/public/alma-mcp-data-public-<version>.tar.gz: the only one meant for public upload (for example a GitHub release).dist-data/release/full/alma-mcp-data-<version>.tar.gz: private or team use only. It carries verbatim quotes and abstracts from papers under the arXiv non-exclusive license, which may not be redistributed.
At the end the build scans every table and skill file for local user paths, the builder's user name and API-key-like strings, and fails if it finds one.
Tools (alma-corpus)
Tool | What it does |
| BM25 full-text search over titles, abstracts and full cards, with filters |
| The card as markdown; sections |
| Ordered analysis steps with software, key parameters, assumptions, plus stated settings |
| Papers by package, technique or a regex over parameters |
| Values papers used (robust, cell size, self-cal solint and mode, continuum order and domain, deconvolver, band, array, or any processing field), counts, example bibcodes, and how often it is not stated |
| How many papers name a package, versions, trends by year; with a technique or field, the packages most specific to it (ranked by lift over the corpus) |
| The reviewed technique skills |
| Side-by-side table of data, processing and results |
| Bundle version, counts, license notes, how to cite |
Each skill is also an MCP prompt (use-<slug>, with an optional task argument) and a resource
(alma://skills/<slug>); each card is a resource (alma://cards/<bibcode>, URL-encode the & of A&A bibcodes as
%26).
Analysis tools
alma-analysis-mcp (FastMCP server "alma-analysis") wraps the analysis steps ALMA papers use most. Inputs are plain
numbers and lists, or local file paths: FITS cubes, and visibility tables (.npz or .csv with columns u, v, Re, Im, weight; u, v in wavelengths, kilo-wavelengths or metres). Every tool returns result (values with units and
errors), convention (the formula and constants used), warnings, and corpus_practice (skill slugs you can pass to
the corpus server to see the settings published papers chose). The functions are also importable without MCP from
alma_mcp.analysis.<module>.
File access: every input and output path must lie inside one allowed folder, set by ALMA_MCP_WORKDIR (default:
the folder the server was started in). Relative paths are taken from that folder, and paths that resolve outside it
(including through .. or symlinks) are refused. moment_maps and keplerian_mask refuse to replace an existing
file unless you pass overwrite=true. Point ALMA_MCP_WORKDIR at your data folder in the client config, for example
"env": {"ALMA_MCP_WORKDIR": "/path/to/data"}.
Tool | What it does | Convention stated |
| Optically thin dust (and gas) mass from one continuum flux, local or at redshift z | Hildebrand 1983 with the full Planck function; opacity presets (Beckwith 1990 disks, OH94 cores, 0.077 m2/kg galaxies) or custom; per-dust vs per-gas opacity; CMB contrast and heating (da Cunha 2013) |
| SED fit for T_d, beta, M_dust, L_IR (8-1000 um) and L_FIR | Optically thin or general-opacity form (tau = 1 at lambda_0); calibration floor in quadrature; scipy least squares, optional emcee posterior |
| Two-point or multi-point alpha, beta = alpha - 2 and Planck-corrected beta | Per-band calibration error in quadrature (calibration dominates the absolute alpha) |
| 1..N Gaussian components on a spectrum | Integrated flux from the fit and from a channel sum with error rms dv sqrt(N) |
| L'_line (K km/s pc^2) and L_line (Lsun) | Solomon et al. 1997; Solomon and Vanden Bout 2005 |
| Molecular gas mass from L'_CO with r_J1 | alpha_CO with or without helium (1.36) or X_CO; flux-density ratios converted to brightness ratios (divide by J^2) |
| LTE population diagram: T_rot and N_tot | N_u from W (thin, RJ); Q(T) from a user table or linear rotor; optional joint opacity fit (C_tau, Goldsmith and Langer 1999) |
| Column density from one line at an assumed T_ex | Mangum and Shirley 2015 with the J(T_bg) term; optional tau correction from tau or peak T_B |
| Moment 0/1/2, peak, quadratic peak velocity and a moment-0 noise map from a FITS cube; writes FITS | Robust rms from line-free channels; separate clips for moment 0 and moments 1/2 or a user mask; Teague and Foreman-Mackey 2018 quadratic peak |
| Keplerian mask cube for a thin disk on a template cube's grid | PA east of north to the redshifted major axis; beam dilation |
| Keplerian or virial enclosed mass | v / sin i for Keplerian; (5/a) sigma^2 R / G for rho ~ r^-k |
| alpha_vir and boundedness | alpha_5 = 5 sigma^2 R / (G M) (Bertoldi and McKee 1992), alpha_E = alpha_5 / a, R = 1.91 sigma_r option |
| Toomre Q for gas, stars, protoplanetary disks, or two fluids | sigma kappa / (pi G Sigma); 3.36 for stars; Romeo and Wiegert 2011 two-component form |
| Point, Gaussian, elliptical Gaussian, uniform disk or ring fitted directly to visibilities | chi^2 with CASA WEIGHT = 1/sigma^2 per real and per imaginary part; optional weight rescaling from the residual scatter; multi-start least squares, optional emcee |
| Phase shift, deprojection and binned Re/Im vs uv distance (klambda) | q = sqrt(q_maj^2 + (q_min cos i)^2); bin error 1/sqrt(sum w) |
| Non-parametric radial brightness profile | Wraps frank (Jennings et al. 2020) if installed, else returns the install command |
| Jy/beam to K and back, beam solid angle, pixels per beam | Rayleigh-Jeans 1.222e6 form or full Planck inversion |
| Noise from line-free channels of a cube or spectrum | 1.4826 x MAD, with plain std for comparison |
| Maximum recoverable scale and resolution from baselines | 0.6 lambda / B_min (older ALMA Technical Handbook) and 0.983 lambda / L05, 0.574 lambda / L80 (current Handbook) |
| Rough fraction of a smooth source's flux seen on the shortest baseline | Gaussian or uniform-disk visibility at B_min / lambda (a heuristic, not a measurement) |
Optional extras: [fit] enables the emcee posteriors, [uv] enables frank_profile, [cube] adds bettermoments
next to the built-in quadratic peak method (install as "alma-mcp[fit] @ git+https://github.com/adamzacharia/alma-mcp").
Client configuration
Replace the command with the full path to the executable if it is not on your PATH (for a venv on Windows:
C:\path\to\alma-mcp\.venv\Scripts\alma-corpus-mcp.exe). Add "env": {"ALMA_MCP_DATA": "/path/to/bundle"} if the
bundle is not in ~/.alma-mcp/data.
Claude Desktop (claude_desktop_config.json; Settings > Developer > Edit Config):
{
"mcpServers": {
"alma-corpus": { "command": "uvx", "args": ["--from", "git+https://github.com/adamzacharia/alma-mcp", "alma-corpus-mcp"] },
"alma-analysis": { "command": "uvx", "args": ["--from", "alma-mcp[fit] @ git+https://github.com/adamzacharia/alma-mcp", "alma-analysis-mcp"] }
}
}Claude Code:
claude mcp add alma-corpus -- uvx --from git+https://github.com/adamzacharia/alma-mcp alma-corpus-mcp
claude mcp add alma-analysis -- uvx --from "alma-mcp[fit] @ git+https://github.com/adamzacharia/alma-mcp" alma-analysis-mcp
# with a local bundle:
claude mcp add alma-corpus -e ALMA_MCP_DATA=/path/to/dist-data -- alma-corpus-mcpCodex (~/.codex/config.toml):
[mcp_servers.alma-corpus]
command = "uvx"
args = ["--from", "git+https://github.com/adamzacharia/alma-mcp", "alma-corpus-mcp"]
# env = { ALMA_MCP_DATA = "/path/to/dist-data" }
[mcp_servers.alma-analysis]
command = "uvx"
args = ["--from", "alma-mcp[fit] @ git+https://github.com/adamzacharia/alma-mcp", "alma-analysis-mcp"]Cursor (~/.cursor/mcp.json, or .cursor/mcp.json in a project):
{
"mcpServers": {
"alma-corpus": { "command": "uvx", "args": ["--from", "git+https://github.com/adamzacharia/alma-mcp", "alma-corpus-mcp"] }
}
}Hosting one copy for a team
alma-corpus-mcp --http 8765 # binds 127.0.0.1 by defaultThis serves streamable HTTP at http://127.0.0.1:8765/mcp. Clients that support remote servers connect with that
URL (Claude Code: claude mcp add --transport http alma-corpus http://127.0.0.1:8765/mcp). There is no
authentication. To share it, keep the default 127.0.0.1 binding and put an authenticating reverse proxy or a VPN
in front; do not bind --host 0.0.0.0 on a reachable network without one.
Be careful with alma-analysis-mcp --http. The analysis server reads and writes files (FITS cubes, visibility
tables, moment maps, masks) inside ALMA_MCP_WORKDIR, so anyone who can reach its HTTP port can read data files in
that folder and write new files there. Bind it to 127.0.0.1 (the default), set ALMA_MCP_WORKDIR to a folder that
holds only the data you mean to share, and never expose it on 0.0.0.0 without an authenticating proxy.
Companion server: quasar-mcp
quasar-mcp serves about 200 live-data astronomy tools: ALMA/NRAO, MAST, ESO, CADC and HEASARC archives; VO TAP/SIA/cone search; SIMBAD, NED, VizieR and Gaia; Splatalogue; NASA ADS; NOIRLab Data Lab; ZTF/ALeRCE; HiPS cutouts and plotting.
claude mcp add quasar -- uvx --from git+https://github.com/adamzacharia/quasar-mcp quasar-mcpThe alma-corpus server says how published papers did a step; quasar-mcp fetches the archive data and papers to do it. Running all three servers together is the intended setup.
Data licensing
The code in this repository is MIT licensed (see
LICENSE).The cards are structured summaries of each paper's methods. In the full bundle they also contain short verbatim quotes from the papers as evidence, and paper abstracts for search. Those quotes and abstracts remain the copyright of the authors and publishers.
The public bundle (
build_bundle.py --public) keeps every structured value and the location of its evidence but withholds the quote text and the abstract for every paper whose arXiv license is not CC BY, CC BY-SA, CC0 or public domain (most papers use the arXiv non-exclusive license). For those papers it also replaces any structured value that repeats more than 40 characters of a quote word for word with[verbatim text withheld, see paper]. Each paper's license is stored inpapers.licenseso you can filter. Distribute the public bundle (dist-data/release/public/); keep the full one (dist-data/release/full/) for local or team use. Public cards also drop the internal repair log and the text fields of the extraction checks; both bundles keep only the model, text source and extractor version as provenance.
Held-out papers
Papers reserved as held-out benchmark items in the corpus manifest are excluded from every table, card, statistic and skill file in both bundles, so the servers can be used next to benchmark runs without contaminating them.
How to cite
Cite the original papers: every result gives their bibcodes and ADS links. For the corpus and servers, cite this
repository (https://github.com/adamzacharia/alma-mcp) and the bundle version reported by corpus_info().
Available Tools
20 toolsbeam_and_brightnessA
Convert between Jy/beam and brightness temperature (K) for a Gaussian beam, and report beam areas.
Rayleigh-Jeans: T = S c^2 / (2 k nu^2 Omega) = 1.222e6 S(Jy/beam) / (nu_GHz^2 bmaj bmin) with FWHMs in arcsec. planck=True uses the full Planck inversion T = (h nu / k) / ln(1 + 2 h nu^3 / (c^2 I_nu)) (no CMB term). direction: 'jy_to_k' (value in Jy/beam) or 'k_to_jy' (value in K). Limits: T_B equals the gas or dust temperature only for optically thick emission that fills the beam.
Inputs: value (required), freq_ghz (required), bmaj_arcsec (required), bmin_arcsec (required), +3 more.
co_gas_massA
Molecular gas mass from a CO line luminosity.
L'_CO(1-0) = L'_CO(J-[J-1]) / r_J1, where r_J1 is the brightness-temperature (L') ratio. If you only have a flux-density ratio S_J/S_1, set ratio_is_flux_density=True: r_J1 = (S_J/S_1) / J^2 (CO). M_mol = alpha_CO L'_CO(1-0). alpha_CO in Msun (K km/s pc^2)^-1: 4.35 Galactic INCLUDING helium (x1.36; 3.2 without), 0.8 ULIRG/SMG convention (stated with helium in most papers; check). Or give x_co (cm^-2 (K km/s)^-1, e.g. 2e20, H2 only): alpha_H2 = X_CO x 2 m_H / (Msun pc^-2), about 3.2 for 2e20, and x1.36 for M_mol with helium. Returns both M_mol (with He) and M_H2 (without) with the factor used. alpha_co_err is an absolute error on the factor in use: on alpha_co, or on the derived alpha_mol when x_co is given (the default alpha_co is ignored then). Limits: alpha_CO depends on metallicity and environment (factors of several); r_J1 for mid-J lines is a large assumed term; a flux ratio used as r_J1 underestimates the mass by J^2.
Inputs: l_prime_k_kms_pc2 (required), r_j1, x_co, j_upper, +5 more.
deproject_and_binB
Phase-centre shift, deprojection and radial binning of visibilities.
Shift: V' = V exp(+2 pi i (u dRA + v dDec)) moves a source at (dRA, dDec) to the phase centre. Deprojection: q = sqrt(q_maj^2 + (q_min cos i)^2) with q_maj along the PA (east of north) of the major axis. Each bin gives weighted means of Re and Im (weights = CASA WEIGHT) and errors 1/sqrt(sum w). Returns uv distance in klambda. Limits: assumes axisymmetry; Im is near zero only for a centred symmetric source, so residual Im flags offsets or asymmetry.
Inputs: vis_path (required), n_bins, pa_deg, uv_unit, +6 more.
dust_mass_from_fluxA
Optically thin dust mass (Hildebrand 1983): M = S_nu D^2 / (kappa_nu B_nu(T_d)).
At redshift z (freq_ghz is the observed frequency): M = S_obs D_L^2 / ((1 + z) kappa(nu_rest) B(nu_rest, T_d)). The full Planck function is used, never the Rayleigh-Jeans 1/T form. kappa_nu = kappa0 (nu / nu0)^beta per gram of dust unless kappa_includes_gas=True (then the result is a gas+dust mass and the dust mass is that divided by gas_to_dust). cmb: 'none', 'contrast' (divide by 1 - B(T_CMB(z))/B(T_d), da Cunha 2013 eq. 18) or 'heating_and_contrast' (t_dust_k is then the z = 0 temperature and is heated by the CMB first, da Cunha 2013 eq. 12). Never apply heating twice. Limits: optically thick emission makes the mass a lower limit; kappa is uncertain by about 25% to a factor 3-5 and is NOT propagated; interferometers can resolve out extended flux.
Inputs: flux_mjy (required), freq_ghz (required), cmb, beta, +11 more.
dynamical_massA
Enclosed dynamical mass.
kind='keplerian': M = v_rot^2 r / G with v_rot = v_obs / sin(i) when velocity_is_projected (needs inclination). kind='virial': M_vir = (5 / a) sigma^2 R / G, a = (1 - k/3) / (1 - 2k/5) for rho ~ r^-k (k = density_index; k = 0 gives 5 sigma^2 R / G, k = 1 gives 1040 sigma^2 R in Msun, km/s, pc). sigma is the 1D dispersion; set velocity_is_fwhm to pass a FWHM (sigma = FWHM / 2.3548). velocity_is_fwhm applies to kind='virial' only; a Keplerian rotation velocity is never a line width and is used as given. Errors are propagated linearly from velocity, radius and inclination errors. Limits: M scales with distance (r in arcsec); the mass-inclination degeneracy dominates for low i; pressure support and self-gravity are not separated from the central mass.
Inputs: radius (required), velocity_kms (required), kind, radius_err, +8 more.
fit_gaussian_linesA
Fit 1..N Gaussians to a continuum-subtracted spectrum.
x: channel centres (km/s, or GHz/MHz; integrated fluxes are then in flux_unit x x_unit). flux: per channel. rms: per-channel noise; if None it is estimated from the fit residuals (MAD). initial_guesses: optional [[amplitude, centre, sigma], ...]; otherwise peaks are found greedily on the residual spectrum. For each component: amplitude, centre, sigma, FWHM = 2.3548 sigma, integrated flux = sqrt(2 pi) A sigma with its covariance error, and a direct channel sum over centre +/- window_nsigma sigma with error rms dv sqrt(N_chan). Limits: assumes independent channels (Hanning-smoothed or oversampled data have correlated noise, so the errors are too small by up to sqrt(2)); a Gaussian may be a poor shape for double-peaked disk lines.
Inputs: x (required), flux (required), rms, x_unit, +4 more.
fit_modified_blackbodyA
Fit a single-temperature modified blackbody to an SED (observed frequencies in GHz, fluxes in mJy).
form='thin': S = (1+z) M kappa(nu_rest) B(nu_rest,T) / D_L^2. form='general': S = (1+z) A (1 - exp(-tau)) B / D_L^2 with tau = (nu_rest/nu_0)^beta, nu_0 = c/lambda0_um, and A = M kappa(nu_0) (tau = 1 at lambda0 defines the area). The mass in this form depends on that area assumption. Free parameters: log10 M_dust (Msun), T_d (K), beta (unless fixed). Errors in quadrature with flux_cal_frac. L_IR is integrated over rest 8-1000 um (and L_FIR over 42.5-122.5 um) from the intrinsic B(T) model. cmb_contrast subtracts B(T_CMB(z)) (da Cunha 2013 contrast term only; T_d is then the heated temperature). Returns least-squares values with covariance errors; mcmc=True adds an emcee posterior (needs [fit] extra). Limits: one temperature misses cold dust mass; T and beta are degenerate; upper limits are not handled.
Inputs: flux_mjy (required), freq_ghz (required), flux_err_mjy (required), form, +14 more.
fit_uv_modelA
Fit a parametric source model directly to visibilities (u, v, Re, Im, weight) from .npz or .csv.
Models: point, gaussian (circular, FWHM), elliptical_gaussian (FWHM major, axis ratio, PA), uniform_disk (diameter, inclination, PA), ring (radius, Gaussian FWHM width via the thin-ring x Gaussian approximation, valid for width << radius; inclination, PA). All carry flux_jy and offsets dra_arcsec (east), ddec_arcsec. chi^2 = sum w [(Re - Re_m)^2 + (Im - Im_m)^2] with CASA WEIGHT = 1 / sigma^2 per real and per imaginary part. rescale_weights: 'none', or 'residual_scatter' (refit after scaling weights so the residual scatter of sqrt(w) (Re, Im) has unit robust std; pipeline weights are often off by factors 2-4). fixed: parameters to hold, e.g. {"dra_arcsec": 0}. uv_range_klambda: [min, max] selection. Starting offsets come from the peak of a coarse dirty map within search_radius_arcsec of the phase centre (unless given in initial); sizes, PA and inclination are grid-searched before the least-squares fit. Returns least-squares values with covariance errors (statistical only), reduced chi^2 and the weight scale; mcmc=True adds an emcee posterior (uniform priors in bounds; needs the [fit] extra). Limits: flux errors exclude the absolute flux scale (about 5-10%, add in quadrature); sizes near the resolution limit need S/N >= 8-10; the model sign convention matters for offsets (see model_visibilities).
Inputs: vis_path (required), mcmc, seed, fixed, +9 more.
flux_recoveryA
Rough fraction of a smooth source's total flux still seen on the shortest baseline.
gaussian (size = FWHM): V(q)/V(0) = exp(-pi^2 theta^2 q^2 / (4 ln 2)); uniform_disk (size = diameter): 2 J1(pi D q)/(pi D q); q = B_min / lambda. Also gives the source sizes at which this fraction falls to 0.5 and 0.1. This is a note, not a measurement: actual recovery depends on the full uv coverage and on deconvolution, and is usually worse for extended emission. Remedy: add ACA 7 m and total power data.
Inputs: b_min_m (required), freq_ghz (required), source_size_arcsec (required), shape.
frank_profileA
Non-parametric 1D radial brightness profile with frank (Jennings et al. 2020), if installed.
Wraps frank.radial_fitters.FrankFitter with a FixedGeometry (inclination, PA east of north, offsets). alpha (1.05 default, papers use 1.01-1.3) and weights_smooth (1e-4 default, 1e-1 to 1e-4 used) set the Gaussian-process prior; report both. Returns r (arcsec), I (Jy/sr) and 1-sigma errors. Limits: frank assumes axisymmetry; its uncertainties are likely underestimated; the innermost 1-2 beams are least reliable; visibility weights must be correctly scaled first. Without frank installed this returns the install command.
Inputs: pa_deg (required), vis_path (required), inclination_deg (required), alpha, +7 more.
keplerian_maskA
Build a Keplerian mask cube for a thin disk on the grid of a template FITS cube.
Disk coordinates: x_d = dRA sin(PA) + dDec cos(PA), y_d = (-dRA cos(PA) + dDec sin(PA)) / cos(i), r = sqrt(x_d^2 + y_d^2) with dRA (east) and dDec offsets in arcsec from the disk centre (default: the reference pixel of the cube). PA is east of north to the REDSHIFTED major axis. v_los = v_sys + sqrt(G M / r) sin(i) x_d / r. A voxel is in the mask if r_min <= r <= r_max and |v_chan - v_los| <= line_width_kms + dv/2. Each channel is then dilated by an elliptical beam (dilate_beams x beam FWHM). Writes a 0/1 FITS cube (spectral axis increasing) to out_path (default .keplerian_mask.fits next to the cube). Paths must lie inside the allowed folder (env ALMA_MCP_WORKDIR, default the server's working directory); an existing file is refused unless overwrite=true. Limits: thin disk only (no elevated emission surface, so 12CO back sides can fall outside); a mask built from assumed M*, i, PA biases weak-line maps toward that model.
Inputs: pa_deg (required), r_max_au (required), fits_path (required), v_sys_kms (required), +11 more.
largest_angular_scaleA
Maximum recoverable scale (MRS) and angular resolution from baseline lengths.
Gives both conventions: the older ALMA Technical Handbook / Wilner and Welch (1994) form theta_MRS ~ 0.6 lambda / B_min, and the current Handbook form theta_MRS ~ 0.983 lambda / L05 with L05 the 5th percentile baseline; resolution ~ 0.574 lambda / L80 (80th percentile). The Handbook percentiles are over unique antenna pairs. Input: baselines_m (one projected length in metres per antenna pair), or a visibility file (u, v; with antenna id columns ant1/ant2 the percentiles use each pair's mean length, otherwise they are over visibility rows and say so), or just b_min_m (then only the 0.6 form). Limits: these are rules of thumb for smooth structure; flux on scales near the MRS is already partly lost (use flux_recovery for a model estimate) and the actual MRS depends on uv coverage and imaging.
Inputs: freq_ghz (required), b_min_m, uv_unit, vis_path, +1 more.
line_luminosityA
Line luminosity in the Solomon et al. (1997) / Solomon and Vanden Bout (2005) forms.
L'_line = 3.25e7 S dv nu_obs^-2 D_L^2 (1+z)^-3 [K km/s pc^2] (S dv in Jy km/s, nu_obs in GHz, D_L in Mpc) L_line = 1.04e-3 S dv nu_obs D_L^2 = 1.04e-3 S dv nu_rest (1+z)^-1 D_L^2 [Lsun] and L_line = 3.18e-11 nu_rest^3 L'. For a local source give distance_mpc (z may stay 0); for z > 0 leave distance_mpc empty and D_L comes from Planck18 (a given distance wins, with a warning if it disagrees). Lensed sources are divided by magnification. Limits: interferometric fluxes can miss extended emission.
Inputs: rest_freq_ghz (required), integrated_flux_jy_kms (required), redshift, distance_mpc, +3 more.
lte_column_densityA
Total column density from one line in LTE (Mangum and Shirley 2015 form).
N_u = 8 pi k nu^2 W / (h c^3 A_ul) x J(T_ex) / (J(T_ex) - J(T_bg)) / beam_filling, with J(T) = (h nu/k) / (exp(h nu / k T) - 1); N_tot = N_u Q(T_ex) / g_u exp(E_u / T_ex). Optical depth: give tau directly, or peak_tb_k so tau = -ln(1 - T_peak / (f (J(T_ex) - J(T_bg)))); then N is multiplied by C_tau = tau / (1 - exp(-tau)). Q from partition_q, a [[T, Q]] table or a linear rotor B. Limits: T_ex must be assumed (N can change by factors of several over 10-100 K); one line cannot test LTE.
Inputs: g_u (required), a_ul (required), e_u_k (required), t_ex_k (required), +10 more.
moment_mapsA
Moment 0/1/2, peak intensity and a quadratic peak velocity from a FITS cube.
Velocity range v_min_kms..v_max_kms selects channels. rms per channel comes from rms, or the robust (MAD)
rms of line_free_channels ([[start, end], ...], inclusive indices after the cube is sorted by increasing
velocity), or of channels outside the velocity range, or of the whole cube (warned). Masking: an optional
mask cube (non-zero = keep, same shape), else clip_sigma_m0 (None = no clip, the unbiased default for
moment 0) and clip_sigma_m12 (default 3 sigma) for moments 1 and 2.
M0 = sum I dv (BUNIT km/s); noise map = rms dv sqrt(N_chan in mask); M1 = sum I v / sum I;
M2 = sqrt(sum I (v - M1)^2 / sum I); peak = max I; v_peak from a parabola through the peak channel and its
neighbours (Teague and Foreman-Mackey 2018, bettermoments-style). Writes FITS maps ..fits into
out_dir (default: the cube's folder). All paths must lie inside the allowed folder (env ALMA_MCP_WORKDIR,
default the server's working directory); existing map files are refused unless overwrite=true.
Limits: hard clips bias M0 low and M1 toward bright gas; M2 includes beam smearing and channel width, not
only turbulence; one centroid averages multi-component lines; interferometer-only maps miss extended flux.
Inputs: fits_path (required), rms, out_dir, mask_path, +7 more.
rms_from_line_freeA
Noise from line-free channels of a FITS cube (per-channel and median rms, robust MAD and plain std) or of a 1D spectrum. line_free_channels: [[start, end], ...] inclusive channel indices (cube channels are ordered by increasing velocity). Without it, all channels are used (biased high if the line is extended). Limits: primary-beam corrected cubes have noise rising toward the field edge; measure rms before PB correction or in the field centre.
Inputs: spectrum, fits_path, rest_freq_ghz, line_free_channels.
rotational_diagramA
LTE rotational (population) diagram: fit ln(N_u/g_u) = ln(N_tot/Q(T_rot)) - E_u/T_rot.
Each line dict: freq_ghz, a_ul (s^-1), e_u_k (K), g_u, w_k_kms (integrated intensity, K km/s) and w_err_k_kms. Instead of w_k_kms you can give flux_jy_kms with bmaj_arcsec, bmin_arcsec (converted with the RJ 1.222e6 factor). flux_jy_kms must be the per-beam integrated intensity in Jy/beam km/s (moment 0 at the position), not a spatially integrated flux in Jy km/s, unless the source is smaller than the beam. For tau_correction also give fwhm_kms per line. N_u = 8 pi k nu^2 W / (h c^3 A_ul) / beam_filling (thin, RJ, background neglected). Errors on W get flux_cal_frac in quadrature. Q(T) from partition_table (log-log interpolation; include vibrational states) or a linear rotor approximation Q = kT/(hB) + 1/3. tau_correction fits ln N_tot and T_rot jointly with each line's thin-assumption column modelled as N_u (1 - exp(-tau))/tau, tau the Gaussian peak opacity from N_u, T_rot and fwhm_kms (Goldsmith and Langer 1999 C_tau). Limits: needs >= 3 lines over a range of E_u; T_rot is a lower limit to T_kin for subthermal gas; beam filling < 1 and opacity make N a lower limit; blends bias it.
Inputs: lines (required), beam_filling, flux_cal_frac, tau_correction, +2 more.
spectral_indexA
Spectral index alpha (S_nu proportional to nu^alpha) from two or more frequencies.
Two points: alpha = ln(S2/S1) / ln(nu2/nu1), sigma_alpha = sqrt((s1/S1)^2 + (s2/S2)^2) / |ln(nu2/nu1)|. More points: weighted least squares of ln S on ln nu. Each flux error is the statistical error (+) the per-band flux calibration fraction (default 10%) in quadrature, so the absolute alpha error is calibration dominated (about 0.4 for 10% per band on nearby bands). Also returns beta = alpha - 2 (optically thin Rayleigh-Jeans) and, if t_dust_k is given, beta corrected for the Planck curvature: beta = alpha - dlnB/dlnnu. Limits: needs matched uv ranges / beams across bands; optical depth and scattering lower alpha (mimicking grain growth); non-simultaneous data on variable sources bias it.
Inputs: flux_mjy (required), freq_ghz (required), t_dust_k, flux_err_mjy, +1 more.
toomre_qA
Toomre Q stability parameter.
mode='gas': Q = sigma kappa / (pi G Sigma) (gas, Toomre 1964 fluid form). mode='stars': Q = sigma_R kappa / (3.36 G Sigma) (collisionless). mode='keplerian_disk': protoplanetary disk, Q = c_s Omega / (pi G Sigma) with Omega = kappa = sqrt(G M*/r^3) and c_s = sqrt(k T / (mu m_H)), mu default 2.3; needs m_star_msun, radius_au, temperature_k and a surface density. mode='two_fluid': Romeo and Wiegert 2011 with thickness corrections T = 0.8 + 0.7 sigma_z/sigma_R: 1/Q = W/(T_s Q_s) + 1/(T_g Q_g) if T_s Q_s >= T_g Q_g, else 1/(T_s Q_s) + W/(T_g Q_g), W = 2 sigma_s sigma_g / (sigma_s^2 + sigma_g^2), with Q_s = sigma_s kappa/(pi G Sigma_s) as in RW11. kappa: give kappa_kms_kpc, or rotation_velocity_kms and radius_kpc with kappa = epicyclic_a V/R with a = sqrt(2 (1 + dlnV/dlnR)): sqrt(2) for a flat curve, sqrt(3) for V ~ R^0.5, 2 for solid body. Limits: Sigma from dust or CO carries the conversion factor; thick or resolved-out emission makes Sigma a lower limit (Q an upper limit); observed dispersions include beam smearing; Q < 1-2 is not a sharp threshold.
Inputs: mu, mode, radius_au, sigma_kms, +12 more.
virial_parameterA
Virial parameter alpha_vir = 5 sigma^2 R / (G M) (Bertoldi and McKee 1992), called alpha_5 here.
sigma: 1D velocity dispersion (km/s); pass a FWHM with sigma_is_fwhm. R: radius in pc, or give radius_from_sigma_r_pc so R = 1.91 sigma_r (Solomon et al. 1987 convention). For rho ~ r^-k: a = (1 - k/3)/(1 - 2k/5), alpha_E = 2 E_K/|E_G| = alpha_5 / a; equilibrium alpha_5 = a, bound if alpha_5 < 2a (equivalently alpha_E < 2). Never apply a profile-corrected coefficient and then also the 2a threshold. Limits: the mass conversion (alpha_CO, dust T and kappa) dominates; unresolved clouds give limits only; surface pressure and magnetic terms are ignored.
Inputs: mass_msun (required), radius_pc (required), sigma_kms (required), density_index, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools target a clearly distinct quantity (spectral index, brightness temperature, dust mass, line luminosity, moment maps, uv fitting, imaging metrics), and the descriptions explicitly note which related tool to use instead. The main overlaps are dynamical_mass(kind='virial') versus virial_parameter, and lte_column_density versus rotational_diagram — both pairs analyse LTE excitation, but the descriptions differentiate single-line vs multi-line usage well enough.
All names are lowercase snake_case and readable, with descriptive noun phrases plus a few 'fit_*' prefixes and one verb-noun form (deproject_and_bin). The mix of noun-phrase names (line_luminosity) and verb-prefixed names (fit_uv_model) is a minor deviation but not confusing.
20 tools is on the heavy side for a single server and pushes against the practical limit for an agent choosing among them. Each tool does perform a genuinely distinct calculation, so nothing is clearly redundant, but the surface is broad enough that discoverability suffers.
Coverage of the radio/submm analysis domain is strong: SED and line fitting, moment maps, masks, gas/dust/dynamical masses, stability, uv-plane modelling, and array-scale diagnostics. Gaps exist for continuum subtraction, non-LTE/radiative-transfer excitation (e.g. RADEX-style), and explicit cube spectral extraction, which an agent would have to work around.
Maintenance
Related MCP Connectors
Provenance-tagged knowledge graph of AI/ML research: papers, citations, methods, code.
Search scientific papers with structured experimental data from full-text studies
Search 340M+ academic papers — citation graphs, semantic similarity, and AI literature reviews.
Academic paper search, scientific literature, citation analysis, arXiv & semantic related-work.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables researchers to search ArXiv papers, extract key insights (problems, methods, results) from abstracts, and perform ML-powered analysis including topic modeling, trend visualization, and author collaboration networks.-
- AlicenseNot gradedqualityBmaintenanceEnables users to search and analyze academic papers from multiple sources, fetch metadata and full text, and build structured outputs like literature maps and paper comparisons.74 npmMIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables auditing scientific papers for methodological biases such as selection bias and p-hacking, and assessing citation credibility and research consensus.-
- AlicenseAqualityBmaintenanceEnables federated search across open-access scientific literature, legal full-text retrieval with provenance, and full-text search over papers already stored locally.141MIT