UXarray MCP Server
An MCP server that lets an AI client inspect, compute on, subset, remap and plot unstructured climate-model meshes with UXarray — on your laptop, or on an HPC system through Globus Compute when the data lives there.
Thirteen tools. Every result carries its provenance and says what it did not verify; a computation whose preconditions fail (an area with no sphere radius, a vorticity without velocity units, a subset that selects nothing) is refused with a repair instead of returned as a number.
Install
Python 3.12 or newer.
uv tool install uxarray-mcp # or: pip install uxarray-mcp
uxarray-mcp doctor # local check, no HPC needed
Connect Claude Desktop:
uxarray-mcp install-claude --config-path "~/Library/Application Support/Claude/claude_desktop_config.json"
or add to any MCP client config:
{"mcpServers": {"uxarray": {"command": "uxarray-mcp", "args": ["serve"]}}}
Then ask: "Inspect /data/mpas/x1.655362.grid.nc, compute its face areas in
square metres, and plot the mesh over the North Atlantic."
Tools
| Tool | Does |
|---|---|
list_datasets |
Files in a directory with format, role, n_face, size class — read from headers, no mesh opened |
inspect_dataset |
Topology, sphere coverage, variables, validation, plot cost hint. Start here; first_look=True adds areas, a zonal mean and two plots. |
compute |
area, zonal_mean, zonal_anomaly, azimuthal_mean, temporal_mean, anomaly, ensemble_mean, ensemble_spread |
vector_calc |
gradient, curl, divergence with physical-units guard |
compare |
Area-weighted bias / rmse / pattern correlation between two files |
remap |
Mesh-to-mesh, to lon/lat, or node↔face↔edge; UXarray or YAC (conservative) backends |
subset |
bbox, polygon, cross_section, circle, nearest → result handle |
plot |
mesh, field, profile PNGs; meshes above 200k faces are rasterized |
export |
Result or variable to NetCDF / CSV, with a fidelity report |
session |
Register a dataset once, reuse a handle |
endpoint |
Status, worker probe and validation of Globus Compute endpoints |
get_operation |
Collect a remote result that outlived its call |
guide |
Step-by-step plans: first_look, vorticity, cyclone_structure, eddy_activity, model_evaluation, climatology_anomaly, hpc_diagnose |
Parameters, refusal rules and result shapes: docs/tools.md (which also covers the optional REST/OpenAPI server and tool hints).
The server also ships two Agent Skills over MCP
(Skills extension):
uxarray-analysis (the order to call the tools in, and how to read refusals)
and uxarray-hpc (endpoint checks and error codes). Clients that support the
extension discover them automatically; others can read
skill://uxarray-analysis/SKILL.md as an ordinary resource.
When your data is on a cluster
Everything above runs on your laptop. If the files live on an HPC system
you can also run the same tools there without copying data: you start one
process on the cluster (a Globus Compute
endpoint, running as you), register it here, and any path under its prefix
is routed to it automatically. Results come back as a few kB of JSON with
venue: hpc:<name>; the first call after idling waits for the scheduler.
uxarray-mcp endpoints add chrysalis <endpoint-uuid> --path-prefix /lcrc/
uxarray-mcp doctor --endpoint chrysalis
docs/hpc.md starts with "do you need this?", then the three one-time setup steps, keeping the worker current, site notes for Chrysalis / Improv / Casper, YAC, and a troubleshooting table. Read SECURITY.md before sharing an endpoint — it is shell access as your HPC user.
Layout
src/uxarray_mcp/core/ science (uxarray, numpy, matplotlib); what a worker imports
src/uxarray_mcp/server/ the thirteen tools, result contract, state, MCP app
src/uxarray_mcp/remote/ Globus Compute executor, the one shipped function, health
docs/architecture.md explains the three rules this layout enforces. A worked example on real data: case-studies/conus-precipitation-gdex.
Development
uv sync --dev
uv run pre-commit run --all-files
uv run pytest -m "not hpc and not live and not yac"
uv sync --extra hpc --dev && uv run pytest -m hpc # Globus layer, no cluster needed
See CONTRIBUTING.md. Apache-2.0.
Metadata
Release files for uxarray-mcp 2026.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uxarray_mcp-2026.11.1.tar.gz | 108.1 kB | With provenance | Details for uxarray_mcp-2026.11.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uxarray_mcp-2026.11.1-py3-none-any.whl | Python 3 | none | any | Details for uxarray_mcp-2026.11.1-py3-none-any.whl |
Total release size: 233.9 kB
Release files / uxarray_mcp-2026.11.1.tar.gz
| Download URL | uxarray_mcp-2026.11.1.tar.gz |
|---|---|
| Size | 108.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb2de155a42ac907b212767b5a09f04c6eabc2b2c2e76dd913d77d950d346030
|
|
BLAKE2b-256 checksum How to use checksums |
f75233ae8549f80cbfe111e12a67f6a2bc4477a07c667d0437b32a5130ed2836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / uxarray_mcp-2026.11.1-py3-none-any.whl
| Download URL | uxarray_mcp-2026.11.1-py3-none-any.whl |
|---|---|
| Size | 125.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ced2a621cc6bd32d6957bf546d98d4d520ef9f2864a6b1584a02640c7f897788
|
|
BLAKE2b-256 checksum How to use checksums |
9f58b14d4daa7cdd2cdb21ba038b0ec59be4a7d4acb7d3e3379a2210e84a3412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for uxarray-mcp 2026.11.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for uxarray_mcp-2026.11.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.