Skip to main content
Glama
GIS MCP Server
by mahdin75

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Geometry strings are WKT. Paths are local files. Defaults match the full result. Pass include_geometry=false, compact=true, max_features, max_records, limit, or precision to shrink a response.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_file_gpdB

Summarize a vector file: row count, columns, CRS, bounds, and a 5-row preview that includes WKT. Pass include_geometry=false to omit geometry.

append_gpdC

Vertically concatenate two vector files and save a shapefile.

merge_gpdB

Attribute join of two vector files. Keeps the first file's geometry and uses an inner join on shared column names.

overlay_gpdC

Spatial overlay of two vector files. how is intersection, union, identity, symmetric_difference, or difference.

dissolve_gpdC

Dissolve vector features, optionally grouped by one attribute column.

explode_gpdC

Split multi-part geometries into single-part features.

clip_vectorC

Clip vector features to the polygon extent of another vector file.

sjoin_gpdC

Spatial join of two vector files. how is left, right, or inner. predicate is intersects, within, contains, crosses, overlaps, or touches.

sjoin_nearest_gpdC

Join each feature to the nearest feature in another file. Optional max_distance is in CRS units.

point_in_polygonC

Assign each point the attributes of the polygon that contains it.

write_file_gpdB

Export a vector file to another path. driver may be ESRI Shapefile, GeoJSON, or GPKG.

bufferC

Create a buffer around a geometry.

intersectionC

Find intersection of two geometries.

unionC

Combine two geometries.

differenceC

Find difference between geometries.

symmetric_differenceC

Find symmetric difference between geometries.

convex_hullC

Calculate convex hull of a geometry.

envelopeC

Get bounding box of a geometry.

minimum_rotated_rectangleC

Get minimum rotated rectangle of a geometry.

get_centroidC

Get the centroid of a geometry.

get_boundsC

Get the bounds of a geometry.

get_coordinatesB

List coordinates of a point or line. precision rounds values. max_coords and offset page long lines.

get_geometry_typeC

Get the type of a geometry.

rotate_geometryC

Rotate a geometry.

scale_geometryD

Scale a geometry.

translate_geometryD

Translate a geometry.

triangulate_geometryC

Create a triangulation of a geometry.

voronoiC

Create a Voronoi diagram from points.

unary_union_geometriesC

Create a union of multiple geometries.

get_lengthC

Get the length of a geometry.

get_areaC

Get the area of a geometry.

is_validC

Check if a geometry is valid.

make_validC

Make a geometry valid.

simplifyD

Simplify a geometry.

snap_geometryB

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_geometryB

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_geometryA

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_geojsonA

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_geometryC

Convert GeoJSON to a Shapely geometry using shapely.geometry.shape. Args: geojson: GeoJSON dictionary. Returns: Dictionary with status, message, and geometry as WKT.

zonal_statisticsC

Summarize raster values inside each polygon. stats can include mean, min, max, std, and count.

reclassify_rasterC

Replace raster cell values using a mapping of old value to new value and save the raster.

focal_statisticsC

Moving-window statistic on a raster. statistic is mean, min, max, or std. size is the window width in pixels.

hillshadeC

Create a hillshade raster from an elevation raster.

write_rasterC

Write a 2D array as a raster using the grid of a reference raster.

metadata_rasterB

Raster grid metadata: size, band count, dtype, nodata, CRS, bounds, and affine transform. Accepts a local path or HTTPS URL.

get_raster_crsC

Raster CRS as a PROJ dict and WKT. Accepts a local path or HTTPS URL.

clip_raster_with_shapefileC

Clip a raster to shapefile polygons and save it. The shapefile is reprojected to the raster CRS when needed.

resample_rasterC

Resample a raster by a scale factor and save the result.

reproject_rasterC

Reproject a raster to a target CRS and save the result.

extract_bandC

Extract one band by index and save a single-band raster.

raster_band_statisticsC

Min, max, mean, and standard deviation for each raster band.

tile_rasterC

Split a raster into square tiles of tile_size pixels and save them.

raster_histogramC

Per-band histogram of pixel values. The default uses the requested bins. compact=true returns at most 32 bins.

compute_ndviC

Compute NDVI from red and near-infrared band indexes and save a GeoTIFF.

raster_algebraC

Add or subtract two raster bands and save the result.

concat_bandsC

Stack single-band rasters into one multi-band raster.

weighted_band_sumC

Weighted sum of raster bands, saved as one band.

transform_coordinatesC

Transform coordinates between CRS.

project_geometryC

Project a geometry between CRS.

