MCP ScannerCustom audit
All servers

mahdin75/gis-mcp

A Model Context Protocol (MCP) server implementation that connects Large Language Models (LLMs) to GIS operations using GIS libraries, enabling AI assistants to perform geospatial operations and transformations.

Packagegis-mcp
Version0.15.0 in pyproject.toml
Publishermahdin75 community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 206Forks 54Last push 2026-08-21
Python 98.1%JavaScript 1.9%by source files the scanner reads
Code safetypartly tracedExposure0.0Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence80%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure0.0/10Poor

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 33 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there

Top risks in plain words

  • HIGHTools append_gpd, clip_raster_with_shapefile, clip_vector, compute_ndvi and 32 more read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    append_gpd, clip_raster_with_shapefile, clip_vector, compute_ndvi and 32 more can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need append_gpd, clip_raster_with_shapefile, clip_vector and 33 more, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 98 tools, 20 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
clip_raster_with_shapefile, compute_ndvi, compute_s2_ndvi, concat_bands, create_map, download_satellite_imagery and 19 more
25 of 118
Read passwords, tokens or keysload secrets such as API keys
append_gpd, clip_raster_with_shapefile, clip_vector, compute_s2_ndvi, dissolve_gpd, download_boundaries and 17 more
23 of 118
Read environment variablesoften where API keys are kept
append_gpd, clip_raster_with_shapefile, clip_vector, compute_s2_ndvi, dissolve_gpd, download_boundaries and 17 more
23 of 118
Touch sensitive locationssuch as ~/.ssh, cloud credentials or browser data
append_gpd, clip_raster_with_shapefile, clip_vector, compute_s2_ndvi, dissolve_gpd, download_boundaries and 17 more
23 of 118

No tool was seen to: start other programs on the machine; connect to the internet or other hosts.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files25 tools · clip_raster_with_shapefile, compute_ndvi, compute_s2_ndvi +22

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (118: 98 tools, 20 resources)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

append_gpdtool Reads two shapefiles directly, concatenates them vertically.CredentialsEnv varsSensitive pathsReads/writes files
Reads two shapefiles directly, concatenates them vertically.
clip_raster_with_shapefiletool Clip a raster dataset using polygons from a shapefile and write the result.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Clip a raster dataset using polygons from a shapefile and write the result.
    Converts the shapefile's CRS to match the raster's CRS if they are different.
    
    Parameters:
    - raster_path_or_url: local path or HTTPS URL of the source raster.
    - shapefile_path:     local filesystem path to a .shp file containing polygons.
    - destination:        local path where the masked raster will be written.
clip_vectortool Clip vector geometries using geopandas.clip.CredentialsEnv varsSensitive pathsReads/writes files
Clip vector geometries using geopandas.clip.
    Args:
        gdf_path: Path to the input geospatial file.
        clip_path: Path to the clipping geometry file.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
compute_ndvitool Compute NDVI (Normalized Difference Vegetation Index) and save to GeoTIFF.Filesoutside textReads/writes files
Compute NDVI (Normalized Difference Vegetation Index) and save to GeoTIFF.

    Parameters:
    - source:            input raster path.
    - red_band_index:    index of red band (1-based).
    - nir_band_index:    index of near-infrared band (1-based).
    - destination:       output NDVI raster path.
concat_bandstool Concatenate multiple single-band raster files into one multi-band raster, Filesoutside textReads/writes files
Concatenate multiple single-band raster files into one multi-band raster, 
    handling alignment issues automatically.

    Parameters:
    - folder_path:   Path to folder containing input raster files (e.g. GeoTIFFs).
    - destination:   Path to output multi-band raster file.

    Notes:
    - Files are read in sorted order by filename.
    - If rasters have mismatched CRS, resolution, or dimensions, they are aligned automatically.
create_maptool Create a styled map from multiple inputs (vectors, rasters, WKT, or coords).Filesoutside textReads/writes files
Create a styled map from multiple inputs (vectors, rasters, WKT, or coords).

    Args:
        layers: List of dicts, each containing "data" and "style".
            data can be: file path (.shp, .geojson, .tif), WKT string, coords, or GeoDataFrame
        filename: Output filename (without extension).
        filetype: png, pdf, jpg...
        title: Optional map title.
        show_grid: Draw a grid.
        add_legend: Add legend if labels are provided.
        output_dir: Directory to save output.
create_web_maptool Create an interactive web map (HTML) using Folium.Reads/writes files
Create an interactive web map (HTML) using Folium.
    Supports unique per-feature coloring when 'column' is provided in style.

    Args:
        layers (list): List of dicts like {"data": "...", "style": {...}}
            - "style" may include:
                {"label": "Layer Name", "color": "blue"}
                {"column": "NAME_1", "cmap": "tab20"}  # for unique feature colors
        filename (str): Output HTML filename.
        title (str): Main map title.
        output_dir (str): Output directory for HTML.
dissolve_gpdtool Dissolve geometries by attribute using geopandas.dissolve.CredentialsEnv varsSensitive pathsReads/writes files
Dissolve geometries by attribute using geopandas.dissolve.
    Args:
        gdf_path: Path to the geospatial file.
        by: Column to dissolve by (optional).
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
download_boundariestool Download GADM administrative boundaries and save as GeoJSON.CredentialsEnv varsSensitive pathsReads/writes files
Download GADM administrative boundaries and save as GeoJSON.

    Args:
        region: e.g. "USA" or "United States"
        level: 0=country, 1=state, 2=county, ...
        path: custom output folder

    Returns:
        {"status": "success", "file_path": "..."} or {"status": "error", "message": "..."}
download_climate_datatool Download climate data (ERA5 or other CDS datasets).CredentialsEnv varsSensitive pathsReads/writes files
Download climate data (ERA5 or other CDS datasets).

    Args:
        variable: e.g. "2m_temperature", "total_precipitation"
        year: e.g. "2024"
        month: "01".."12"
        day: "01".."31"
        time: Time of day (default: "12:00")
        dataset: CDS dataset name (default: "reanalysis-era5-single-levels")
        format: File format ("netcdf" or "grib")
        path: custom output folder (default: ./data/climate_data)

    Returns:
        {"status": "success", "file_path": "..."} or {"status": "error", "message": "..."}
download_satellite_imagerytool Download analysis-ready satellite imagery from Microsoft Planetary Computer (STAC + SAS).FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Download analysis-ready satellite imagery from Microsoft Planetary Computer (STAC + SAS).
    - Picks the least-cloudy item matching your query (by default Sentinel-2 L2A).
    - Downloads specified asset bands and writes a multi-band GeoTIFF.
    - Optional bbox/geometry crop and CRS reprojection.

    Args:
        collection: STAC collection id (e.g., "sentinel-2-l2a", "landsat-8-c2-l2")
        assets: list of asset keys to download (e.g., ["B04","B03","B02"])
        datetime: STAC datetime/interval (e.g., "2025-08-01/2025-08-31" or "2025-08-05")
        cloud_cover_lt: only items with eo:cloud_cover < this value. Use None to disable.
        bbox: "minx,miny,maxx,maxy" (in degrees if using search with WGS84). Used for cropping window.
        geometry_geojson: a GeoJSON geometry (string). If provided, precise clipping is applied.
        out_crs: target CRS for output (e.g., "EPSG:4326"). If None, keep source asset CRS.
        filename: output file name (without path). If None, an automatic name is generated.
        path: output folder. Defaults to ./data/satellite_imagery

    Returns:
        {"status": "success", "file_path": "...", "item_id": "...", "collection": "...", "assets": [...], "properties": {...}}
        or {"status": "error", "message": "..."}
