Install
$ agentstack add mcp-mahdin75-geoserver-mcp ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
[](https://pypi.org/project/geoserver-mcp/) [](https://pepy.tech/project/geoserver-mcp)
GeoServer MCP Server
A Model Context Protocol (MCP) server implementation that connects Large Language Models (LLMs) to the GeoServer REST API, enabling AI assistants to interact with geospatial data and services.
> Version 0.5.0 (Beta) is under active development and will be released shortly. We are open to contributions and welcome developers to join us in building this project.
🎥 Demo
📋 Table of Contents
- [Features](#-features)
- [Prerequisites](#-prerequisites)
- [Installation](#️-installation)
- [Docker Installation](#️-installation-docker)
- [pip Installation](#️-installation-pip)
- [Development Installation](#️-development-installation)
- [File Storage and
--storageUsage](#file-storage-and---storage-usage) - [Available Tools](#️-available-tools)
- [Resource Endpoints](#️-resource-endpoints)
- [Workspace Management](#️-workspace-management)
- [Datastore & Coveragestore Management](#️-datastore--coveragestore-management)
- [Layer Management](#️-layer-management)
- [Layer Group Management](#️-layer-group-management)
- [User & User Group Management](#️-user--user-group-management)
- [Feature Type & Attribute Management](#️-feature-type--attribute-management)
- [Style Management](#️-style-management)
- [System & Service Operations](#️-system--service-operations)
- [Style XML Utilities](#️-style-xml-utilities)
- [Client Development](#️-client-development)
- [List Workspaces](#list-workspaces)
- [Get Layer Information](#get-layer-information)
- [Query Features](#query-features)
- [Generate Map](#generate-map)
- [Planned Features](#-planned-features)
- [Contributing](#-contributing)
- [License](#-license)
- [Related Projects](#-related-projects)
- [Support](#-support)
- [Badges](#-badges)
🚀 Features
- 🔍 Query and manipulate GeoServer workspaces, layers, and styles
- 🗺️ Execute spatial queries on vector data
- 🎨 Generate map visualizations
- 🌐 Access OGC-compliant web services (WMS, WFS)
- 🛠️ Easy integration with MCP-compatible clients
📋 Prerequisites
- Python 3.10 or higher
- Running GeoServer instance with REST API enabled
- MCP-compatible client (like Claude Desktop or Cursor)
- Internet connection for package installation
🛠️ Installation
Choose the installation method that best suits your needs:
Installing via Smithery
To install GeoServer MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @mahdin75/geoserver-mcp --client claude
🛠️ Installation (Docker)
The Docker installation is the quickest and most isolated way to run the GeoServer MCP server. It's ideal for:
- Quick testing and evaluation
- Production deployments
- Environments where you want to avoid Python dependencies
- Consistent deployment across different systems
- Run geoserver-mcp:
docker pull mahdin75/geoserver-mcp
docker run -d mahdin75/geoserver-mcp
- Configure the clients:
If you are using Claude Desktop, edit claude_desktop_config.json If you are using Cursor, Create .cursor/mcp.json
{
"mcpServers": {
"geoserver-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GEOSERVER_URL=http://localhost:8080/geoserver",
"-e",
"GEOSERVER_USER=admin",
"-e",
"GEOSERVER_PASSWORD=geoserver",
"-p",
"8080:8080",
"mahdin75/geoserver-mcp"
]
}
}
}
🛠️ Installation (pip)
The pip installation is recommended for most users who want to run the server directly on their system. This method is best for:
- Regular users who want to run the server locally
- Systems where you have Python 3.10+ installed
- Users who want to customize the server configuration
- Development and testing purposes
- Install uv package manager.
pip install uv
- Create the Virtual Environment (Python 3.10+):
Linux/Mac:
uv venv --python=3.10
Windows PowerShell:
uv venv --python=3.10
- Install the package using pip:
uv pip install geoserver-mcp
- Configure GeoServer connection:
Linux/Mac:
export GEOSERVER_URL="http://localhost:8080/geoserver"
export GEOSERVER_USER="admin"
export GEOSERVER_PASSWORD="geoserver"
Windows PowerShell:
$env:GEOSERVER_URL="http://localhost:8080/geoserver"
$env:GEOSERVER_USER="admin"
$env:GEOSERVER_PASSWORD="geoserver"
- Start the server:
If you are going to use Claude desktop you don't need this step. For cursor or your own custom client you should run the following code.
Linux:
source .venv/bin/activate
geoserver-mcp
or
source .venv/bin/activate
geoserver-mcp --url http://localhost:8080/geoserver --user admin --password geoserver --debug
Windows PowerShell:
.\.venv\Scripts\activate
geoserver-mcp
or
.\.venv\Scripts\activate
geoserver-mcp --url http://localhost:8080/geoserver --user admin --password geoserver --debug
- Configure Clients:
If you are using Claude Desktop, edit claude_desktop_config.json If you are using Cursor, Create .cursor/mcp.json
Windows:
{
"mcpServers": {
"geoserver-mcp": {
"command": "C:\\path\\to\\geoserver-mcp\\.venv\\Scripts\\geoserver-mcp",
"args": [
"--url",
"http://localhost:8080/geoserver",
"--user",
"admin",
"--password",
"geoserver"
]
}
}
}
Linux:
{
"mcpServers": {
"geoserver-mcp": {
"command": "/path/to/geoserver-mcp/.venv/bin/geoserver-mcp",
"args": [
"--url",
"http://localhost:8080/geoserver",
"--user",
"admin",
"--password",
"geoserver"
]
}
}
}
🛠️ Development installation
The development installation is designed for contributors and developers who want to modify the codebase. This method is suitable for:
- Developers contributing to the project
- Users who need to modify the source code
- Testing new features
- Debugging and development purposes
- Install uv package manager.
pip install uv
- Create the Virtual Environment (Python 3.10+):
uv venv --python=3.10
- Install the package using pip:
uv pip install -e .
- Configure GeoServer connection:
Linux/Mac:
export GEOSERVER_URL="http://localhost:8080/geoserver"
export GEOSERVER_USER="admin"
export GEOSERVER_PASSWORD="geoserver"
Windows PowerShell:
$env:GEOSERVER_URL="http://localhost:8080/geoserver"
$env:GEOSERVER_USER="admin"
$env:GEOSERVER_PASSWORD="geoserver"
- Start the server:
If you are going to use Claude desktop you don't need this step. For cursor or your own custom client you should run the following code.
Linux:
source .venv/bin/activate
geoserver-mcp
or
source .venv/bin/activate
geoserver-mcp --url http://localhost:8080/geoserver --user admin --password geoserver --debug
Windows PowerShell:
.\.venv\Scripts\activate
geoserver-mcp
or
.\.venv\Scripts\activate
geoserver-mcp --url http://localhost:8080/geoserver --user admin --password geoserver --debug
- Configure Clients:
If you are using Claude Desktop, edit claude_desktop_config.json If you are using Cursor, Create .cursor/mcp.json
Windows:
{
"mcpServers": {
"geoserver-mcp": {
"command": "C:\\path\\to\\geoserver-mcp\\.venv\\Scripts\\geoserver-mcp",
"args": [
"--url",
"http://localhost:8080/geoserver",
"--user",
"admin",
"--password",
"geoserver"
]
}
}
}
Linux:
{
"mcpServers": {
"geoserver-mcp": {
"command": "/path/to/geoserver-mcp/.venv/bin/geoserver-mcp",
"args": [
"--url",
"http://localhost:8080/geoserver",
"--user",
"admin",
"--password",
"geoserver"
]
}
}
}
File Storage and --storage Usage
GeoServer MCP server supports an optional --storage flag to specify a base directory for all file read/write operations, such as uploading shapefiles, GeoTIFFs, or exporting results.
Overview
- The
--storageflag sets the root folder for file operations from all data-related tools. - You may supply relative paths (relative to storage root) or absolute paths (bypassing the storage root) as arguments to relevant tools.
- If
--storageis not set, paths are resolved as provided by the user (relative to working directory or absolute).
CLI Example
python -m geoserver_mcp.main --storage D:/my/data/dir
This sets D:/my/data/dir as the base path for all files.
Example tool call in Python:
# Will read from D:/my/data/dir/roads.zip if --storage is set to D:/my/data/dir
create_shp_datastore('workspace', 'datastore_name', 'roads.zip')
Absolute paths (e.g. 'C:/input/other.shp') are always used as-is.
When Running in Docker
If using Docker, ensure the storage directory is mounted as a volume, e.g.:
docker run -v D:/my/data:/opt/data ...
Then launch the server with:
python -m geoserver_mcp.main --storage /opt/data
Best Practices
- Use relative paths when interacting with the API/tools as it keeps your setup portable.
- For remote or container deployment, always ensure your file data is accessible within the container (use Docker volumes if needed).
- Check tool docstrings for which arguments use the storage system.
The --storage system streamlines file management for all users and makes deployment much more flexible!
🛠️ Available Tools
This section details all the available tools and resources exposed by the GeoServer MCP server. These tools allow LLMs to interact with GeoServer's REST API for comprehensive geospatial data management.
🌍 Resource Endpoints
Resource endpoints provide direct access to GeoServer resources via a URI pattern.
| Resource URI | Description | | :----------------------------------------------- | :------------------------------------- | | geoserver://catalog/workspaces | List available workspaces | | geoserver://catalog/layers/{workspace}/{layer} | Get information about a specific layer | | geoserver://services/wms/{request} | Handle WMS resource requests | | geoserver://services/wfs/{request} | Handle WFS resource requests |
📦 Workspace Management
| Tool | Description | | :----------------- | :------------------------------------- | | list_workspaces | List available workspaces in GeoServer | | create_workspace | Create a new workspace in GeoServer |
📁 Datastore & Coveragestore Management
| Tool | Description | | :---------------------- | :----------------------------------------------- | | create_datastore | Create a new datastore in the given workspace | | create_featurestore | Create a new featurestore in the given workspace | | create_gpkg_datastore | Create a GeoPackage (GPKG) datastore | | create_shp_datastore | Create an ESRI Shapefile datastore | | create_coveragestore | Create a new coveragestore in a workspace | | delete_coveragestore | Delete a coveragestore from a workspace | | get_coveragestore | Get details about a single coveragestore | | get_coveragestores | Get all coveragestores for a workspace | | get_datastore | Get a specific datastore by name | | get_datastores | List all datastores in the given workspace |
🗺️ Layer Management
| Tool | Description | | :---------------- | :--------------------------------------------------------- | | get_layer_info | Get detailed information about a layer | | list_layers | List layers in GeoServer, optionally filtered by workspace | | create_layer | Create a new layer in GeoServer | | delete_resource | Delete a resource from GeoServer (generic) |
🧩 Layer Group Management
| Tool | Description | | :----------------------------- | :-------------------------------------------------------------------- | | create_layergroup | Create a new layer group with specific layers and (optionally) styles | | get_layergroup | Get a layer group from a workspace | | get_layergroups | List all layer groups in a workspace | | add_layer_to_layergroup | Add a specific layer to a layer group | | remove_layer_from_layergroup | Remove a layer from a group | | delete_layergroup | Delete a layer group from a workspace | | update_layergroup | Update a layer group's details and configuration |
👥 User & User Group Management
| Tool | Description | | :------------------- | :--------------------------------------- | | create_user | Create a new user for GeoServer security | | delete_user | Delete a user by name | | get_all_users | List all users in the GeoServer instance | | modify_user | Modify an existing user's properties | | create_usergroup | Create a new user group | | delete_usergroup | Delete a user group | | get_all_usergroups | Return all user groups |
📊 Feature Type & Attribute Management
| Tool | Description | | :----------------------------- | :-------------------------------------------------- | | query_features | Query features from a vector layer using CQL filter | | publish_featurestore | Publish an existing featurestore | | publish_featurestore_sqlview | Publish a featurestore using a SQL view definition | | edit_featuretype | Edit the settings of a feature type in a store | | get_featuretypes | List all feature types in a given store | | get_feature_attribute | Get feature attribute schema/details |
🎨 Style Management
| Tool | Description | | :-------------------------------- | :---------------------------------------------- | | create_style | Create a new SLD style in GeoServer | | publish_style | Assign/publish a style to a layer | | create_catagorized_featurestyle | Create a categorized style for features | | create_classified_featurestyle | Create a classified style for features | | create_coveragestyle | Create a raster coverage style | | create_outline_featurestyle | Create a simple outline-only style for features |
⚙️ System & Service Operations
| Tool | Description | | :---------------------------------------- | :-------------------------------------------------------------------- | | get_manifest
…
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: mahdin75
- Source: mahdin75/geoserver-mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.