MCP (Model Context Protocol) server for GeoServer - enables AI assistants to manage GeoServer workspaces, datastores, layers, and styles through natural language
Project description
GeoServer MCP Server
A Model Context Protocol (MCP) server that exposes GeoServer REST API functionality for natural language interaction through AI assistants like Claude, VS Code Copilot, and other MCP-compatible clients.
About
This MCP server wraps the python-geoservercloud library, exposing 80+ GeoServer operations as MCP tools. This enables AI assistants to manage GeoServer workspaces, datastores, layers, styles, and more through natural language commands.
Example Interactions
Once connected, you can ask your AI assistant things like:
- "List all workspaces in GeoServer"
- "Create a new workspace called 'test_data'"
- "What layers are available in the 'topp' workspace?"
- "Create a PostGIS datastore connection"
Installation
From PyPI
pip install geoservercloud-mcp
Or use uvx to run without installing (requires uv):
# Install uv first (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Run the MCP server
uvx geoservercloud-mcp
From MCP Registry
This server is published to the MCP Registry as:
io.github.ronitjadhav/geoservercloud-mcp
Connecting to AI Clients
VS Code / Cursor
Add to your MCP configuration (.vscode/mcp.json):
{
"servers": {
"geoserver": {
"command": "uvx",
"args": ["geoservercloud-mcp"],
"env": {
"GEOSERVER_URL": "http://localhost:8080/geoserver",
"GEOSERVER_USER": "admin",
"GEOSERVER_PASSWORD": "geoserver"
}
}
}
}
Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"geoserver": {
"command": "uvx",
"args": ["geoservercloud-mcp"],
"env": {
"GEOSERVER_URL": "http://localhost:8080/geoserver",
"GEOSERVER_USER": "admin",
"GEOSERVER_PASSWORD": "geoserver"
}
}
}
}
Restart Claude Desktop after saving the configuration.
Dynamic Configuration (No Hardcoded Credentials)
You can omit the env section entirely. The AI will ask you for the GeoServer URL, username, and password at runtime:
{
"mcpServers": {
"geoserver": {
"command": "uvx",
"args": ["geoservercloud-mcp"]
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
GEOSERVER_URL |
http://localhost:8080/geoserver |
GeoServer base URL |
GEOSERVER_USER |
admin |
GeoServer username |
GEOSERVER_PASSWORD |
geoserver |
GeoServer password |
Python Library
This MCP server is built on the python-geoservercloud library. For programmatic access without MCP, see the library documentation.
from geoservercloud import GeoServerCloud
geoserver = GeoServerCloud(
url="http://localhost:8080/geoserver",
user="admin",
password="geoserver",
)
geoserver.create_workspace("my_workspace")
Full documentation: https://camptocamp.github.io/python-geoservercloud/
Development
For local development, testing, and publishing, see the Developer Guide.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geoservercloud_mcp-0.1.7.tar.gz.
File metadata
- Download URL: geoservercloud_mcp-0.1.7.tar.gz
- Upload date:
- Size: 16.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Linux/6.14.0-37-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2b1a9468c4b3eaab1d08c0bfc3947302048be91f1da535e621ede79c257d412
|
|
| MD5 |
66c97a39583c2b05bc97109bbaebb4af
|
|
| BLAKE2b-256 |
f006d28ff7aba4f80a227048f4abc0d18f9735bf114c5a1a180b68a76c30293b
|
File details
Details for the file geoservercloud_mcp-0.1.7-py3-none-any.whl.
File metadata
- Download URL: geoservercloud_mcp-0.1.7-py3-none-any.whl
- Upload date:
- Size: 16.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Linux/6.14.0-37-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a35db3fe26880edcfe2ba4572467bae5cfe0f4bc90eea7960f067f00113668e8
|
|
| MD5 |
f1218a3ce77bf4630766772bc9bb3229
|
|
| BLAKE2b-256 |
74b185ff6db9b1347a2bd4e934c041dd69c98467f548f4f88e0d13b06490efae
|