download_species_occurrencestool Download occurrence records for a given species and save as JSON.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Download occurrence records for a given species and save as JSON.
    Args:
        scientific_name: Scientific name of the species (e.g., "Puma concolor")
        limit: Number of occurrence records to fetch (default: 100)
        path: Custom output folder (default: ./data/ecology_data)
    Returns:
        {"status": "success", "file_path": "..."} or {"status": "error", "message": "..."}
download_street_networktool Download a street network for a given place using OSMnx.CredentialsEnv varsSensitive pathsReads/writes files
Download a street network for a given place using OSMnx.
    Args:
        place: Name of the place (e.g., "Los Angeles, California, USA")
        network_type: Type of network ("drive", "walk", "bike", etc.). Ignored if custom_filter is provided.
        file_path: Optional. Full path where the GraphML file will be saved. If not set, saves to default location.
        custom_filter: Optional. OSMnx custom filter string to specify which roads to download (e.g., '["highway"~"motorway|trunk|primary"]').
    Returns:
        NetworkX graph as GraphML file path or error message.
download_worldcovertool Download ESA WorldCover (10 m) for the given AOI and year from Microsoft Planetary Computer.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Download ESA WorldCover (10 m) for the given AOI and year from Microsoft Planetary Computer.
    - Crops to bbox/geometry (WGS84), optional reprojection.
    - Writes a single-band categorical GeoTIFF (land cover classes).
    Notes:
      * On MPC, the collection is commonly 'esa-worldcover' with yearly items; the default here
        auto-selects by year. If your deployment uses different IDs, pass `collection` explicitly.
      * `asset_key` is typically 'map'.

    Args:
        year: WorldCover year (e.g., 2020, 2021, 2023).
        collection: STAC collection (default resolves to 'esa-worldcover').
        asset_key: Asset key to read ('map' usually).
        bbox: "minx,miny,maxx,maxy" WGS84.
        geometry_geojson: GeoJSON geometry string (WGS84).
        out_crs: Output CRS (default EPSG:4326).
        filename: Output filename (e.g., "worldcover_iran_2021.tif").
        path: Output directory.

    Returns:
        dict with status, file_path, item_id, collection, properties.
explode_gpdtool Split multi-part geometries into single parts using geopandas.explode.CredentialsEnv varsSensitive pathsReads/writes files
Split multi-part geometries into single parts using geopandas.explode.
    Args:
        gdf_path: Path to the geospatial file.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
extract_bandtool Extract a specific band from a multi-band raster and save it as a single-band GeoTIFF.Filesoutside textReads/writes files
Extract a specific band from a multi-band raster and save it as a single-band GeoTIFF.

    Parameters:
    - source:      path or URL of the input raster.
    - band_index:  index of the band to extract (1-based).
    - destination: path to save the extracted band raster.
focal_statisticstool Compute focal (moving window) statistics on a raster.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Compute focal (moving window) statistics on a raster.
    Args:
        raster_path: Path to the input raster.
        statistic: Statistic to compute ('mean', 'min', 'max', 'std').
        size: Window size (odd integer).
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output path if saved.
get_raster_crstool Retrieve the Coordinate Reference System (CRS) of a raster dataset.Filesoutside textReads/writes files
Retrieve the Coordinate Reference System (CRS) of a raster dataset.
    
    Opens the raster (local path or HTTPS URL), reads its DatasetReader.crs
    attribute as a PROJ.4-style dict, and also returns the WKT representation.
hillshadetool Generate hillshade from a DEM raster.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Generate hillshade from a DEM raster.
    Args:
        raster_path: Path to the DEM raster.
        azimuth: Sun azimuth angle in degrees.
        angle_altitude: Sun altitude angle in degrees.
        output_path: Optional path to save the hillshade raster.
    Returns:
        Dictionary with status, message, and output path if saved.
merge_gpdtool Merges two shapefiles based on common attribute columns,CredentialsEnv varsSensitive pathsReads/writes files
Merges two shapefiles based on common attribute columns,
    This function performs a database-style join, not a spatial join.
    Args:
        left_shapefile_path: Path to the left shapefile. The geometry from this file is preserved.
        right_shapefile_path: Path to the right shapefile to merge.
        output_path: Path to save the merged output shapefile.
        how: Type of merge. One of 'left', 'right', 'outer', 'inner'. Defaults to 'inner'.
        on: Column name to join on. Must be found in both shapefiles.
        left_on: Column name to join on in the left shapefile.
        right_on: Column name to join on in the right shapefile.
        suffixes: Suffix to apply to overlapping column names.
metadata_rastertool Open a raster dataset in read-only mode and return metadata.Filesoutside textReads/writes files
Open a raster dataset in read-only mode and return metadata.
    
    This tool supports two modes based on the provided string:
    1. A local filesystem path (e.g., "D:\\Data\\my_raster.tif").
    2. An HTTPS URL (e.g., "https://example.com/my_raster.tif").
    
    The input must be a single string that is either a valid file path
    on the local machine or a valid HTTPS URL pointing to a raster.
ols_with_spatial_diagnostics_safetool Safe MCP pipeline: Read shapefile, build/load W, convert numeric, check NaNs, run OLS.Filesoutside textReads/writes files
Safe MCP pipeline: Read shapefile, build/load W, convert numeric, check NaNs, run OLS.

    Parameters:
    - data_path: path to shapefile or GeoPackage
    - y_field: dependent variable column name
    - x_fields: list of independent variable column names
    - weights_path: optional path to existing weights file (.gal or .gwt)
    - weights_method: 'queen', 'rook', 'distance_band', or 'knn' (used if weights_path not provided)
    - id_field: optional attribute name to use as observation IDs
    - threshold: required if method='distance_band'
    - k: required if method='knn'
    - binary: True for binary weights (DistanceBand only)
overlay_gpdtool Overlay two GeoDataFrames using geopandas.overlay.CredentialsEnv varsSensitive pathsReads/writes files
Overlay two GeoDataFrames using geopandas.overlay.
    Args:
        gdf1_path: Path to the first geospatial file.
        gdf2_path: Path to the second geospatial file.
        how: Overlay method ('intersection', 'union', 'identity', 'symmetric_difference', 'difference').
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
raster_algebratool Perform algebraic operations (addition or subtraction) on two raster bands, Filesoutside textReads/writes files
Perform algebraic operations (addition or subtraction) on two raster bands, 
    handling alignment issues automatically.

    Parameters:
    - raster1:     Path to the first raster (.tif).
    - raster2:     Path to the second raster (.tif).
    - band_index:  Index of the band to process (1-based index).
    - operation:   Either "add" or "subtract" to specify the calculation.
    - destination: Path to save the result as a new raster.

    The function aligns rasters if needed, applies the selected operation, and saves the result.
