gis-mcp-server

v1.2.0
gis-mcp-server Checked 4 days ago Published 1 year ago

MCP Server for geospatial operations - geocoding, routing, spatial analysis

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

geocode Geocode

Convert an address to geographic coordinates (latitude/longitude).

ParameterTypeDescription
address *stringAddress to geocode

reverse_geocode Reverse Geocode

Convert coordinates to an address (reverse geocoding).

ParameterTypeDescription
lat *numberLatitude (-90 to 90)
lon *numberLongitude (-180 to 180)

distance Distance

Calculate the distance between two geographic points.

ParameterTypeDescription
lat1 *numberLatitude of first point
lat2 *numberLatitude of second point
lon1 *numberLongitude of first point
lon2 *numberLongitude of second point
methodstringMethod: 'haversine' or 'geodesic'

buffer Buffer

Create a buffer zone around a geometry.

ParameterTypeDescription
distance_meters *numberBuffer distance in meters
geometry *objectGeoJSON geometry
resolutionintegerSegments for curved edges

spatial_query Spatial Query

Perform spatial operations between two geometries.

ParameterTypeDescription
geometry1 *objectFirst GeoJSON geometry
geometry2 *objectSecond GeoJSON geometry
operation *stringSpatial operation to perform

transform_crs Transform Crs

Transform coordinates between coordinate reference systems.

ParameterTypeDescription
geometry *objectGeoJSON geometry to transform
source_crs *stringSource CRS (e.g., 'EPSG:4326')
target_crs *stringTarget CRS (e.g., 'EPSG:3857')

centroid Centroid

Get the centroid (center point) of a geometry.

ParameterTypeDescription
geometry *objectGeoJSON geometry

simplify Simplify

Simplify a geometry using Douglas-Peucker algorithm.

ParameterTypeDescription
geometry *objectGeoJSON geometry
tolerance *numberSimplification tolerance
preserve_topologybooleanPreserve topology

convex_hull Convex Hull

Get the convex hull of a geometry.

ParameterTypeDescription
geometry *objectGeoJSON geometry

envelope Envelope

Get the bounding box (envelope) of a geometry.

ParameterTypeDescription
geometry *objectGeoJSON geometry

validate Validate

Validate a geometry and fix it if invalid.

ParameterTypeDescription
geometry *objectGeoJSON geometry

area Area

Calculate the area of a polygon geometry in multiple units.

ParameterTypeDescription
geometry *objectGeoJSON Polygon or MultiPolygon

length Length

Calculate the length/perimeter of a geometry.

ParameterTypeDescription
geometry *objectGeoJSON geometry

utm_zone Utm Zone

Get the UTM zone for a given coordinate.

ParameterTypeDescription
lat *numberLatitude
lon *numberLongitude

crs_info Crs Info

Get detailed information about a coordinate reference system.

ParameterTypeDescription
crs_code *stringCRS identifier (e.g., 'EPSG:4326')

route Route

Calculate a route between two points.

ParameterTypeDescription
end_lat *numberEnd point latitude
end_lon *numberEnd point longitude
start_lat *numberStart point latitude
start_lon *numberStart point longitude
profilestringProfile: driving/walking/cycling

isochrone Isochrone

Calculate an isochrone (area reachable within a time limit).

ParameterTypeDescription
lat *numberCenter point latitude
lon *numberCenter point longitude
time_minutes *integerTravel time in minutes
profilestringProfile: driving/walking/cycling

elevation Elevation

Get elevation for a single point (meters above sea level).

ParameterTypeDescription
lat *numberLatitude
lon *numberLongitude

elevation_profile Elevation Profile

Get elevation profile along a line.

ParameterTypeDescription
geometry *objectGeoJSON LineString geometry
samplesintegerNumber of sample points

read_file Read File

Read a geospatial file (GeoJSON, Shapefile, GeoPackage, etc.).

ParameterTypeDescription
file_path *stringPath to geospatial file
layerLayer name
limitMax features to return

write_file Write File

