Geoservercloud Mcp

io.github.ronitjadhav由 GitHub 账号 ronitjadhav 发布v1.0.0更新于 Oct 24, 2026

MCP server for managing GeoServer workspaces, datastores, layers, and styles

已验证STDIO仅桌面数据库云端与基础设施

概览

AI 生成的概览

让助手管理 GeoServer 实例的 MCP 服务器:通过 80 多项操作处理工作区、数据存储、图层和样式。

可以做什么
  • 列出、创建和管理 GeoServer 工作区
  • 管理数据存储并发布 PostGIS 数据库中的表
  • 处理图层与样式
  • 以自然语言请求执行 80 多项 GeoServer 操作
  • 通过回答助手提问在运行时配置 GeoServer 连接
适用场景
当你运行 GeoServer,并希望用对话方式查看或修改其工作区、数据存储、图层和样式,而不是使用网页管理界面或直接调用 API 时适用。
运行要求
以本地 Python 包运行(pip 安装或 uvx,后者需要 uv)。需要一个可访问的 GeoServer 实例及其基础 URL、用户名和密码,通过 GEOSERVER_URL、GEOSERVER_USER、GEOSERVER_PASSWORD 设置或在运行时提供。默认值指向本地 GeoServer,账号为 admin/geoserver。
安装前请注意
该服务器持有 GeoServer 管理员凭据(GEOSERVER_PASSWORD),并可创建和修改工作区、数据存储、图层和样式,误操作会影响线上服务器。默认凭据较弱,建议使用专用账号,谨慎指向生产环境。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Geoservercloud Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[GeoServer MCP]

An MCP server that wraps the python-geoservercloud library, exposing 80+ GeoServer operations as natural-language tools for AI assistants like Claude, VS Code Copilot, and other MCP-compatible clients.

Once connected, you can just ask:

  • "List all workspaces in GeoServer"
  • "Create a new workspace called test_data"
  • "Publish the roads table from my PostGIS database"

Quick start (Claude Code)

One command — no manual install, uvx fetches and runs the server for you.

Simplest — no credentials up front:

bash
claude mcp add geoserver -- uvx geoservercloud-mcp

The AI will ask you for the GeoServer URL, username, and password when it first needs them. Great for trying it out or switching between servers.

Or set the connection up front:

bash
claude mcp add geoserver \  --env GEOSERVER_URL=http://localhost:8080/geoserver \  --env GEOSERVER_USER=admin \  --env GEOSERVER_PASSWORD=geoserver \  -- uvx geoservercloud-mcp

That's it — start Claude Code and ask it to list your workspaces to confirm it's connected.

Manage it later with claude mcp list, claude mcp get geoserver, or claude mcp remove geoserver. Add --scope user to the add command to make it available in every project instead of just this one.


Other clients

Claude Desktop

Add this to your config file, then restart Claude Desktop:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
json
{  "mcpServers": {    "geoserver": {      "command": "uvx",      "args": ["geoservercloud-mcp"],      "env": {        "GEOSERVER_URL": "http://localhost:8080/geoserver",        "GEOSERVER_USER": "admin",        "GEOSERVER_PASSWORD": "geoserver"      }    }  }}
VS Code / Cursor

Add this to .vscode/mcp.json:

json
{  "servers": {    "geoserver": {      "command": "uvx",      "args": ["geoservercloud-mcp"],      "env": {        "GEOSERVER_URL": "http://localhost:8080/geoserver",        "GEOSERVER_USER": "admin",        "GEOSERVER_PASSWORD": "geoserver"      }    }  }}
Install manually (pip / uvx)
bash
# with pippip install geoservercloud-mcpgeoservercloud-mcp
# or run without installing (requires uv: https://docs.astral.sh/uv/)uvx geoservercloud-mcp

Published to the MCP Registry as io.github.ronitjadhav/geoservercloud-mcp.


Environment variables

VariableDefaultDescription
GEOSERVER_URLhttp://localhost:8080/geoserverGeoServer base URL
GEOSERVER_USERadminGeoServer username
GEOSERVER_PASSWORDgeoserverGeoServer password

All three are optional — if you skip them, you can configure the connection at runtime by asking the AI.


Development

Want to run it from source or contribute?

bash
git clone https://github.com/ronitjadhav/geoservercloud-mcp.gitcd geoservercloud-mcp
poetry install                    # set up the environmentpoetry run pytest                 # run the testspoetry run geoservercloud-mcp     # run the server (stdio)

Need a GeoServer to test against? cd docker && docker compose up -d spins up GeoServer + PostGIS + the MCP server.

For the full workflow — adding new tools, linting, releasing, and how publishing works — see the Developer Guide.


Python library

This server is built on the python-geoservercloud library. For programmatic access without MCP:

python
from geoservercloud import GeoServerCloud
geoserver = GeoServerCloud(    url="http://localhost:8080/geoserver",    user="admin",    password="geoserver",)geoserver.create_workspace("my_workspace")

Full library docs: https://camptocamp.github.io/python-geoservercloud/

来源:README.md,提交 25a1817

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分