raster_band_statisticstool Calculate min, max, mean, and std for each band of a raster.Filesoutside textReads/writes files
Calculate min, max, mean, and std for each band of a raster.

    Parameters:
    - source: path to input raster (local or URL).
raster_histogramtool Compute histogram of pixel values for each band.Filesoutside textReads/writes files
Compute histogram of pixel values for each band.

    Parameters:
    - source: path to input raster.
    - bins:   number of histogram bins.
reclassify_rastertool Reclassify raster values using a mapping dictionary.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Reclassify raster values using a mapping dictionary.
    Args:
        raster_path: Path to the input raster.
        reclass_map: Dictionary mapping old values to new values (e.g., {1: 10, 2: 20}).
        output_path: Path to save the reclassified raster.
    Returns:
        Dictionary with status and message.
reproject_rastertool Reproject a raster dataset to a new CRS and save the result.Filesoutside textReads/writes files
Reproject a raster dataset to a new CRS and save the result.
    
    Parameters:
    - source:      local path or HTTPS URL of the source raster.
    - target_crs:  target CRS string (e.g., "EPSG:4326").
    - destination: local filesystem path for the reprojected raster.
    - resampling:  resampling method: "nearest", "bilinear", "cubic", etc.
resample_rastertool Resample a raster dataset by a scale factor and save the result.Filesoutside textReads/writes files
Resample a raster dataset by a scale factor and save the result.
    
    Parameters:
    - source:       local path or HTTPS URL of the source raster.
    - scale_factor: multiplicative factor for width/height 
                    (e.g., 0.5 to halve resolution, 2.0 to double).
    - resampling:   resampling method name: "nearest", "bilinear", "cubic", etc.
    - destination:  local filesystem path for the resampled raster.
save_resultstool MCP Tool: Save any GIS-MCP result dict to files, only when the user requests.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
MCP Tool: Save any GIS-MCP result dict to files, only when the user requests.

    Args:
        data: The dictionary returned by any GIS-MCP tool.
        filename: Base filename without extension.
        formats: List of formats to save (default = all).
        folder: Target folder (relative to configured storage directory, or absolute path).

    Returns:
        Dict with 'saved_files' mapping format -> path.
sjoin_nearest_gpdtool Nearest neighbor spatial join using geopandas.sjoin_nearest.CredentialsEnv varsSensitive pathsReads/writes files
Nearest neighbor spatial join using geopandas.sjoin_nearest.
    Args:
        left_path: Path to the left geospatial file.
        right_path: Path to the right geospatial file.
        how: Type of join ('left', 'right').
        max_distance: Optional maximum search distance.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
tile_rastertool Split a raster into square tiles of a given size and save them individually.Filesoutside textReads/writes files
Split a raster into square tiles of a given size and save them individually.

    Parameters:
    - source:         input raster path.
    - tile_size:      size of each tile (e.g., 256 or 512).
    - destination_dir: directory to store the tiles.
weighted_band_sumtool Compute a weighted sum of all bands in a raster using specified weights.Filesoutside textReads/writes files
Compute a weighted sum of all bands in a raster using specified weights.

    Parameters:
    - source:      Path to the input multi-band raster file.
    - weights:     List of weights (must match number of bands and sum to 1).
    - destination: Path to save the output single-band raster.
write_file_gpdtool Export a GeoDataFrame to a file (Shapefile, GeoJSON, GPKG, etc.).CredentialsEnv varsSensitive pathsReads/writes files
Export a GeoDataFrame to a file (Shapefile, GeoJSON, GPKG, etc.).
    Args:
        gdf_path: Path to the input geospatial file.
        output_path: Path to save the exported file.
        driver: Optional OGR driver name (e.g., 'ESRI Shapefile', 'GeoJSON', 'GPKG').
    Returns:
        Dictionary with status and message.
write_rastertool Write a numpy array to a raster file using metadata from a reference raster.FilesCredentialsEnv varsSensitive pathsoutside textReads/writes files
Write a numpy array to a raster file using metadata from a reference raster.
    Args:
        array: 2D or 3D list (or numpy array) of raster values.
        reference_raster: Path to a raster whose metadata will be copied.
        output_path: Path to save the new raster.
        dtype: Optional data type (e.g., 'float32', 'uint8').
    Returns:
        Dictionary with status and message.
zonal_statisticstool Calculate statistics of raster values within polygons (zonal statistics).Filesoutside textReads/writes files
Calculate statistics of raster values within polygons (zonal statistics).
    Args:
        raster_path: Path to the raster file.
        vector_path: Path to the vector file (polygons).
        stats: List of statistics to compute (e.g., ["mean", "min", "max", "std"]).
    Returns:
        Dictionary with status, message, and statistics per polygon.
get_administrative_boundaries_operationsresource
No description.
get_advanced_operationsresource List available advanced operations.
List available advanced operations.
get_basic_operationsresource List available basic geometric operations.
List available basic geometric operations.
get_climate_operationsresource List available climate operations.
List available climate operations.
get_crs_info_operationsresource List available CRS information operations.
List available CRS information operations.
get_crs_transformationsresource List available CRS transformation operations.
List available CRS transformation operations.
get_ecology_operationsresource List available ecology operations.
List available ecology operations.
get_geodetic_operationsresource List available geodetic operations.
List available geodetic operations.
get_geometric_propertiesresource List available geometric property operations.
List available geometric property operations.
get_geopandas_ioresource List available GeoPandas I/O operations.
List available GeoPandas I/O operations.
get_geopandas_joinsresource List available GeoPandas join operations.
List available GeoPandas join operations.
get_land_productsresource List available land products operations.
List available land products operations.
get_measurementsresource List available measurement operations.
List available measurement operations.
get_movement_operationsresource List available movement operations.
List available movement operations.
get_rasterio_operationsresource List available rasterio operations.
List available rasterio operations.
get_satellite_operationsresource List available satellite imagery operations.
List available satellite imagery operations.
get_shapely_util_operationsresource List available Shapely utility/advanced operations.
List available Shapely utility/advanced operations.
get_spatial_operationsresource List available spatial analysis operations. This is for esda library. They are using pysal library.
List available spatial analysis operations. This is for esda library. They are using pysal library.
get_transformationsresource List available geometric transformations.
List available geometric transformations.
get_validation_operationsresource List available validation operations.
List available validation operations.
adbscantool Adaptive DBSCAN clustering (requires coordinates, no dependent_var).
Adaptive DBSCAN clustering (requires coordinates, no dependent_var).
buffertool Create a buffer around a geometry.
Create a buffer around a geometry.
build_and_transform_weightstool Build and transform spatial weights in one step.
Build and transform spatial weights in one step.

    Parameters:
    - data_path: Path to point shapefile or GeoPackage
    - method: 'queen', 'rook', 'distance_band', or 'knn'
    - id_field: Optional field name for IDs
    - threshold: Distance threshold (required if method='distance_band')
    - k: Number of neighbors (required if method='knn')
    - binary: True for binary weights, False for inverse distance (DistanceBand only)
    - transform_type: 'r', 'v', 'b', 'o', or 'd'
