Back to MCP directory
publicPublicdnsLocal runtime

SuperMapMCP

SuperMapMCP项目是一个实现shapefile数据导入数据库的客户端-服务端系统,基于SuperMap Object Java组件和OpenAI技术,需要配置环境变量和数据库信息后运行。

article

README

🚀 超图MCP

超图MCP包含客户端和服务器,主要用于将shapefile导入到数据库,为数据处理和存储提供了便捷的解决方案。

🚀 快速开始

📦 安装指南

初始化超图对象Java环境

需在超图官网下载12.0版本的Object Java组件,并下载使用许可,随后将其bin目录设置到环境变量中。

激活虚拟环境

运行以下命令以激活虚拟环境:

  • Linuxsource .venv/bin/activate
  • Windows. .venv/bin/activate

⚙️ 配置步骤

修改配置文件

修改.env文件内容,将其设置为自己的OpenAI配置信息。

配置文件修改示例

修改Server中的数据库信息

在Server中配置数据库信息时,需使用超图组件或桌面工具创建数据源。

数据库配置示例

💻 使用示例

运行程序

运行以下命令启动Client和Server:

uv run client.py server.py
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client