Skip to main content

cmipget

CI PyPI Python License: MIT

Agent-ready CMIP7 & CMIP6 climate model data downloader — one core engine with four entrypoints: Python SDK, CLI, MCP Server, and Agent Skill (cmipget-agent).

Built directly on the modern ESGF-NG STAC API (discovery.west.esgf.io & discovery.east.esgf.io) to succeed legacy acccmip6 / Solr workflows for both CMIP7 and CMIP6.

中文文档 (README_zh.md)


Use with AI Agents (No Coding Required)

Even if you do not write code, you can paste this repository URL (or cmipget) to an AI coding/desktop agent (Claude Code, Codex, Cursor, Antigravity, Cherry Studio, etc.) and describe what data you want in plain English or Chinese:

"Use https://github.com/Radianjayjay/cmipget (or uvx cmipget) and follow skills/cmipget-agent/SKILL.md to check available CMIP7 monthly near-surface air temperature (tas) for historical, show me the size first, and download one member per model into ./data."

  • Terminal Agents: zero-install via uvx cmipget ... --json, or install the bundled skill:
    pip install cmipget
    cmipget skill install --target agents   # or: claude | codex | cursor | antigravity
    
  • MCP Clients: print ready-to-paste MCP server config:
    cmipget mcp config
    
    {
      "mcpServers": {
        "cmipget": {
          "command": "uvx",
          "args": ["cmipget", "mcp"]
        }
      }
    }
    

Key Features

  • CMIP7 + CMIP6 Unified Engine: defaults to cmip7 (MIP-DRS7, branding_suffix, region) and seamlessly supports -p cmip6 (table_id) or -p all cross-generation search.
  • Cross-Generation Hints & CN/EN Term Resolution: detects legacy CMIP6 habits (ssp245, Amon) in CMIP7 queries and suggests exact replacements (scen7-m, frequency=mon + realm=atmos) without silent guessing; resolves Chinese/English climate terms (地表气温 -> tas, 高排放 -> scen7-h / ssp585).
  • Two-Phase Safe Planning (plan -> download): estimates file counts, total GB, free disk space, and flags variant/branding/grid ambiguities (--one-member picks r1i1p1f1 / lowest member). MCP and CLI enforce a 10 GB confirmation guard by default.
  • Resilient Download Engine:
    • Async concurrency, .part HTTP Range resume, atomic commit, and automatic SHA-256 verification (file:checksum multihash).
    • Toggleable multi-segment Range parallel download (--segmented) to accelerate throttled ESGF single-stream servers on large .nc files.
    • Multi-Source Resilience & Provenance: persistent host health & EWMA speed ranking (host_stats.json), cross-node STAC + CMIP6 legacy ESGF Solr checksum-verified replica fallback (--solr-fallback), user-configurable mirrors (--mirror / ~/.config/cmipget/mirrors.toml), shared read-only pool reuse (--local-root), --complete multi-experiment/variable filtering, --with-cell-measures (areacello/areacella), opt-in --probe-missing (THREDDS catalog.xml + time-gap URL probing marked unverified), cmipget audit retraction/update checks, and Pangeo GCS/AWS CMIP6 cloud Zarr search & NetCDF export (cmipget cloud search / cmipget cloud download via cmipget[cloud]).
    • Directory-locked manifest.json + offline cmipget verify, detached background jobs (--background), and exports to urls, aria2c, wget, globus, opendap, and kerchunk.

Installation

pip install cmipget
# Optional third-party Pangeo GCS/AWS cloud Zarr NetCDF export:
pip install "cmipget[cloud]"
# or run without global install:
uvx cmipget --help

CLI Quickstart

cmipget supports both explicit flags and acccmip6-style short flags (-m, -e, -v, -f, -r, -yr, -rlzn), and every command accepts --json:

# 1. Resolve Chinese/English terms or validate query flags
cmipget check "地表气温" "高排放" -p cmip7