build_transform_and_save_weightstool Pipeline: Read shapefile, build spatial weights, optionally transform, and save to file.
Pipeline: Read shapefile, build spatial weights, optionally transform, and save to file.

    Parameters:
    - data_path: Path to point shapefile or GeoPackage
    - method: 'queen', 'rook', 'distance_band', 'knn'
    - id_field: Optional field name for IDs
    - threshold: Distance threshold (required if method='distance_band')
    - k: Number of neighbors (required if method='knn')
    - binary: True for binary weights, False for inverse distance (DistanceBand only)
    - transform_type: 'r', 'v', 'b', 'o', or 'd' (optional)
    - output_path: File path to save weights
    - format: 'gal' or 'gwt'
    - overwrite: Allow overwriting if file exists
calculate_geodetic_areatool Calculate area of a polygon using geodetic calculations.
Calculate area of a polygon using geodetic calculations.
calculate_geodetic_distancetool Calculate geodetic distance between points.
Calculate geodetic distance between points.
calculate_geodetic_pointtool Calculate point at given distance and azimuth.
Calculate point at given distance and azimuth.
calculate_shortest_pathtool Calculate the shortest path between two points using a saved street network.
Calculate the shortest path between two points using a saved street network.
    Args:
        graphml_path: Path to the saved GraphML file
        origin: (lat, lon) tuple for the origin
        destination: (lat, lon) tuple for the destination
    Returns:
        List of node IDs representing the shortest path or error message.
compute_s2_ndvitool Compute NDVI from Sentinel-2 L2A (B08=NIR, B04=Red) for an AOI/time window via MPC.FilesCredentialsEnv varsSensitive pathsoutside text
Compute NDVI from Sentinel-2 L2A (B08=NIR, B04=Red) for an AOI/time window via MPC.
    - Picks a low-cloud item intersecting the AOI.
    - Clips to AOI and writes single-band NDVI GeoTIFF scaled to float32 (-1..1).

    Args:
        datetime: STAC datetime/interval (e.g., "2024-07-01/2024-07-15").
        cloud_cover_lt: Only consider items with eo:cloud_cover < value. Use None to disable.
        bbox: "minx,miny,maxx,maxy" (WGS84).
        geometry_geojson: GeoJSON geometry (WGS84).
        out_crs: Output CRS for NDVI raster.
        filename: Output filename (default auto-generated).
        path: Output directory.

    Returns:
        dict with status, file_path, item_id, collection, properties.
convex_hulltool Calculate convex hull of a geometry.
Calculate convex hull of a geometry.
differencetool Find difference between geometries.
Find difference between geometries.
distance_band_weightstool Create a distance-based spatial weights (W) object from point data.
Create a distance-based spatial weights (W) object from point data.

    - data_path: path to point shapefile or GeoPackage
    - threshold: distance threshold for neighbors (in CRS units, e.g., meters)
    - binary: True for binary weights, False for inverse distance weights
    - id_field: optional attribute name to use as observation IDs
dynamic_lisatool Run dynamic LISA (directional LISA) with giddy.directional.Rose.
Run dynamic LISA (directional LISA) with giddy.directional.Rose.

    Returns sector counts, angles, vector lengths, and (optionally) permutation p-values.
envelopetool Get bounding box of a geometry.
Get bounding box of a geometry.
gamma_statistictool Compute Gamma Statistic for spatial autocorrelation.
Compute Gamma Statistic for spatial autocorrelation.
gearys_ctool Compute Global Geary's C Autocorrelation Statistic.
Compute Global Geary's C Autocorrelation Statistic.
geojson_to_geometrytool Convert GeoJSON to a Shapely geometry using shapely.geometry.shape.
Convert GeoJSON to a Shapely geometry using shapely.geometry.shape.
    Args:
        geojson: GeoJSON dictionary.
    Returns:
        Dictionary with status, message, and geometry as WKT.
geometry_to_geojsontool Convert a Shapely geometry (WKT) to GeoJSON using shapely.geometry.mapping.
Convert a Shapely geometry (WKT) to GeoJSON using shapely.geometry.mapping.
    Args:
        geometry: WKT string of the geometry.
    Returns:
        Dictionary with status, message, and GeoJSON representation.
get_areatool Get the area of a geometry.
Get the area of a geometry.
get_available_crstool Get list of available CRS.
Get list of available CRS.
get_boundstool Get the bounds of a geometry.
Get the bounds of a geometry.
get_centroidtool Get the centroid of a geometry.
Get the centroid of a geometry.
get_coordinatestool Get the coordinates of a geometry.
Get the coordinates of a geometry.
get_crs_infotool Get information about a CRS.
Get information about a CRS.
get_geocentric_crstool Get geocentric CRS for given coordinates.
Get geocentric CRS for given coordinates.
get_geod_infotool Get information about a geodetic calculation.
Get information about a geodetic calculation.
get_geometry_typetool Get the type of a geometry.
Get the type of a geometry.
get_lengthtool Get the length of a geometry.
Get the length of a geometry.
get_species_infotool Retrieve taxonomic information for a given species name.
Retrieve taxonomic information for a given species name.
    Args:
        scientific_name: Scientific name of the species (e.g., "Puma concolor")
    Returns:
        Taxonomic info dict or error message.
get_utm_crstool Get UTM CRS for given coordinates.
Get UTM CRS for given coordinates.
get_utm_zonetool Get UTM zone for given coordinates.
Get UTM zone for given coordinates.
getis_ord_gtool Compute Getis-Ord G for global hot spot analysis.
Compute Getis-Ord G for global hot spot analysis.
getis_ord_g_localtool Local Getis-Ord G.
Local Getis-Ord G.
gm_lagtool Run spreg.GM_Lag (spatial 2SLS / GMM-IV spatial lag model) on a cross-section.
Run spreg.GM_Lag (spatial 2SLS / GMM-IV spatial lag model) on a cross-section.

    Returns coefficients with SE/z/p, fit metrics, (optional) AK test, and a small data preview.
intersectiontool Find intersection of two geometries.
Find intersection of two geometries.
is_validtool Check if a geometry is valid.
Check if a geometry is valid.
join_countstool Global Binary Join Counts.
Global Binary Join Counts.
join_counts_localtool Local Join Counts.
Local Join Counts.
knn_weightstool Create a k-nearest neighbors spatial weights (W) object from point data.
Create a k-nearest neighbors spatial weights (W) object from point data.

    - data_path: path to point shapefile or GeoPackage
    - k: number of nearest neighbors
    - id_field: optional attribute name to use as observation IDs