Write features to a geospatial file.

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
file_path *stringOutput file path
driverstringFormat: GeoJSON/Shapefile/GPKG

spatial_join Spatial Join

Perform a spatial join between two feature collections.

ParameterTypeDescription
left_features *objectLeft GeoJSON FeatureCollection
right_features *objectRight GeoJSON FeatureCollection
howstringJoin type: inner/left/right
predicatestringSpatial predicate

clip Clip

Clip features to a boundary geometry.

ParameterTypeDescription
clip_geometry *objectGeoJSON geometry to clip by
features *objectGeoJSON FeatureCollection to clip

dissolve Dissolve

Dissolve features, optionally by a property.

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
aggfuncstringAggregation: first/last/sum/mean
byField to dissolve by

overlay Overlay

Perform overlay operation between two feature collections.

ParameterTypeDescription
features1 *objectFirst GeoJSON FeatureCollection
features2 *objectSecond GeoJSON FeatureCollection
howstringOverlay operation

merge Merge

Merge multiple feature collections into one.

ParameterTypeDescription
feature_collections *arrayGeoJSON FeatureCollections

read_raster Read Raster

Read a raster file and return metadata and statistics.

ParameterTypeDescription
file_path *stringPath to raster file
bandBand number (1-indexed)

ndvi Ndvi

Calculate NDVI (Normalized Difference Vegetation Index).

ParameterTypeDescription
nir_band_path *stringPath to NIR band raster
red_band_path *stringPath to red band raster
output_pathOutput file path

hillshade Hillshade

Calculate hillshade from a Digital Elevation Model.

ParameterTypeDescription
dem_path *stringPath to DEM raster
altitudenumberSun altitude (degrees)
azimuthnumberSun azimuth (degrees)
output_pathOutput file path

slope Slope

Calculate slope from a Digital Elevation Model.

ParameterTypeDescription
dem_path *stringPath to DEM raster
output_pathOutput file path
unitsstringOutput units: degrees/percent

zonal_stats Zonal Stats

Calculate zonal statistics for a raster using vector zones.

ParameterTypeDescription
raster_path *stringPath to raster file
zones_path *stringPath to vector zones file
bandintegerBand number

reproject_raster Reproject Raster

Reproject a raster to a different CRS.

ParameterTypeDescription
input_path *stringInput raster path
output_path *stringOutput raster path
target_crs *stringTarget CRS (e.g., 'EPSG:4326')
resamplingstringResampling: nearest/bilinear/cubic

raster_calc Raster Calc

Perform raster algebra using a mathematical expression.

ParameterTypeDescription
expression *stringMath expression (e.g., 'A + B')
output_path *stringOutput file path
rasters *objectVariable to file path mapping

static_map Static Map

Create a static map image from GeoJSON features (requires matplotlib).

ParameterTypeDescription
features *objectGeoJSON features
output_pathOutput file path
titleMap title

web_map Web Map

Create an interactive web map (requires folium).

ParameterTypeDescription
features *objectGeoJSON features
basemapstringBasemap provider
output_pathOutput HTML file path
titleMap title

choropleth_map Choropleth Map

Create a choropleth (thematic) map based on a property value.

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
value_field *stringProperty field for coloring
output_pathOutput HTML file path
titleMap title

moran_i Moran I

Calculate Global Moran's I for spatial autocorrelation (requires libpysal).

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
value_field *stringNumeric property field
weight_typestringWeight type: queen/rook/knn

local_moran Local Moran

Calculate Local Moran's I (LISA) for cluster detection.

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
value_field *stringNumeric property field
weight_typestringWeight type: queen/rook/knn

hotspot_analysis Hotspot Analysis

Perform Getis-Ord Gi* hot spot analysis.

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
value_field *stringNumeric property field
weight_typestringWeight type: distance/queen

spatial_weights Spatial Weights

Create and analyze a spatial weights matrix.

ParameterTypeDescription
features *objectGeoJSON FeatureCollection
kintegerNumber of neighbors for KNN
weight_typestringType: queen/rook/knn/distance