# 2. Explore live models/experiments/variables on ESGF-NG
cmipget facets -p cmip7 -v tas

# 3. Search datasets
cmipget search -p cmip7 -e historical -v tas -f mon --one-member

# 4. Preview download size, disk check, and warnings
cmipget plan -o ./cmip_data -p cmip7 -m ACCESS-ESM1-6 -e historical -v tas -f mon -yr 1990-2014

# 5. Download (add --segmented for multi-segment Range acceleration on large files)
cmipget download -o ./cmip_data -p cmip7 -m ACCESS-ESM1-6 -e historical -v tas -f mon --one-member --segmented

# 6. Background job for multi-GB batches
cmipget download -o ./cmip_data -p cmip6 -e ssp245 -v tas -t Amon --one-member --yes --background
cmipget jobs list

# 7. Verify local files against manifest.json, audit for retractions/updates, & export external lists
cmipget verify ./cmip_data
cmipget audit ./cmip_data
cmipget export --format aria2c --out-file cmip.aria2 -p cmip7 -e historical -v tas -f mon

# 8. Third-party Pangeo GCS/AWS CMIP6 cloud Zarr mirrors
cmipget cloud search -v tos -e historical -t Omon --one-member
cmipget cloud download -v tos -e historical -t Omon -m CanESM5 -yr 2000-2014 --provider gcs --max-stores 1 -o ./cmip_data

Python SDK Quickstart

from cmipget import CMIPClient, DownloadConfig, Query

client = CMIPClient()
query = Query(
    project="cmip7",
    source_id=["ACCESS-ESM1-6"],
    experiment_id=["historical"],
    variable_id=["tas"],
    frequency=["mon"],
    years="2000-2014",
    one_member=True,
)

plan = client.plan_sync(query, output_dir="./cmip_data", layout="compact")
print(f"Files: {plan.files_to_download}, Bytes: {plan.bytes_to_download}")

report = client.download_sync(
    plan,
    config=DownloadConfig(concurrency=4, segmented=True, segment_count=4),
)
print(client.verify("./cmip_data"))

Citation

If you use cmipget in research, please cite this software (metadata in CITATION.cff):

Ren, J. (2026). cmipget: Agent-ready CMIP7 and CMIP6 climate model data downloader (Version 0.1.0) [Computer software]. GitHub. https://github.com/Radianjayjay/cmipget

Author

Jie Ren, South China Sea Institute of Oceanology, Chinese Academy of Sciences / University of Chinese Academy of Sciences.

License

MIT — see LICENSE.

Metadata

Release files for cmipget 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmipget 0.1.0
File Size Uploaded Provenance Actions
cmipget-0.1.0.tar.gz 103.7 kB With provenance Details for cmipget-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmipget 0.1.0
File Interpreter ABI Platform Actions
cmipget-0.1.0-py3-none-any.whl Python 3 none any Details for cmipget-0.1.0-py3-none-any.whl

Total release size: 188.2 kB

Release files / cmipget-0.1.0.tar.gz

Download URL cmipget-0.1.0.tar.gz
Size 103.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9f49bb44b8b9782e9e24009b2fdd8d8178ed2fd6756936aa433849b3a7532a41
BLAKE2b-256 checksum
How to use checksums
fa6d381e5bc4ed2e5b300975e4bb85ae5133aa76d52bd4c8bccc723f1aa9fd13
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 28, 2026.

Transparency log

Release files / cmipget-0.1.0-py3-none-any.whl

Download URL cmipget-0.1.0-py3-none-any.whl
Size 84.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97b905995cf669f972c3da4ad7cef3c71ef699c90a7fcb8e4890f404bcf3a1a8
BLAKE2b-256 checksum
How to use checksums
b6e3a66c9090f3781e584064f5f0038164b615546138eafa75467962b294ed30
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 28, 2026.

Transparency log

Security for cmipget 0.1.0

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.

Select from 2 files

Attestation for cmipget-0.1.0.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 28, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page