make_validtool Make a geometry valid.
Make a geometry valid.
minimum_rotated_rectangletool Get minimum rotated rectangle of a geometry.
Get minimum rotated rectangle of a geometry.
moran_localtool Local Moran's I.
Local Moran's I.
morans_itool Compute Moran's I Global Autocorrelation Statistic.
Compute Moran's I Global Autocorrelation Statistic.
nearest_point_on_geometrytool Find the nearest point on geometry2 to geometry1 using shapely.ops.nearest_points.
Find the nearest point on geometry2 to geometry1 using shapely.ops.nearest_points.
    Args:
        geometry1: WKT string of the first geometry (e.g., a point).
        geometry2: WKT string of the second geometry.
    Returns:
        Dictionary with status, message, and the nearest point as WKT.
normalize_geometrytool Normalize the orientation/order of a geometry using shapely.normalize.
Normalize the orientation/order of a geometry using shapely.normalize.
    Args:
        geometry: WKT string of the geometry.
    Returns:
        Dictionary with status, message, and normalized geometry as WKT.
point_in_polygontool Check if points are inside polygons using spatial join (predicate='within').CredentialsEnv varsSensitive paths
Check if points are inside polygons using spatial join (predicate='within').
    Args:
        points_path: Path to the point geospatial file.
        polygons_path: Path to the polygon geospatial file.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
project_geometrytool Project a geometry between CRS.
Project a geometry between CRS.
read_file_gpdtool Reads a geospatial file and returns stats and a data preview.
Reads a geospatial file and returns stats and a data preview.
rotate_geometrytool Rotate a geometry.
Rotate a geometry.
scale_geometrytool Scale a geometry.
Scale a geometry.
simplifytool Simplify a geometry.
Simplify a geometry.
sjoin_gpdtool Spatial join between two GeoDataFrames using geopandas.sjoin.CredentialsEnv varsSensitive paths
Spatial join between two GeoDataFrames using geopandas.sjoin.
    Args:
        left_path: Path to the left geospatial file.
        right_path: Path to the right geospatial file.
        how: Type of join ('left', 'right', 'inner').
        predicate: Spatial predicate ('intersects', 'within', 'contains', etc.).
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
snap_geometrytool Snap one geometry to another using shapely.ops.snap.
Snap one geometry to another using shapely.ops.snap.
    Args:
        geometry1: WKT string of the geometry to be snapped.
        geometry2: WKT string of the reference geometry.
        tolerance: Distance tolerance for snapping.
    Returns:
        Dictionary with status, message, and snapped geometry as WKT.
spatial_markovtool Run giddy Spatial Markov on a panel (n regions x t periods) from a shapefile.
Run giddy Spatial Markov on a panel (n regions x t periods) from a shapefile.
symmetric_differencetool Find symmetric difference between geometries.
Find symmetric difference between geometries.
transform_coordinatestool Transform coordinates between CRS.
Transform coordinates between CRS.
translate_geometrytool Translate a geometry.
Translate a geometry.
triangulate_geometrytool Create a triangulation of a geometry.
Create a triangulation of a geometry.
unary_union_geometriestool Create a union of multiple geometries.
Create a union of multiple geometries.
uniontool Combine two geometries.
Combine two geometries.
voronoitool Create a Voronoi diagram from points.
Create a Voronoi diagram from points.
weights_from_shapefiletool Create a spatial weights (W) from a shapefile using contiguity.
Create a spatial weights (W) from a shapefile using contiguity.

    - contiguity: 'queen' or 'rook' (default 'queen')
    - id_field: optional attribute name to use as observation IDs

Text the model reads (118)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

download_boundaries tool
Download GADM administrative boundaries and save as GeoJSON.

    Args:
        region: e.g. "USA" or "United States"
        level: 0=country, 1=state, 2=county, ...
        path: custom output folder

    Returns:
        {"status": "success", "file_path": "..."} or {"status": "error", "message": "..."}
download_climate_data tool
Download climate data (ERA5 or other CDS datasets).

    Args:
        variable: e.g. "2m_temperature", "total_precipitation"
        year: e.g. "2024"
        month: "01".."12"
        day: "01".."31"
        time: Time of day (default: "12:00")
        dataset: CDS dataset name (default: "reanalysis-era5-single-levels")
        format: File format ("netcdf" or "grib")
        path: custom output folder (default: ./data/climate_data)

    Returns:
        {"status": "success", "file_path": "..."} or {"status": "error", "message": "..."}
get_species_info tool
Retrieve taxonomic information for a given species name.
    Args:
        scientific_name: Scientific name of the species (e.g., "Puma concolor")
    Returns:
        Taxonomic info dict or error message.
download_species_occurrences tool
Download occurrence records for a given species and save as JSON.
    Args:
        scientific_name: Scientific name of the species (e.g., "Puma concolor")
        limit: Number of occurrence records to fetch (default: 100)
        path: Custom output folder (default: ./data/ecology_data)
    Returns:
        {"status": "success", "file_path": "..."} or {"status": "error", "message": "..."}
download_worldcover tool
Download ESA WorldCover (10 m) for the given AOI and year from Microsoft Planetary Computer.
    - Crops to bbox/geometry (WGS84), optional reprojection.
    - Writes a single-band categorical GeoTIFF (land cover classes).
    Notes:
      * On MPC, the collection is commonly 'esa-worldcover' with yearly items; the default here
        auto-selects by year. If your deployment uses different IDs, pass `collection` explicitly.
      * `asset_key` is typically 'map'.

    Args:
        year: WorldCover year (e.g., 2020, 2021, 2023).
        collection: STAC collection (default resolves to 'esa-worldcover').
        asset_key: Asset key to read ('map' usually).
        bbox: "minx,miny,maxx,maxy" WGS84.
        geometry_geojson: GeoJSON geometry string (WGS84).
        out_crs: Output CRS (default EPSG:4326).
        filename: Output filename (e.g., "worldcover_iran_2021.tif").
        path: Output directory.

    Returns:
        dict with status, file_path, item_id, collection, properties.
compute_s2_ndvi tool
Compute NDVI from Sentinel-2 L2A (B08=NIR, B04=Red) for an AOI/time window via MPC.
    - Picks a low-cloud item intersecting the AOI.
    - Clips to AOI and writes single-band NDVI GeoTIFF scaled to float32 (-1..1).

    Args:
        datetime: STAC datetime/interval (e.g., "2024-07-01/2024-07-15").
        cloud_cover_lt: Only consider items with eo:cloud_cover < value. Use None to disable.
        bbox: "minx,miny,maxx,maxy" (WGS84).
        geometry_geojson: GeoJSON geometry (WGS84).
        out_crs: Output CRS for NDVI raster.
        filename: Output filename (default auto-generated).
        path: Output directory.

    Returns:
        dict with status, file_path, item_id, collection, properties.
