Copernicus
Search, subset and download Copernicus Marine and Climate Data Store products, with provenance and resumable jobs.
claude mcp add --scope project clio-copernicus -- clio-kit mcp-server copernicus
Install the launcher first. Restart your client after setup. Configuration locations →
Check the connection
clio-kit doctor --server copernicus --connect
Checks prerequisites and tool discovery. Test on known input to verify results. Native backends may require additional setup.
Tools
marine_search_datasetsSearch the CMEMS catalogue by keyword, bbox, or time range.
Details
Use this tool to discover dataset ids before describing or subsetting. **Workflow hints based on the returned ``service_types``:** - ``geoseries`` / ``timeseries`` (grid datasets) → use ``marine_subset_dataset`` for spatio-temporal subsets. - ``arco-platform-series`` / ``original-files`` (sparse / in-situ) → use ``marine_list_files`` to filter the dataset's file index by bbox/time/variables, THEN ``marine_get_files(file_list=[...])`` to download only the matching files. Going straight to ``marine_get_files`` without ``marine_list_files`` downloads the whole bundle (often multi-GB), which is rarely what you want. Inputs: - keyword: free-text match against dataset titles / descriptions. - bbox: (min_lon, min_lat, max_lon, max_lat); restricts to datasets whose coverage intersects this box. - time_range: (start, end) ISO 8601 UTC; restricts to datasets whose temporal coverage overlaps. - service_types: filter by service kind (geoseries, timeseries, …). - limit: max dataset records to return. - live (default false): when true, hit the Copernicus Marine Service live (requires CMEMS credentials, ~10 s) instead of reading the bundled catalogue snapshot. Use live=true to see products added after the last snapshot refresh, otherwise leave at the default for fast credless discovery. Outputs (envelope): - datasets: list of slim records (dataset_id, title, product_id, variables, spatial_extent, ...). - total_count: PRE-slice match count (may exceed len(datasets) when limit is applied). - mode: "offline" (snapshot) or "live" (live SDK call). - catalogue_fetched_at: ISO timestamp when mode="offline"; null when mode="live".marine_search_groupsShortlist CMEMS routing groups for a free-text query.
Details
First step in the hierarchical search pipeline (groups → products → datasets). Each group bundles related products by region, domain, and intent (e.g. ``physics-mediterranean-state``, ``ocean-acidification-monitoring``). Inputs: - query: free-text — what the user is looking for. - top_k: max groups to return (default 5). Outputs (envelope): - selected: ranked list of {group_id, group_title, summary, product_ids, score}. - rejected: groups deselected by exclude phrases (with reason). - reason: one-line human explanation of the top match. - confidence: "high" | "medium" | "low". - fallback_available: true when confidence is low; caller should consider ``marine_search_datasets`` (flat) instead.marine_search_productsFilter CMEMS products by group membership, optionally refining
Details
by keyword. Second step in the hierarchical search pipeline. Takes the ``group_ids`` from ``marine_search_groups`` and returns the candidate products with their summaries — feed the resulting ``product_ids`` to ``marine_search_datasets`` for the final dataset shortlist. Inputs: - group_ids: list of group_id strings (from search_groups). - query: optional keyword to re-rank within the group set. - top_k: max products to return (default 20). Outputs (envelope): same shape as ``marine_search_groups``.marine_describe_datasetReturn full metadata for a single CMEMS dataset.
Details
Use this tool to inspect variables, axes, and services before estimating or submitting a subset. Inputs: - dataset_id: id obtained from marine_search_datasets. Outputs: - {dataset_id, variables, axes, services, ...}.marine_estimate_subsetEstimate the size and cost of a subset request before submitting it.
Details
Use this tool to preview byte-size, variable list, and confirmation requirements without actually downloading data. **The byte-size is an ESTIMATE, not a contract — the actual download can differ. Do not rely on it for hard limits or quotas; treat it as approximate.** Inputs: same shape as marine_subset_dataset. Outputs: - estimated_size_bytes, variables, advisory_message, ...marine_subset_datasetSubset a CMEMS dataset and return a file descriptor.
Details
This tool returns a descriptor (filepath + metadata + provenance), not the data itself. Read the file via your filesystem; the path is stable until cache eviction. Inputs: - dataset_id, variables, bbox, depth range, time range, file_format. - async_mode (bool, default false): submit as background task and return request_id immediately. Poll via marine_check_status. - confirmed (bool, default false): bypass the size confirmation gate. First call returns ``confirmation_required=True`` with the estimate; call again with confirmed=true to proceed. Outputs (sync mode): - {filepath, uri, metadata, provenance, cache_hit?}. Outputs (async_mode=True): - {status: "running", request_id, cache_key, result: {uri: "copernicus://jobs/<request_id>"}}.marine_get_coordinatesReturn the dataset's coordinate axes (lon / lat / depth / time).
Details
Use this BEFORE ``marine_subset_dataset`` or ``marine_estimate_subset`` when you need to know the dataset's real extent — e.g. its actual depth levels, its time stride, or whether your bbox is even inside the dataset's coverage. The returned axes mirror what ``copernicusmarine.describe(...)`` exposes, but with **large axes summarised** so the response stays compact: - ``time`` returns as a full list when ≤5000 entries, else as a summary ``{start, end, count, stride_seconds}``; - ``longitude`` / ``latitude`` / ``depth`` return as a full list when ≤10000 entries, else as a summary ``{start, end, count, stride}``. Inputs: - dataset_id: required CMEMS dataset id (e.g. from ``marine_search_datasets``). - dataset_version: optional version label (e.g. ``"202411"``); defaults to the latest. - service: optional service id (``geoseries``, ``timeseries``, …) to disambiguate when a dataset version exposes multiple services. Output: a dict keyed by axis name. Always emits the four canonical spatio-temporal axes: ``"longitude"``, ``"latitude"``, ``"depth"``, ``"time"`` (depth comes back as an empty list ``[]`` for surface-only datasets). Each value is either a list of axis values (short axis) or a summary dict (long axis) per the limits above.marine_list_filesList CMEMS native files for a dataset, filtered by bbox / time / variables / platform.
Details
Use this tool BEFORE ``marine_get_files`` when you have a sparse dataset (CORA, EasyCORA, INSITU-BGC) and want to download a precise subset rather than the full multi-GB bundle. The first call per dataset fetches the index (one SDK round-trip); subsequent calls read a local Parquet cache (offline). The returned ``files`` list feeds directly into ``marine_get_files(file_list=[...])``. Inputs: - dataset_id: required. Must be a CMEMS dataset id. - bbox: (min_lon, min_lat, max_lon, max_lat). Antimeridian-crossing bboxes (min_lon > max_lon) are accepted — they wrap east of ``min_lon`` AND west of ``max_lon``. The resulting file_list is usable with ``marine_get_files`` but NOT with ``marine_subset_dataset``. - time_range: (start, end) ISO 8601 UTC. Inverted ranges rejected. - variables: optional whitelist of variable names; rows with unknown variables (``None`` in the index) are kept. - platform_types: optional whitelist (PF, CT, MO, DB, ...); rows with unknown platform are dropped. - limit: optional cap on the returned files (sorted by file_path ASC for determinism). The envelope surfaces ``matched_count_uncapped`` so callers see the true match count. Outputs (envelope): - files: list of per-file records (file_path, bbox, time range, platform_type, variables, size_bytes) ready for marine_get_files. - matched_count, matched_count_uncapped, truncated: caller-visible slicing metadata. - total_count_in_index: pre-filter row count for the dataset. - total_size_bytes_known, rows_with_unknown_size: size aggregation distinguishing "we know N bytes" from "M rows had no size info". - filters_applied: echoes the user's filter axes. - index_fetched_at: when the local Parquet cache was last written. - mode: "offline" (cache hit) or "fresh" (SDK round-trip).marine_get_filesDownload native CMEMS files (no Zarr slicing).
Details
Use this tool for datasets whose service is ``original-files`` or ``arco-platform-series`` (sparse / in-situ observations) — these don't support ``marine_subset_dataset``. The result is a list of per-file descriptors (filepath + metadata + provenance), one per file the toolbox produced. the project conventions invariant 1: never serves bytes inline. **Tip for filtered subsets:** if you want only the files matching a bbox / time range / variable / platform filter, call ``marine_list_files`` FIRST with those filters and pass the returned ``file_path`` values as this tool's ``file_list``. This avoids downloading a multi-GB bundle when you only need a few files (e.g. "CORA Mediterranean 2010-2015"). Inputs: - dataset_id: required. - dataset_version, dataset_part: optional, pin a non-default version / part. - filter / regex / file_list: at most one selection mechanism. Omit to download whatever the toolbox defaults to. ``filter`` is a glob (e.g. ``*1990*``), ``regex`` is a Python regex, ``file_list`` is an explicit list of paths. - sync / skip_existing / overwrite: forwarded to the SDK unchanged. - confirmed (default false): bypass the size confirmation gate. Outputs: - {status: "successful", cache_hit, request_id, cache_key, mode: "offline", result: {files: [{filepath, uri, metadata, provenance}, ...], provenance: {reference?}}}. - First call with an unknown / approximate estimate returns ``confirmation_required=True``; re-call with ``confirmed=true`` to download.marine_check_statusLook up the status of an in-flight or completed CMEMS subset.
Details
Use this after a ``marine_subset_dataset`` call with ``async_mode=True``. **Polling guidance — do NOT sleep between calls.** The Claude Code harness blocks standalone ``sleep N`` precisely to discourage naive sleep-then-retry loops; workarounds (``until [...]; do sleep 5; done``) burn context budget on every wake. Instead: - **User-paced re-call** (recommended): return ``status=queued| running`` to the user, let them decide when to ask "ready yet?" — each call is a fresh tool invocation, no agent-side waiting. - **CLI ``copernicus-mcp marine wait <request_id>``** for offline polling — runs server-side in the CLI process, doesn't tie up agent context. Typical CMEMS async-subset latency: tens of seconds to a few minutes; large multi-GB requests can take 10+ minutes. Inputs: - request_id: returned by the original async submit. Outputs: - {status, request_id, submitted_at, updated_at, cache_key, error_details}. Status is one of queued/running/successful/ failed/cancelled.marine_cancel_subsetCancel an in-flight CMEMS subset request.
Details
If a background task is running for the request_id, it is interrupted and the workflow row marked ``cancelled``. If the request has already settled (successful/failed/cancelled), the call is a no-op and reports the current status. Inputs: - request_id: returned by the original async submit. Outputs: - {cancelled: bool, request_id, status}.cds_search_groupsT-CDS-021 PR-2: hierarchical discovery over CDS / ADS / EWDS.
Details
**Use this BEFORE ``cds_search_datasets`` when you have a vague free-text intent.** Returns a ranked list of ``(domain, category)`` groups (e.g. ``Atmosphere (surface) / reanalysis``) with sample dataset titles + counts. Pick a group, then call ``cds_search_datasets(domain=..., category=...)`` for the narrowed candidate list. Mirrors CMEMS's ``marine_search_groups`` UX. Without ``query``: every populated group sorted by ``dataset_count`` descending (~40 groups across 164 datasets in the current snapshot). With ``query``: scored by substring matches against domain, category, and member-dataset metadata. ``top_k`` caps the ranked list. Bundled-snapshot only — NEVER hits the network. Inputs: - query (optional): free-text intent like ``"atmosphere temperature reanalysis"``. - top_k (optional): cap returned group count after ranking. Outputs: - ``{groups: [{id, domain, category, dataset_count, sample_titles, score?}, ...], total_count}``. ``id`` is a stable ``"<domain-slug>|<category>"`` chaining key for scripting.cds_search_datasetsSearch the bundled CDS / ADS / EWDS catalogue snapshot.
Details
Use this tool to discover candidate dataset ids before describing or submitting a request. Returns a slim record per dataset; call ``cds_describe_dataset`` for the full STAC metadata. Inputs (all optional, AND-combined): - keyword: free-text match. The query is split on whitespace and a dataset is kept only if EVERY word matches (word order is irrelevant) — each word either hits id / title / description / keywords / summaries at a word boundary OR names a variable in the dataset's constraints, so ``"2m temperature"`` finds ERA5 even though that phrase appears nowhere in the prose. Results are relevance-ranked (exact-phrase hits first), so a small ``limit`` keeps the most on-topic datasets. Prefer 1-3 content words; for a specific variable, ``variable=`` is more precise. - store: filter (cds / ads / ewds). - bbox: ``(west, south, east, north)`` WGS84 degrees. Records whose spatial extent intersects this bbox are kept. Antimeridian- crossing queries (west > east) are rejected — split into two. - time_range: ``(start_iso, end_iso)``. Records whose temporal extent overlaps the window are kept; bare dates / naive ISO strings are interpreted as UTC. - variable: substring (case-insensitive) match across keywords, summaries, title/description, AND the bundled constraints' ``variable`` enum (so ``"temperature"`` finds ERA5 even though STAC keywords don't name specific variables). - domain: exact match against the dataset's ``"Variable domain: X"`` keyword (e.g. ``"Ocean (physics)"``). Use ``cds_search_groups`` first to discover valid domains. - category: exact match against the dataset's ID family prefix (e.g. ``"reanalysis"``, ``"satellite"``, ``"cams"``). - limit: max records to return. Outputs: - {datasets: [{id, title, description, keywords, store}, ...], total_count}.cds_describe_datasetReturn the full STAC metadata for a single CDS / ADS / EWDS dataset.
Details
**Use this BEFORE composing a `cds_submit_request`.** The output includes an ``available_inputs`` field listing every parameter the dataset accepts and the valid values for each (e.g. ``data_format: [netcdf, grib]``, ``download_format: [zip, unarchived]``, the canonical ``variable`` enum). Compose your submit request using only these field names and values; the legacy ``format: ...`` key was deprecated by the new CDS processes engine and silently rejected by the server. **Caveat — ``available_inputs`` is a SNAPSHOT.** It ships in the bundled catalogue refreshed manually (typically every few weeks). CDS occasionally rotates field names / adds new constraints. If a submit composed from this snapshot fails with `remote_job_failed`, call ``cds_apply_constraints(dataset_id, inputs={})`` for the LIVE server-side valid values verbatim — they are the canonical source of truth. Use ``cds_apply_constraints`` with a PARTIAL request to progressively narrow the valid combinations — but note its caveats: for some datasets the constraints response is a flat, non-narrowing union, so the real submit is the decisive validator. Use this after ``cds_search_datasets`` to inspect required fields, licence, and constraints before submitting a request. The lookup is cross-store: the dataset_id alone determines which bundled snapshot is consulted. Inputs: - dataset_id: id obtained from ``cds_search_datasets``. Outputs: - the STAC record augmented with a ``store`` field and (when the bundled constraints snapshot has data for this dataset) an ``available_inputs`` dict.cds_apply_constraintsServer-side narrowing: given a PARTIAL CDS / ADS / EWDS request,
Details
return the remaining valid values for unfilled fields. **Use this to compose a submit request step-by-step** instead of guessing field names / enum values. The bundled ``cds_describe_dataset → available_inputs`` shows the static top-level choices; this tool returns the LIVE narrowing as you fill the partial request. Particularly useful when: - You don't know whether a field accepts the legacy ``format`` or modern ``data_format`` / ``download_format`` keys (this endpoint uses the modern keys exclusively). - You picked a ``variable`` and want to know whether it accepts a time range (auxiliary time-invariant variables like EFAS ``elevation`` will NOT return ``hyear/hmonth/hday/time`` in the response — that's the signal to drop those fields). - You want to confirm a dataset's required additional fields (e.g. EFAS v5.0 needs ``hydrological_model: [lisflood]``). **Caveats (observed on live datasets — read before trusting the response):** - Some datasets return a NON-NARROWING flat union: ``valid_remaining`` echoes the full vocabulary no matter what you pin, and values coupled to your selection may be silently omitted. Per-field membership does NOT guarantee the combination is retrievable. - Cross-field couplings (e.g. a spatial grid that only exists for certain temporal aggregations) surface only when ALL related axes are pinned TOGETHER. When probing whether a combination exists, pin variable + product type + spatial + temporal + version in the same call — narrowing one field at a time can pass on every step and still fail at submit. - This live endpoint and the bundled ``cds_describe_dataset`` snapshot can be different vintages; for vocabulary this endpoint wins. Either way the REAL submit is the decisive validator — treat a passing constraints probe as advisory, not as proof. Inputs: - dataset_id: CDS / ADS / EWDS dataset id. - inputs: partial request dict. Empty dict ``{}`` returns top-level valid values for every field. Each subsequent narrowing call appends to inputs. Outputs: - ``dataset_id``, ``store``, ``inputs_provided`` (echoed for traceability), and ``valid_remaining`` — a dict mapping each remaining field to its valid values given the partial selection.cds_estimate_requestSize + queue estimate for a CDS retrieve request.
Details
Combines the CDS ``/costing`` pre-flight (the server's own cost units and the dataset's per-request cost limit) with a calibrated/curated bytes-per-unit factor. Use this to gauge submission cost before paying the queue. **The byte-size estimate is APPROXIMATE and can be wrong by a large factor — do NOT rely on it for hard limits, quotas, billing, or disk planning.** Treat it as a rough order-of-magnitude only. The ``cost`` units are exact; only the byte size is uncertain. Every response repeats this disclaimer in the ``size_estimate_caveat`` field. Inputs: same shape as ``cds_submit_request``. Outputs: - ``estimated_size_bytes`` / ``estimated_size_human``: **may be ``null``** — for whole-file products whose size cannot be known from request shape, the estimate is honestly reported as unknown rather than an invented number. - ``epistemic_status``: one of ``calibrated`` (from your own prior downloads of this shape — most trustworthy), ``approximate`` (a bundled-seed estimate, signature-matched — rough, can be off by a large factor), or ``unknown`` (no calibration yet, or a whole-file product whose size is unknowable until the first retrieval — no size is shown). - ``cost``: ``{units, limit, exceeds_limit, source}`` from the costing endpoint, or ``null`` if it was unreachable. ``exceeds_limit=true`` means the server will reject the request — narrow it (or, once auto-chunking ships, it will be split automatically). - ``fields_count``, ``queue_latency_tier``, ``advisory_message``. - ``size_estimate_caveat``: always present — the plain-language warning that the byte size is approximate and must not be relied on.cds_submit_requestSubmit a CDS / ADS / EWDS retrieve request.
Details
CDS is queue-backed: the call returns immediately after the server acknowledges the request. Track progress via ``cds_check_request_status`` and download via ``cds_download_request_result`` once status reaches ``successful``. A T&C-not-accepted server response is surfaced as the canonical ``TermsNotAcceptedError`` with ``recovery_url`` pointing at the licence page (T-CDS-006). Open the URL, accept the licence, and re-submit. **Unknown input keys are rejected up front** (the server would silently ignore them — wrong selection, or an empty-log failure minutes later). Compose requests from ``cds_describe_dataset``'s ``available_inputs`` or ``cds_apply_constraints``. A key the bundled snapshot does not list is checked against the live CDS form before the request is refused; ``skip_input_validation=true`` bypasses the check. **Multi-model requests on ``projections-cmip6`` and ``projections-cordex-domains-single-levels`` always fan out** into one part per model (those datasets execute ONE model per request and silently deliver only the first of a list) — the response is then a chunked parent, and each downloaded part is verified to contain its requested model before caching. Inputs: - dataset_id: id from the catalogue (e.g. ``reanalysis-era5-pressure-levels``). - inputs: cdsapi-shaped request dict (variable, year, month, day, time, area, pressure_level, ...). For the ``reanalysis-*`` families (ERA5, ERA5-Land, CERRA, CARRA, ...) ``product_type`` is REQUIRED (e.g. ``"reanalysis"``; see ``cds_describe_dataset`` ``available_inputs`` for the valid values). Omitting it is rejected before submit — and on the live server a multi-month request without it fails server-side with ``Duplicate value for month`` after a long queue. WARNING — ``area`` ordering: CDS uses ``[north, west, south, east]`` (NWSE), the OPPOSITE of the common GIS ``[west, south, east, north]`` (WSEN). Sending ``[w, s, e, n]`` does not error — it silently retrieves the wrong region. Example for Mediterranean basin (lon -6..36.5, lat 30..46) the correct value is ``[46, -6, 30, 36.5]``. - confirmed (bool, default false): bypass the size + queue-tier confirmation gate; also accepts an auto-chunking proposal at the default ``year`` granularity when no ``chunk_by`` is given. - chunk_by (year|month|day, optional): granularity for splitting a request that exceeds the dataset's server-side cost limit. The first submit of an over-limit request returns a ``cost_limit_requires_chunking`` proposal; re-submit with chunk_by set (or confirmed=true for the suggested year) to run the parts as one logical multi-file workflow under a single parent request_id. - auto_chunk (bool, default true): set false to reject the split and get the manual-split ValidationError instead. - force_refresh (bool, default false): re-run from scratch, bypassing the cache (repopulates evicted chunk files of a completed parent). - confirm_large_fanout (bool, default false): the SECOND ack for a very large split. A split over the reconfirm threshold needs BOTH confirmed=true and this; confirmed alone will not launch it. - skip_input_validation (bool, default false): skip the unknown-key check, for a key CDS accepts that the check still refuses. Outputs (queued): - {status: "queued", request_id, cache_key, result: {uri: "copernicus://jobs/<request_id>"}}. Outputs (queued — chunked parent): - {status: "queued", request_id, cache_key, chunked: true, chunk_count: N, ...}. Poll / download / cancel the parent request_id; the parts advance on each poll. Outputs (cache hit): - {status: "successful", cache_hit: true, request_id, cache_key, result: {filepath, uri, metadata, provenance}}.cds_check_request_statusPoll the CDS server for the status of a submitted request.
Details
The first call after the server settles a job to ``successful`` triggers the download into the local cache; subsequent calls return the cached descriptor. Status is one of ``queued`` / ``running`` / ``successful`` / ``failed`` / ``cancelled``. **Polling guidance — do NOT sleep between calls.** The Claude Code harness blocks standalone ``sleep N`` precisely to discourage naive sleep-then-retry loops; agents who work around it with ``until [...]; do sleep 5; done`` burn context budget on every wake. Instead, pick one of: - **User-paced re-call** (recommended for chat agents): return ``status=queued|running`` to the user, let them decide when to ask "ready yet?" — each call is a fresh tool invocation, no agent-side waiting. - **CLI ``copernicus-mcp cds wait <request_id>``** for offline polling — runs server-side in the CLI process, doesn't tie up agent context. Typical CDS queue latency: seconds to minutes for small ERA5 requests; up to ~30 min for heavy multi-field hindcasts. EFAS / GloFAS reanalysis queries can sit in queue for ~5-10 min during busy periods. Inputs: - request_id: returned by ``cds_submit_request``. Outputs: - {status, request_id, submitted_at, updated_at, cache_key, error_details, result: {filepath?, uri, metadata, provenance}}. **Chunked (auto-split) requests** answer with extra fields, because one request id stands for many CDS jobs: - ``progress: {completed, total}`` and ``chunks: {...}`` — per-state counts that PARTITION the parts (``successful``, ``running``, ``downloading``, ``retrying``, ``queued``, ``failed``, ``cancelled``), so they sum to ``total``. - ``per_chunk: [{index, request_id, status, phase?, attempt?}]`` — every part that has been ORDERED is a first-class request id: poll it, or resolve its file directly with ``cds_download_request_result(<that id>)``. That works even when the parent as a whole failed. Parts not yet ordered have ``request_id: null`` and status ``queued`` — there is nothing to poll for those yet. - ``phase: "downloading"`` on the parent — every remaining part has finished server-side and only the local file transfers are left. Transfers RESUME across polls and processes (an interrupted partial file is continued, not restarted), so repeated polling does finish them — but one long-running ``copernicus-mcp cds wait`` completes the remaining transfers fastest, in a single uninterrupted pass. - ``retrying`` parts are ones the server refused for capacity; they are re-submitted automatically a bounded number of times. A part that failed because the REQUEST is wrong is never retried. - ``partial_result: {files, chunk_indices, missing_chunk_indices}`` on a FAILED parent — the parts that did land, so paid-for data is never lost. It is deliberately outside ``result``: a failed parent never presents itself as a complete delivery. - ``result.complete`` on a SUCCESSFUL parent — ``false`` means a part's file is no longer in the local cache, so the ``files`` list is short; ``evicted_chunk_indices`` names the gaps and ``recovery_hint`` says how to refill them (``cds_download_request_result`` on the parent). **A successful CDS job never reads ``failed`` because its local file is gone.** A lost registration is repaired by the poll itself (``running`` / ``phase="downloading"`` while it re-downloads, then ``successful``). A file the cache's size limit evicted reads ``running`` / ``phase="download_pending"`` with ``next_action_hint``: nothing is downloading it — call ``cds_download_request_result``. Only a result CDS has purged reads ``failed`` (``remote_result_expired``): submit again.cds_download_request_resultResolve the cached file descriptor for a successful CDS request.
Details
No bytes are returned; per the project conventions invariant 1 the response is ``{filepath, uri, cache_key, metadata, provenance}``. Read the file from disk via the returned path. The path is stable until cache eviction. Use this after ``cds_check_request_status`` reports ``status=successful`` — or to FETCH a result nothing is downloading: when check-status reports ``phase="download_pending"`` (its file was evicted from the local cache, or polling is status-only), or a chunked parent reports ``result.complete=false``. This tool re-registers the file from disk or re-downloads it from the finished CDS job, without a new CDS job. A request whose file is still downloading is waited on for up to ~30 s; if it is not ready yet you get ``result_not_ready`` — call again (it resumes). ``remote_result_expired`` means CDS purged the result: submit again. Inputs: - request_id: returned by ``cds_submit_request``. Outputs: - {status: "successful", request_id, cache_key, cache_hit: true, result: {filepath, uri, metadata, provenance}}.cds_list_licencesList the store's dataset licences and which ones this account has
Details
already accepted. Use when a submit fails with ``TermsNotAcceptedError``: compare the ``available`` and ``accepted`` sets to find the missing licence and its ``revision``. Accepting happens on the licence web page (the error's ``recovery_url``), or — when the operator has enabled it — in-band via ``cds_accept_licence``. Inputs: - dataset_id (optional): routes to the dataset's store; licence ids are per-store (CDS / ADS / EWDS). Outputs: - {store, available: [{id, revision, label, scope, contents_url}], accepted: [...same shape...]}.cds_cancel_requestCancel an in-flight CDS request.
Details
Best-effort — the SDK's delete is fire-and-forget; the server may still complete the job if cancellation arrives too late. Local row is settled to ``cancelled`` in any case so the polling caller knows to stop. Calling on an already-terminal row is a no-op and reports the current status. Inputs: - request_id: returned by ``cds_submit_request``. Outputs: - {cancelled: bool, request_id, status, reason?}.copernicus_mcp_statusReturn server diagnostics: registered backends, credential sources, cache metrics, persistence path, and config snapshot. No credential values appear in the output.
copernicus_mcp_list_jobsList recent submitted jobs (downloads) recorded in the local state store, so a fresh session can recover work after a restart without already holding a request_id. Each entry carries request_id, backend, dataset, operation, status, and created/updated times (failed jobs also include error_class). Optional filters: status (any of queued/running/successful/failed/cancelled), limit (default 50, capped at 500), created_after (ISO-8601 UTC, strict lower bound). Feed a returned request_id to the per-backend status/fetch/cancel tools. No credential values appear in the output.
Examples
Replace example paths with your own files and check the returned results.
Usage
Available tools: marine_search_datasets, marine_search_groups, marine_search_products, marine_describe_dataset, marine_estimate_subset, marine_subset_dataset, marine_get_coordinates, marine_list_files, marine_get_files, marine_check_status, marine_cancel_subset, copernicus_mcp_status, copernicus_mcp_list_jobs.
Inspect the tool input schema in your MCP client before calling it. Use a small known input, check the result and any reported errors, then expand to the intended workload.