SuperMapMCP

by liyq0307

1 stars
321 downloads
Not rated
GitHub

About

SuperMapMCP is an MCP (Model Context Protocol) Client and Server that enables importing shapefiles into a database. It is designed for users who need to automate geospatial data ingestion using SuperMap Object Java components.

Details

Author
liyq0307
GitHub stars
1
Downloads
321
Categories
Other

- MCP Client and Server architecture
- Imports shapefiles into a database
- Requires SuperMap Object Java 12.0
- Uses OpenAI for configuration
- Database connection info configurable in Server

Initialize the SuperMap Object Java environment (version 12.0) and activate the Python virtual environment. Modify the .env file with your OpenAI configuration, then adjust the database connection information in the Server. Create a datasource using SuperMap components or Desktop before running. Execute with uv run client.py server.py.

SuperMapMCP

MCP Client和Server, 实现shapefile导入到数据库。

1.初始化环境

1.1 初始化supermap object java环境

在supermap官网下载object java 12.0版本组件,并下载使用许可,见bin设置到环境变量。

1.2 激活虚拟环境

source .venv/bin/activate # linunx等

.venv/bin/activate # windows

2.修改配置文件

修改.env文件的内容为自己OpenAI对于内容

alt text

3.修改Server中数据库信息

alt text

需要用supermap组件或者桌面创建数据源!!

4.运行

uv run client.py server.py

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.