Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEOSERVER_URL | Yes | URL of your GeoServer instance | http://localhost:8080/geoserver |
| GEOSERVER_USER | Yes | Username for GeoServer authentication | admin |
| GEOSERVER_PASSWORD | Yes | Password for GeoServer authentication | geoserver |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| geoserver://catalog/workspaces |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_workspaces | List available workspaces in GeoServer. |
| create_workspace | Create a new workspace in GeoServer. Args:
workspace: Name of the workspace to create
Returns:
Dict with status and result information |
| get_layer_info | Get detailed information about a layer. Args:
workspace: The workspace containing the layer
layer: The name of the layer
Returns:
Dict with layer metadata |
| list_layers | List layers in GeoServer, optionally filtered by workspace. Args:
workspace: Optional workspace to filter layers
Returns:
List of layer information dictionaries |
| create_layer | Create a new layer in GeoServer. Args:
workspace: The workspace for the new layer
layer: The name of the layer to create
data_store: The data store to use
source: The source data (file, table name, etc.)
Returns:
Dict with status and layer information |
| delete_resource | Delete a resource from GeoServer. Args:
resource_type: Type of resource to delete (workspace, layer, style, etc.)
workspace: The workspace containing the resource
name: The name of the resource
Returns:
Dict with status and result information |
| query_features | Query features from a vector layer using CQL filter. Args:
workspace: The workspace containing the layer
layer: The layer to query
filter: Optional CQL filter expression
properties: Optional list of properties to return
max_features: Maximum number of features to return
Returns:
GeoJSON FeatureCollection with query results |
| generate_map | Generate a map image using WMS GetMap. Args:
layers: List of layers to include (format: workspace:layer)
styles: Optional styles to apply (one per layer)
bbox: Bounding box [minx, miny, maxx, maxy]
width: Image width in pixels
height: Image height in pixels
format: Image format (png, jpeg, etc.)
Returns:
Dict with map information and URL |
| create_style | Create a new SLD style in GeoServer. Args:
name: Name for the style
sld: SLD XML content
workspace: Optional workspace for the style
Returns:
Dict with status and style information |