download_street_network tool
Download a street network for a given place using OSMnx.
    Args:
        place: Name of the place (e.g., "Los Angeles, California, USA")
        network_type: Type of network ("drive", "walk", "bike", etc.). Ignored if custom_filter is provided.
        file_path: Optional. Full path where the GraphML file will be saved. If not set, saves to default location.
        custom_filter: Optional. OSMnx custom filter string to specify which roads to download (e.g., '["highway"~"motorway|trunk|primary"]').
    Returns:
        NetworkX graph as GraphML file path or error message.
calculate_shortest_path tool
Calculate the shortest path between two points using a saved street network.
    Args:
        graphml_path: Path to the saved GraphML file
        origin: (lat, lon) tuple for the origin
        destination: (lat, lon) tuple for the destination
    Returns:
        List of node IDs representing the shortest path or error message.
download_satellite_imagery tool
Download analysis-ready satellite imagery from Microsoft Planetary Computer (STAC + SAS).
    - Picks the least-cloudy item matching your query (by default Sentinel-2 L2A).
    - Downloads specified asset bands and writes a multi-band GeoTIFF.
    - Optional bbox/geometry crop and CRS reprojection.

    Args:
        collection: STAC collection id (e.g., "sentinel-2-l2a", "landsat-8-c2-l2")
        assets: list of asset keys to download (e.g., ["B04","B03","B02"])
        datetime: STAC datetime/interval (e.g., "2025-08-01/2025-08-31" or "2025-08-05")
        cloud_cover_lt: only items with eo:cloud_cover < this value. Use None to disable.
        bbox: "minx,miny,maxx,maxy" (in degrees if using search with WGS84). Used for cropping window.
        geometry_geojson: a GeoJSON geometry (string). If provided, precise clipping is applied.
        out_crs: target CRS for output (e.g., "EPSG:4326"). If None, keep source asset CRS.
        filename: output file name (without path). If None, an automatic name is generated.
        path: output folder. Defaults to ./data/satellite_imagery

    Returns:
        {"status": "success", "file_path": "...", "item_id": "...", "collection": "...", "assets": [...], "properties": {...}}
        or {"status": "error", "message": "..."}
read_file_gpd tool
Reads a geospatial file and returns stats and a data preview.
append_gpd tool
Reads two shapefiles directly, concatenates them vertically.
merge_gpd tool
Merges two shapefiles based on common attribute columns,
    This function performs a database-style join, not a spatial join.
    Args:
        left_shapefile_path: Path to the left shapefile. The geometry from this file is preserved.
        right_shapefile_path: Path to the right shapefile to merge.
        output_path: Path to save the merged output shapefile.
        how: Type of merge. One of 'left', 'right', 'outer', 'inner'. Defaults to 'inner'.
        on: Column name to join on. Must be found in both shapefiles.
        left_on: Column name to join on in the left shapefile.
        right_on: Column name to join on in the right shapefile.
        suffixes: Suffix to apply to overlapping column names.
overlay_gpd tool
Overlay two GeoDataFrames using geopandas.overlay.
    Args:
        gdf1_path: Path to the first geospatial file.
        gdf2_path: Path to the second geospatial file.
        how: Overlay method ('intersection', 'union', 'identity', 'symmetric_difference', 'difference').
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
dissolve_gpd tool
Dissolve geometries by attribute using geopandas.dissolve.
    Args:
        gdf_path: Path to the geospatial file.
        by: Column to dissolve by (optional).
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
explode_gpd tool
Split multi-part geometries into single parts using geopandas.explode.
    Args:
        gdf_path: Path to the geospatial file.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
clip_vector tool
Clip vector geometries using geopandas.clip.
    Args:
        gdf_path: Path to the input geospatial file.
        clip_path: Path to the clipping geometry file.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
sjoin_gpd tool
Spatial join between two GeoDataFrames using geopandas.sjoin.
    Args:
        left_path: Path to the left geospatial file.
        right_path: Path to the right geospatial file.
        how: Type of join ('left', 'right', 'inner').
        predicate: Spatial predicate ('intersects', 'within', 'contains', etc.).
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
sjoin_nearest_gpd tool
Nearest neighbor spatial join using geopandas.sjoin_nearest.
    Args:
        left_path: Path to the left geospatial file.
        right_path: Path to the right geospatial file.
        how: Type of join ('left', 'right').
        max_distance: Optional maximum search distance.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
point_in_polygon tool
Check if points are inside polygons using spatial join (predicate='within').
    Args:
        points_path: Path to the point geospatial file.
        polygons_path: Path to the polygon geospatial file.
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output info.
write_file_gpd tool
Export a GeoDataFrame to a file (Shapefile, GeoJSON, GPKG, etc.).
    Args:
        gdf_path: Path to the input geospatial file.
        output_path: Path to save the exported file.
        driver: Optional OGR driver name (e.g., 'ESRI Shapefile', 'GeoJSON', 'GPKG').
    Returns:
        Dictionary with status and message.
transform_coordinates tool
Transform coordinates between CRS.
project_geometry tool
Project a geometry between CRS.
get_crs_info tool
Get information about a CRS.
get_available_crs tool
Get list of available CRS.
get_geod_info tool
Get information about a geodetic calculation.
calculate_geodetic_distance tool
Calculate geodetic distance between points.
calculate_geodetic_point tool
Calculate point at given distance and azimuth.
calculate_geodetic_area tool
Calculate area of a polygon using geodetic calculations.
get_utm_zone tool
Get UTM zone for given coordinates.
get_utm_crs tool
Get UTM CRS for given coordinates.
get_geocentric_crs tool
Get geocentric CRS for given coordinates.
getis_ord_g tool
Compute Getis-Ord G for global hot spot analysis.
morans_i tool
Compute Moran's I Global Autocorrelation Statistic.
gearys_c tool
Compute Global Geary's C Autocorrelation Statistic.
gamma_statistic tool
Compute Gamma Statistic for spatial autocorrelation.
moran_local tool
Local Moran's I.
getis_ord_g_local tool
Local Getis-Ord G.
join_counts tool
Global Binary Join Counts.
join_counts_local tool
Local Join Counts.
adbscan tool
Adaptive DBSCAN clustering (requires coordinates, no dependent_var).
weights_from_shapefile tool
Create a spatial weights (W) from a shapefile using contiguity.

    - contiguity: 'queen' or 'rook' (default 'queen')
    - id_field: optional attribute name to use as observation IDs
distance_band_weights tool
Create a distance-based spatial weights (W) object from point data.

    - data_path: path to point shapefile or GeoPackage
    - threshold: distance threshold for neighbors (in CRS units, e.g., meters)
    - binary: True for binary weights, False for inverse distance weights
    - id_field: optional attribute name to use as observation IDs
knn_weights tool
Create a k-nearest neighbors spatial weights (W) object from point data.

    - data_path: path to point shapefile or GeoPackage
    - k: number of nearest neighbors
    - id_field: optional attribute name to use as observation IDs
