GeoServer

v1.0.0Search & Data Extractionstable

A Model Context Protocol server that connects Large Language Models to the GeoServer REST API, enabling AI assistants to query and manipulate geospatial data through natural language.

geoserver-mcp-servermcpai-integration
Share:
73
Stars
0
Downloads
0
Weekly
0/5

What is GeoServer?

GeoServer is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server that connects large language models to the geoserver rest api, enabling ai assistants to query and manipulate geospatial data through natural language.

A Model Context Protocol server that connects Large Language Models to the GeoServer REST API, enabling AI assistants to query and manipulate geospatial data through natural language.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol server that connects Large Language

Use Cases

Query and manipulate geospatial data through GeoServer REST API.
Enable AI assistants to interact with geographic information systems.
mahdin75

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx geoserver-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use GeoServer

GeoServer MCP Server bridges AI assistants with GeoServer's REST API, exposing over 40 tools for managing workspaces, data stores, layers, styles, feature types, and users through natural language. GeoServer is a widely-used open-source geospatial server that publishes map and feature data via OGC standards (WMS, WFS, WCS). This MCP integration lets GIS professionals and developers query spatial data, configure layer groups, generate styled maps, and administer their GeoServer instance — all without writing REST API calls manually.

Prerequisites

  • Python 3.10+ installed on your system
  • uv package manager (pip install uv) or Docker for running the server
  • A running GeoServer instance with REST API enabled (default port 8080)
  • GeoServer admin credentials (GEOSERVER_USER and GEOSERVER_PASSWORD)
  • An MCP-compatible client such as Claude Desktop or Cursor
1

Install the geoserver-mcp package

Create a Python 3.10 virtual environment and install geoserver-mcp, or pull the pre-built Docker image.

pip install uv
uv venv --python=3.10
source .venv/bin/activate
uv pip install geoserver-mcp
2

Verify your GeoServer connection

Confirm your GeoServer instance is reachable and the REST API is enabled by hitting the status endpoint with your credentials.

curl -u admin:geoserver http://localhost:8080/geoserver/rest/about/status.json
3

Test the server binary

Run geoserver-mcp directly to verify it starts and connects to your GeoServer instance.

geoserver-mcp --url http://localhost:8080/geoserver --user admin --password geoserver
4

Configure Claude Desktop

Add the server to your Claude Desktop MCP configuration, pointing to the venv binary and providing GeoServer connection details.

{
  "mcpServers": {
    "geoserver-mcp": {
      "command": "/path/to/.venv/bin/geoserver-mcp",
      "args": [
        "--url", "http://localhost:8080/geoserver",
        "--user", "admin",
        "--password", "geoserver"
      ]
    }
  }
}
5

Restart Claude Desktop and test

Restart Claude Desktop and ask it to list GeoServer workspaces. A successful response confirms the server is connected and authenticated.

GeoServer Examples

Client configuration

Claude Desktop configuration connecting to a local GeoServer instance.

{
  "mcpServers": {
    "geoserver-mcp": {
      "command": "/Users/you/.venv/bin/geoserver-mcp",
      "args": [
        "--url", "http://localhost:8080/geoserver",
        "--user", "admin",
        "--password", "geoserver"
      ]
    }
  }
}

Prompts to try

Once connected, use these prompts to explore and manage GeoServer data.

- "List all workspaces and data stores in my GeoServer instance"
- "Show me all layers available in the 'topp' workspace"
- "Query features from the topp:states layer where PERSONS > 10000000"
- "Generate a map image of the United States using the topp:states layer"
- "Create a new workspace called 'myproject' and tell me how to add a shapefile data store to it"

Troubleshooting GeoServer

Connection refused or timeout when connecting to GeoServer

Verify GeoServer is running on the correct port: curl http://localhost:8080/geoserver/web/. Ensure the --url argument does not have a trailing slash. If GeoServer runs on a different host or port, update GEOSERVER_URL accordingly.

Authentication fails with 401 even with correct credentials

GeoServer REST API uses HTTP Basic Auth. Ensure the user has REST API admin privileges — not just layer-level access. In GeoServer admin UI, go to Security → Users and verify the account has ROLE_ADMINISTRATOR or ROLE_AUTHENTICATED.

geoserver-mcp binary not found after installation

The binary is installed in the virtual environment's bin directory. Activate the venv first (source .venv/bin/activate) or use the absolute path to the binary in your Claude Desktop config, e.g. /Users/you/geoserver-venv/bin/geoserver-mcp.

Frequently Asked Questions about GeoServer

What is GeoServer?

GeoServer is a Model Context Protocol (MCP) server that model context protocol server that connects large language models to the geoserver rest api, enabling ai assistants to query and manipulate geospatial data through natural language. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install GeoServer?

Follow the installation instructions on the GeoServer GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with GeoServer?

GeoServer works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is GeoServer free to use?

Yes, GeoServer is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "geoserver-mcp-server": { "command": "npx", "args": ["-y", "geoserver-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use GeoServer?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides