gdal-mcp
v1.1.3FastMCP server for Python-native GDAL ops (Rasterio/PyProj/pyogrio|Fiona/Shapely)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
raster_convert
Convert raster format with compression, tiling, and overview generation. USE WHEN: Need to change format (e.g. GeoTIFF to COG), apply compression to reduce file size, create tiled output for performance, or build overviews for faster display at multiple scales. Common use cases: create Cloud-Optimized GeoTIFFs (COG) for web serving, compress large rasters, or prepare data for GIS software. REQUIRES: uri (source raster path), output (destination file path). OPTIONAL: options (ConversionOptions) with driver (GTiff, COG, PNG, JPEG, etc.), compression (lzw, deflate, zstd, jpeg, packbits, none), ti…
| Parameter | Type | Description |
|---|---|---|
output * | string | |
uri * | string | |
options |
raster_info
Inspect raster metadata using Python-native Rasterio. USE WHEN: Need to understand raster properties before processing, verify CRS and spatial extent, check band count and data types, inspect nodata values, or examine overview levels for multi-resolution data. REQUIRES: uri (path or URI to raster file, supports file://, /vsi paths). OPTIONAL: band (1-based band index for overview introspection). OUTPUT: RasterInfo with driver (e.g. 'GTiff'), CRS (e.g. 'EPSG:4326'), width/height (pixels), count (number of bands), dtype (e.g. 'uint8'), transform (6-element affine: [a, b, c, d, e, f]), bounds (mi…
| Parameter | Type | Description |
|---|---|---|
uri * | string | |
band |
raster_reproject
Reproject raster to new coordinate reference system with explicit resampling method (ADR-0011 requirement). USE WHEN: Coordinate system doesn't match target projection OR data needs different spatial reference for analysis, overlay, or web serving. Common scenarios: convert lat/lon (EPSG:4326) to Web Mercator (EPSG:3857) for web maps, transform to local UTM zone for accurate area/distance calculations, or align multiple rasters to common projection for analysis. REQUIRES: uri (source raster path), output (destination file path), dst_crs (e.g. 'EPSG:3857', 'EPSG:4326', 'EPSG:32610'), resampling…
| Parameter | Type | Description |
|---|---|---|
dst_crs * | string | |
output * | string | |
resampling * | string | |
uri * | string | |
bounds | ||
height | ||
nodata | ||
resolution | ||
src_crs | ||
width |
raster_stats
Compute comprehensive statistics for raster bands including min/max/mean/std/median/percentiles and optional histogram. USE WHEN: Need to analyze data distribution, find outliers, understand value ranges, validate data quality, or generate histograms for visualization. Useful before processing to understand data characteristics. REQUIRES: uri (path to raster file). OPTIONAL: params (RasterStatsParams) with bands (list of 1-based indices, None=all bands), include_histogram (bool, default False), histogram_bins (2-1024, default 256), percentiles (list like [25, 50, 75]), sample_size (integer, fo…
| Parameter | Type | Description |
|---|---|---|
uri * | string | |
params |
vector_buffer
Create buffer zones around vector geometries for proximity analysis. USE WHEN: Need to create zones of influence, analyze proximity, identify areas within distance of features, or create coverage areas. Common scenarios: Service area analysis (500m from transit stops), environmental buffers (wetland protection zones), proximity analysis (schools within 1km). REQUIRES: uri (source vector path), output (destination file path), distance (buffer distance in CRS units). OPTIONAL: resolution (segments per quadrant, 4-64, default 16). Higher resolution = smoother circles but slower performance. OUTPU…
| Parameter | Type | Description |
|---|---|---|
distance * | number | |
output * | string | |
uri * | string | |
resolution | integer |
vector_clip
Clip vector dataset by bounding box or mask geometry for spatial subsetting. USE WHEN: Need to extract features within specific area, subset large datasets, or prepare data for localized analysis. Common scenarios: Clip to study area extent, extract features within city boundary, subset regional data to project area. REQUIRES: uri (source vector path), output (destination file path). ONE OF: bounds=[minx, miny, maxx, maxy] (bounding box) OR mask=<path> (clip geometry). OUTPUT: VectorClipResult with ResourceRef (output file URI/path/size/metadata), feature_count (features in output), geometry_t…
| Parameter | Type | Description |
|---|---|---|
output * | string | |
uri * | string | |
bounds | ||
mask |
vector_convert
Convert vector dataset to different format with encoding control. USE WHEN: Need to migrate between formats (Shapefile ↔ GeoPackage ↔ GeoJSON), fix encoding issues, or prepare data for specific software requirements. Common scenarios: Shapefile to GeoPackage for single-file portability and UTF-8, GeoJSON to Shapefile for desktop GIS, GeoPackage to GeoJSON for web applications. REQUIRES: uri (source vector path), output (destination file path with extension). OPTIONAL: driver (auto-detected from extension: .shp, .gpkg, .geojson, .kml, .gml), encoding (UTF-8 default, ISO-8859-1 for legacy co…
| Parameter | Type | Description |
|---|---|---|
output * | string | |
uri * | string | |
driver | ||
encoding | string |
vector_info
Inspect vector dataset metadata using Python-native pyogrio (or fiona fallback). USE WHEN: Need to understand vector dataset properties before processing, verify CRS and spatial extent, check geometry types (Point, LineString, Polygon), examine attribute fields and types, or validate feature count. Common scenarios: verify Shapefile structure, check GeoJSON CRS, inspect GeoPackage layers, or validate CSV with geometry. REQUIRES: uri (path to vector file or dataset). OPTIONAL: None. OUTPUT: VectorInfo with path, driver (e.g. 'ESRI Shapefile', 'GeoJSON', 'GPKG'), crs (e.g. 'EPSG:4326'), layer_co…
| Parameter | Type | Description |
|---|---|---|
uri * | string |
vector_reproject
Reproject vector dataset to new coordinate reference system. USE WHEN: Vector CRS doesn't match target projection OR data needs different spatial reference for analysis, overlay, or web serving. Common scenarios: convert lat/lon (EPSG:4326) to Web Mercator (EPSG:3857) for web maps, transform to local UTM zone for accurate area/distance calculations, or align multiple datasets to common projection for spatial analysis. REQUIRES: uri (source vector path), output (destination file path), dst_crs (e.g. 'EPSG:3857', 'EPSG:4326', 'EPSG:32610'). OPTIONAL: src_crs (override source CRS if missing/incor…
| Parameter | Type | Description |
|---|---|---|
dst_crs * | string | |
output * | string | |
uri * | string | |
src_crs |
vector_simplify
Simplify vector geometries to reduce complexity and file size for web display or generalization. USE WHEN: Need to reduce vertex count, optimize for web mapping, create generalized representations, or reduce file size while preserving shape. Common scenarios: Web map optimization (reduce vertices for faster rendering), multi-scale mapping (create simplified versions for zoom levels), file size reduction (large detailed datasets). REQUIRES: uri (source vector path), output (destination file path), tolerance (simplification distance in CRS units - larger = more simplified). OPTIONAL: method (dou…
| Parameter | Type | Description |
|---|---|---|
output * | string | |
tolerance * | number | |
uri * | string | |
method | string | |
preserve_topology | boolean |
store_justification
Store an epistemic justification for later use. This tool is called after generating a methodological justification via a prompt. The stored justification allows subsequent tool calls to proceed without re-justification. REQUIRES: tool_name (name of the tool this justification is for), domain (crs_datum, resampling, hydrology, aggregation), prompt_name (name of the prompt that generated this), prompt_args (dict of arguments used in the prompt), justification (the generated justification as dict with intent/alternatives/choice/confidence). OUTPUT: Confirmation message with cache key.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
justification * | object | |
prompt_args * | object | |
prompt_name * | string | |
tool_name * | string |