build_transform_and_save_weights tool
Pipeline: Read shapefile, build spatial weights, optionally transform, and save to file.

    Parameters:
    - data_path: Path to point shapefile or GeoPackage
    - method: 'queen', 'rook', 'distance_band', 'knn'
    - id_field: Optional field name for IDs
    - threshold: Distance threshold (required if method='distance_band')
    - k: Number of neighbors (required if method='knn')
    - binary: True for binary weights, False for inverse distance (DistanceBand only)
    - transform_type: 'r', 'v', 'b', 'o', or 'd' (optional)
    - output_path: File path to save weights
    - format: 'gal' or 'gwt'
    - overwrite: Allow overwriting if file exists
ols_with_spatial_diagnostics_safe tool
Safe MCP pipeline: Read shapefile, build/load W, convert numeric, check NaNs, run OLS.

    Parameters:
    - data_path: path to shapefile or GeoPackage
    - y_field: dependent variable column name
    - x_fields: list of independent variable column names
    - weights_path: optional path to existing weights file (.gal or .gwt)
    - weights_method: 'queen', 'rook', 'distance_band', or 'knn' (used if weights_path not provided)
    - id_field: optional attribute name to use as observation IDs
    - threshold: required if method='distance_band'
    - k: required if method='knn'
    - binary: True for binary weights (DistanceBand only)
build_and_transform_weights tool
Build and transform spatial weights in one step.

    Parameters:
    - data_path: Path to point shapefile or GeoPackage
    - method: 'queen', 'rook', 'distance_band', or 'knn'
    - id_field: Optional field name for IDs
    - threshold: Distance threshold (required if method='distance_band')
    - k: Number of neighbors (required if method='knn')
    - binary: True for binary weights, False for inverse distance (DistanceBand only)
    - transform_type: 'r', 'v', 'b', 'o', or 'd'
spatial_markov tool
Run giddy Spatial Markov on a panel (n regions x t periods) from a shapefile.
dynamic_lisa tool
Run dynamic LISA (directional LISA) with giddy.directional.Rose.

    Returns sector counts, angles, vector lengths, and (optionally) permutation p-values.
gm_lag tool
Run spreg.GM_Lag (spatial 2SLS / GMM-IV spatial lag model) on a cross-section.

    Returns coefficients with SE/z/p, fit metrics, (optional) AK test, and a small data preview.
zonal_statistics tool
Calculate statistics of raster values within polygons (zonal statistics).
    Args:
        raster_path: Path to the raster file.
        vector_path: Path to the vector file (polygons).
        stats: List of statistics to compute (e.g., ["mean", "min", "max", "std"]).
    Returns:
        Dictionary with status, message, and statistics per polygon.
reclassify_raster tool
Reclassify raster values using a mapping dictionary.
    Args:
        raster_path: Path to the input raster.
        reclass_map: Dictionary mapping old values to new values (e.g., {1: 10, 2: 20}).
        output_path: Path to save the reclassified raster.
    Returns:
        Dictionary with status and message.
focal_statistics tool
Compute focal (moving window) statistics on a raster.
    Args:
        raster_path: Path to the input raster.
        statistic: Statistic to compute ('mean', 'min', 'max', 'std').
        size: Window size (odd integer).
        output_path: Optional path to save the result.
    Returns:
        Dictionary with status, message, and output path if saved.
hillshade tool
Generate hillshade from a DEM raster.
    Args:
        raster_path: Path to the DEM raster.
        azimuth: Sun azimuth angle in degrees.
        angle_altitude: Sun altitude angle in degrees.
        output_path: Optional path to save the hillshade raster.
    Returns:
        Dictionary with status, message, and output path if saved.
write_raster tool
Write a numpy array to a raster file using metadata from a reference raster.
    Args:
        array: 2D or 3D list (or numpy array) of raster values.
        reference_raster: Path to a raster whose metadata will be copied.
        output_path: Path to save the new raster.
        dtype: Optional data type (e.g., 'float32', 'uint8').
    Returns:
        Dictionary with status and message.
metadata_raster tool
Open a raster dataset in read-only mode and return metadata.
    
    This tool supports two modes based on the provided string:
    1. A local filesystem path (e.g., "D:\\\\Data\\\\my_raster.tif").
    2. An HTTPS URL (e.g., "https://example.com/my_raster.tif").
    
    The input must be a single string that is either a valid file path
    on the local machine or a valid HTTPS URL pointing to a raster.
get_raster_crs tool
Retrieve the Coordinate Reference System (CRS) of a raster dataset.
    
    Opens the raster (local path or HTTPS URL), reads its DatasetReader.crs
    attribute as a PROJ.4-style dict, and also returns the WKT representation.
clip_raster_with_shapefile tool
Clip a raster dataset using polygons from a shapefile and write the result.
    Converts the shapefile's CRS to match the raster's CRS if they are different.
    
    Parameters:
    - raster_path_or_url: local path or HTTPS URL of the source raster.
    - shapefile_path:     local filesystem path to a .shp file containing polygons.
    - destination:        local path where the masked raster will be written.
resample_raster tool
Resample a raster dataset by a scale factor and save the result.
    
    Parameters:
    - source:       local path or HTTPS URL of the source raster.
    - scale_factor: multiplicative factor for width/height 
                    (e.g., 0.5 to halve resolution, 2.0 to double).
    - resampling:   resampling method name: "nearest", "bilinear", "cubic", etc.
    - destination:  local filesystem path for the resampled raster.
reproject_raster tool
Reproject a raster dataset to a new CRS and save the result.
    
    Parameters:
    - source:      local path or HTTPS URL of the source raster.
    - target_crs:  target CRS string (e.g., "EPSG:4326").
    - destination: local filesystem path for the reprojected raster.
    - resampling:  resampling method: "nearest", "bilinear", "cubic", etc.
extract_band tool
Extract a specific band from a multi-band raster and save it as a single-band GeoTIFF.

    Parameters:
    - source:      path or URL of the input raster.
    - band_index:  index of the band to extract (1-based).
    - destination: path to save the extracted band raster.
raster_band_statistics tool
Calculate min, max, mean, and std for each band of a raster.

    Parameters:
    - source: path to input raster (local or URL).
tile_raster tool
Split a raster into square tiles of a given size and save them individually.

    Parameters:
    - source:         input raster path.
    - tile_size:      size of each tile (e.g., 256 or 512).
    - destination_dir: directory to store the tiles.
raster_histogram tool
Compute histogram of pixel values for each band.

    Parameters:
    - source: path to input raster.
    - bins:   number of histogram bins.
compute_ndvi tool
Compute NDVI (Normalized Difference Vegetation Index) and save to GeoTIFF.

    Parameters:
    - source:            input raster path.
    - red_band_index:    index of red band (1-based).
    - nir_band_index:    index of near-infrared band (1-based).
    - destination:       output NDVI raster path.
raster_algebra tool
Perform algebraic operations (addition or subtraction) on two raster bands, 
    handling alignment issues automatically.

    Parameters:
    - raster1:     Path to the first raster (.tif).
    - raster2:     Path to the second raster (.tif).
    - band_index:  Index of the band to process (1-based index).
    - operation:   Either "add" or "subtract" to specify the calculation.
    - destination: Path to save the result as a new raster.

    The function aligns rasters if needed, applies the selected operation, and saves the result.