get_crs_infoC

Get information about a CRS.

get_available_crsB

List EPSG coordinate reference systems, 100 by default, same as before. query filters by code or name. limit caps the list.

get_geod_infoD

Get information about a geodetic calculation.

calculate_geodetic_distanceC

Calculate geodetic distance between points.

calculate_geodetic_pointC

Calculate point at given distance and azimuth.

calculate_geodetic_areaC

Calculate area of a polygon using geodetic calculations.

get_utm_zoneC

Get UTM zone for given coordinates.

get_utm_crsC

Get UTM CRS for given coordinates.

get_geocentric_crsC

Get geocentric CRS for given coordinates.

getis_ord_gC

Compute Getis-Ord G for global hot spot analysis.

morans_iC

Compute Moran's I Global Autocorrelation Statistic.

gearys_cC

Compute Global Geary's C Autocorrelation Statistic.

gamma_statisticC

Compute Gamma Statistic for spatial autocorrelation.

moran_localD

Local Moran's I. Pass max_records to cap per-feature arrays.

getis_ord_g_localC

Local Getis-Ord G. Pass max_records to cap per-feature arrays.

join_countsD

Global Binary Join Counts.

join_counts_localC

Local join counts for a binary attribute. Pass max_records to cap the per-feature array.

adbscanC

Adaptive DBSCAN clustering (requires coordinates, no dependent_var).

weights_from_shapefileB

Build queen or rook contiguity weights. Returns a neighbor summary, not the full weights matrix.

distance_band_weightsC

Build distance-band spatial weights from point coordinates. threshold is in CRS units.

knn_weightsC

Build k-nearest-neighbor spatial weights from point coordinates.

build_transform_and_save_weightsC

Build spatial weights, optionally transform them, and save a GAL or GWT file. method is queen, rook, distance_band, or knn.

ols_with_spatial_diagnostics_safeC

Ordinary least squares with spatial diagnostics. weights_method is queen, rook, distance_band, or knn.

build_and_transform_weightsC

Build and transform spatial weights in memory. method is queen, rook, distance_band, or knn.

spatial_markovC

Spatial Markov transition matrix for a panel of regional values stored as columns.

dynamic_lisaC

Directional LISA (Rose diagram) for a panel of regional values.

gm_lagC

Spatial lag regression (GM/GMM). Returns coefficients, standard errors, and fit statistics.

save_resultsC

Save a previous tool result dictionary to files under the storage folder.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_geopandas_ioList available GeoPandas I/O operations.
get_geopandas_joinsList available GeoPandas join operations.
get_basic_operationsList available basic geometric operations.
get_geometric_propertiesList available geometric property operations.
get_transformationsList available geometric transformations.
get_advanced_operationsList available advanced operations.
get_measurementsList available measurement operations.
get_validation_operationsList available validation operations.
get_shapely_util_operationsList available Shapely utility/advanced operations.
get_rasterio_operationsList available rasterio operations.
get_crs_transformationsList available CRS transformation operations.
get_crs_info_operationsList available CRS information operations.
get_geodetic_operationsList available geodetic operations.
get_spatial_operationsList available spatial analysis operations. This is for esda library. They are using pysal library.

TDQS

C2.4/5.0

Scored across 87 tools

Disambiguation3/5

Many tools are clearly distinct, but several overlapping clusters exist: project_geometry vs transform_coordinates, build_transform_and_save_weights vs build_and_transform_weights, weights_from_shapefile/distance_band_weights/knn_weights, and point_in_polygon vs sjoin_gpd. Descriptions help, but the sheer number of similar spatial-weights and CRS tools makes misselection plausible.

Naming Consistency3/5

All names are snake_case and generally descriptive, but the verb convention is mixed: some are verb_noun (get_area, clip_raster_with_shapefile), some are bare verbs (buffer, union, simplify), and some use noun-first or statistical labels (morans_i, distance_band_weights, spatial_markov). The _gpd suffix is useful but inconsistently applied to vector operations.

Tool Count2/5

87 tools is far too many for a single MCP server, even for a broad GIS domain. The surface spans geometry, vector I/O, raster processing, CRS utilities, spatial weights, autocorrelation, and regression, which would be better split into narrower servers or grouped tool families.

Completeness4/5

Coverage is extensive across vector, raster, CRS, spatial statistics, weights, and regression workflows, with read/write/append/overlay/dissolve/sjoin operations present. Minor gaps remain, such as vector-file reprojection and attribute filtering/editing, but most GIS workflows are well supported.

Maintenance

ActivityMaintained
ResponsivenessLimited data