stac-eo-mcp

v0.1.0
stac-eo-mcp Checked 1 day ago Published 1 month ago

MCP server that lets AI agents search STAC catalogs and compute Sentinel-2 spectral indices (NDVI, NDWI, NBR).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_collections

List the collections available in a STAC catalog, with a one-sentence description. Use the returned ids as `collection` in search_scenes and get_scene_details.

ParameterTypeDescription
catalogSTAC catalog. Defaults to the server's configured catalog.

search_scenes

Search scenes intersecting a bbox in a date range, newest first. Returns id, date, cloud cover, a simplified footprint and a preview image link. Cloud cover is for the whole tile, not the bbox.

ParameterTypeDescription
bbox *array[west, south, east, north] in WGS84 degrees, e.g. [12.47, 41.9, 12.5, 41.92]
collection *stringCollection id, e.g. 'sentinel-2-l2a' (alias 'sentinel-2' works)
date_range *stringISO interval 'YYYY-MM-DD/YYYY-MM-DD', e.g. '2025-04-01/2025-09-30'
catalogSTAC catalog. Defaults to the server's configured catalog.
limitintegerMaximum scenes to return (1-50)
max_cloud_coverMaximum scene cloud cover in percent (0-100). Omit for no filter.

get_scene_details

Key metadata and the list of assets (bands, previews, metadata files) of one scene.

ParameterTypeDescription
collection *stringCollection id the scene belongs to
item_id *stringScene id from search_scenes
catalogSTAC catalog. Defaults to the server's configured catalog.

compute_index

Compute NDVI, NDWI or NBR on one Sentinel-2 L2A scene, reading only the bbox window. Clouds, shadows and no-data are masked with the SCL layer. Returns min, max, mean, std and the share of valid pixels, plus file paths when `save` is set. No raster data is returned. Area is limited (default 100 km²).

ParameterTypeDescription
bbox *array[west, south, east, north] in WGS84 degrees, e.g. [12.47, 41.9, 12.5, 41.92]
index *stringSpectral index: ndvi (vegetation), ndwi (water), nbr (burn).
item_id *stringSentinel-2 L2A scene id from search_scenes
catalogSTAC catalog. Defaults to the server's configured catalog.
savestringAlso write the index map to the output folder

time_series

Mean of an index over a bbox for each Sentinel-2 acquisition date in a range. One scene per day, cloudy dates skipped with a reason, sampled evenly when there are more dates than the server limit (default 24). Includes a summary (mean, min/max date, change from first to last). Can take 10-60 s for long ranges.

ParameterTypeDescription
bbox *array[west, south, east, north] in WGS84 degrees, e.g. [12.47, 41.9, 12.5, 41.92]
date_range *stringISO interval 'YYYY-MM-DD/YYYY-MM-DD', e.g. '2025-04-01/2025-09-30'
index *stringSpectral index: ndvi (vegetation), ndwi (water), nbr (burn).
catalogSTAC catalog. Defaults to the server's configured catalog.
max_cloud_coverMaximum scene cloud cover in percent (0-100). Omit for no filter.