concat_bands tool
Concatenate multiple single-band raster files into one multi-band raster, 
    handling alignment issues automatically.

    Parameters:
    - folder_path:   Path to folder containing input raster files (e.g. GeoTIFFs).
    - destination:   Path to output multi-band raster file.

    Notes:
    - Files are read in sorted order by filename.
    - If rasters have mismatched CRS, resolution, or dimensions, they are aligned automatically.
weighted_band_sum tool
Compute a weighted sum of all bands in a raster using specified weights.

    Parameters:
    - source:      Path to the input multi-band raster file.
    - weights:     List of weights (must match number of bands and sum to 1).
    - destination: Path to save the output single-band raster.
save_results tool
MCP Tool: Save any GIS-MCP result dict to files, only when the user requests.

    Args:
        data: The dictionary returned by any GIS-MCP tool.
        filename: Base filename without extension.
        formats: List of formats to save (default = all).
        folder: Target folder (relative to configured storage directory, or absolute path).

    Returns:
        Dict with 'saved_files' mapping format -> path.
buffer tool
Create a buffer around a geometry.
intersection tool
Find intersection of two geometries.
union tool
Combine two geometries.
difference tool
Find difference between geometries.
symmetric_difference tool
Find symmetric difference between geometries.
convex_hull tool
Calculate convex hull of a geometry.
envelope tool
Get bounding box of a geometry.
minimum_rotated_rectangle tool
Get minimum rotated rectangle of a geometry.
get_centroid tool
Get the centroid of a geometry.
get_bounds tool
Get the bounds of a geometry.
get_coordinates tool
Get the coordinates of a geometry.
get_geometry_type tool
Get the type of a geometry.
rotate_geometry tool
Rotate a geometry.
scale_geometry tool
Scale a geometry.
translate_geometry tool
Translate a geometry.
triangulate_geometry tool
Create a triangulation of a geometry.
voronoi tool
Create a Voronoi diagram from points.
unary_union_geometries tool
Create a union of multiple geometries.
get_length tool
Get the length of a geometry.
get_area tool
Get the area of a geometry.
is_valid tool
Check if a geometry is valid.
make_valid tool
Make a geometry valid.
simplify tool
Simplify a geometry.
snap_geometry tool
Snap one geometry to another using shapely.ops.snap.
    Args:
        geometry1: WKT string of the geometry to be snapped.
        geometry2: WKT string of the reference geometry.
        tolerance: Distance tolerance for snapping.
    Returns:
        Dictionary with status, message, and snapped geometry as WKT.
nearest_point_on_geometry tool
Find the nearest point on geometry2 to geometry1 using shapely.ops.nearest_points.
    Args:
        geometry1: WKT string of the first geometry (e.g., a point).
        geometry2: WKT string of the second geometry.
    Returns:
        Dictionary with status, message, and the nearest point as WKT.
normalize_geometry tool
Normalize the orientation/order of a geometry using shapely.normalize.
    Args:
        geometry: WKT string of the geometry.
    Returns:
        Dictionary with status, message, and normalized geometry as WKT.
geometry_to_geojson tool
Convert a Shapely geometry (WKT) to GeoJSON using shapely.geometry.mapping.
    Args:
        geometry: WKT string of the geometry.
    Returns:
        Dictionary with status, message, and GeoJSON representation.
geojson_to_geometry tool
Convert GeoJSON to a Shapely geometry using shapely.geometry.shape.
    Args:
        geojson: GeoJSON dictionary.
    Returns:
        Dictionary with status, message, and geometry as WKT.
create_map tool
Create a styled map from multiple inputs (vectors, rasters, WKT, or coords).

    Args:
        layers: List of dicts, each containing "data" and "style".
            data can be: file path (.shp, .geojson, .tif), WKT string, coords, or GeoDataFrame
        filename: Output filename (without extension).
        filetype: png, pdf, jpg...
        title: Optional map title.
        show_grid: Draw a grid.
        add_legend: Add legend if labels are provided.
        output_dir: Directory to save output.
create_web_map tool
Create an interactive web map (HTML) using Folium.
    Supports unique per-feature coloring when 'column' is provided in style.

    Args:
        layers (list): List of dicts like {"data": "...", "style": {...}}
            - "style" may include:
                {"label": "Layer Name", "color": "blue"}
                {"column": "NAME_1", "cmap": "tab20"}  # for unique feature colors
        filename (str): Output HTML filename.
        title (str): Main map title.
        output_dir (str): Output directory for HTML.
get_administrative_boundaries_operations resource
get_climate_operations resource
List available climate operations.
get_ecology_operations resource
List available ecology operations.
get_land_products resource
List available land products operations.
get_movement_operations resource
List available movement operations.
get_satellite_operations resource
List available satellite imagery operations.
get_geopandas_io resource
List available GeoPandas I/O operations.
get_geopandas_joins resource
List available GeoPandas join operations.
get_crs_transformations resource
List available CRS transformation operations.
get_crs_info_operations resource
List available CRS information operations.
get_geodetic_operations resource
List available geodetic operations.
get_spatial_operations resource
List available spatial analysis operations. This is for esda library. They are using pysal library.
get_rasterio_operations resource
List available rasterio operations.
get_basic_operations resource
List available basic geometric operations.
get_geometric_properties resource
List available geometric property operations.
get_transformations resource
List available geometric transformations.
get_advanced_operations resource
List available advanced operations.
get_measurements resource
List available measurement operations.
get_validation_operations resource
List available validation operations.
get_shapely_util_operations resource
List available Shapely utility/advanced operations.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure0.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 118 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 118 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path HIGH
    69 findings in append_gpd, clip_raster_with_shapefile, clip_vector, compute_ndvi and more; 8 more to review
  • Requests any address
    No tool sends a request to an address the caller supplies — 118 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 118 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 118 capabilities; 98 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    25 of 118 capabilities touch files; 73 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 118 capabilities; 98 more call code the scanner could not follow, where it may happen
Where the code is: 118 handlers in 14 files at commit be8a33d25aef
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    8 manifests: agents/LangGraph/requirements.txt, agents/Langchain/requirements.txt, agents/OpenAI-Nodejs/package.json, pyproject.toml, templates/langchain-gis-agent/requirements.txt
  • Lockfiles checked against OSV
    6 files resolved and checked against the OSV database; 8 not resolved: agents/LangGraph/requirements.txt: 7 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile; agents/Langchain/requirements.txt: 5 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    fastmcp ==2.13.1
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    23 of 118 capabilities read credentials; 75 more call code the scanner could not follow, where it may happen
  • Environment variables
    23 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKfastmcp ==2.13.1
Servers in the code1 (GIS MCP)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-08-21
Signed releasesnot checked yet

Where it is published

Listed in3 catalogs (github_search, glama, mcp_toplist)
LicenseMIT
Created2025-05-07

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.