geoserver-mcp
Verified Safeby mahdin75
Overview
Enables Large Language Models (LLMs) to interact with and manage geospatial data and services through the GeoServer REST API.
Installation
docker run -i --rm -e GEOSERVER_URL=http://localhost:8080/geoserver -e GEOSERVER_USER=admin -e GEOSERVER_PASSWORD=geoserver -p 8080:8080 mahdin75/geoserver-mcpEnvironment Variables
- GEOSERVER_URL
- GEOSERVER_USER
- GEOSERVER_PASSWORD
- GEOSERVER_STORAGE_PATH
Security Notes
The server uses environment variables or command-line arguments for GeoServer credentials (URL, username, password), which is good practice to avoid hardcoding. There are no obvious `eval` or `os.system` calls with unvalidated user input that would indicate direct code injection vulnerabilities. The `resolve_storage_path` function attempts to sandbox file operations to a specified base directory if `--storage` is provided, which mitigates some path traversal risks for file uploads. The primary security consideration is the extensive administrative control granted over GeoServer (e.g., creating/deleting workspaces, layers, users). If the GeoServer instance is not properly secured, or if the LLM is given overly permissive access, a compromised LLM or a malicious prompt could lead to data manipulation, deletion, or exposure.
Similar Servers
mcp-neo4j
Provides an MCP server to interact with a Neo4j graph database, allowing execution of Cypher read/write queries and schema introspection for graph exploration and generating insights.
gis-mcp
Facilitate AI assistants and LLMs to perform complex geospatial operations, data analysis, and data gathering by exposing GIS library functions via a Model Context Protocol (MCP) server.
Web-Algebra
Translates natural language instructions into RDF operations for loading, querying, and writing Linked Data, consumable via executable JSON or as MCP tools for AI agents.
OSM-GeoJSON-MCP-Server
This server fetches OpenStreetMap data via the Overpass API, converts it to GeoJSON format, and provides it through a Model Context Protocol (MCP) interface, with an option to save large datasets to local files.