Loading...

GeoServer MCP server connects LLMs to GeoServer's REST API, enabling AI-driven geospatial data interaction and management, including querying, visualization, and manipulation.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
GeoServer MCP server connects LLMs to GeoServer's REST API, enabling AI-driven geospatial data interaction and management, including querying, visualization, and manipulation.
The GeoServer MCP server offers a convenient way to integrate LLMs with geospatial data. However, the ability to perform write operations and the reliance on GeoServer's authentication mechanisms necessitate careful configuration and monitoring. It's relatively safe for read-only operations, but risky if write access is granted without proper controls.
Performance depends on the complexity of the geospatial data and the efficiency of the GeoServer instance. Network latency between the MCP server and GeoServer can also impact performance.
Cost depends on the resources consumed by the GeoServer instance and the number of API calls made through the MCP server. Consider the cost of data storage and processing.
npx -y @smithery/cli install @mahdin75/geoserver-mcp --client claude{
"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"
]
}
}
}GEOSERVER_URLGEOSERVER_USERGEOSERVER_PASSWORDlist_workspacesLists available workspaces in the GeoServer instance.
Read-only operation; no data modification.
create_workspaceCreates a new workspace in GeoServer.
Creates a new workspace, but doesn't modify existing data.
create_datastoreCreates a new datastore in a specified workspace.
Adds a new datastore, but doesn't modify existing data.
create_featurestoreCreates a new featurestore in the specified workspace.
Adds a new featurestore, but doesn't modify existing data.
create_gpkg_datastoreCreates a GeoPackage datastore in GeoServer.
Creates a new datastore; no modification of existing data.
create_shp_datastoreCreates a shapefile datastore in GeoServer.
Creates a new datastore; no modification of existing data.
Environment Variable
cloud
The GeoServer MCP server offers a convenient way to integrate LLMs with geospatial data. However, the ability to perform write operations and the reliance on GeoServer's authentication mechanisms necessitate careful configuration and monitoring. It's relatively safe for read-only operations, but risky if write access is granted without proper controls.
Autonomy is determined by the tools exposed and the permissions of the GeoServer user. Ensure appropriate access controls are in place.
Production Tip
Monitor GeoServer logs and MCP server logs for errors and performance bottlenecks.
It's a server that allows Large Language Models to interact with a GeoServer instance via the Model Context Protocol (MCP).
You need Python 3.10+, a running GeoServer instance with the REST API enabled, and an MCP-compatible client.
You can install it using Docker, pip, or a development installation.
Set the GEOSERVER_URL, GEOSERVER_USER, and GEOSERVER_PASSWORD environment variables.
You can manage workspaces, datastores, layers, styles, and perform spatial queries.
It depends on your GeoServer configuration and the tools you expose. Use caution when granting write access and ensure proper authentication and authorization are in place.
Yes, the documentation provides instructions on how to configure Claude Desktop to work with the GeoServer MCP server.