mcp_dl
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp_dlcalculate distance between Beijing and Shanghai"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp_dl
基于 MCP(SSE 协议)的地理工具服务。
将三个地理计算能力暴露为 MCP 工具,供阿里百炼等支持 MCP 的平台按需调用。支持本地运行,也适配 ModelScope 创空间部署。
功能
地点聚类分组:对多个地点按直线距离阈值做传递闭包聚类(单链接连通分量)。
两地直线距离:基于经纬度用 Haversine 公式计算球面距离(公里)。
多地方向排序:按 北→南 / 南→北 / 东→西 / 西→东 线性排序,并给出相邻间隔距离与累计距离。
Related MCP server: LocuSync Server
文件说明
文件 | 作用 |
| 纯算法模块(仅依赖 |
| MCP 地理工具服务(SSE),把算法包装为 MCP 工具; |
| ModelScope 创空间默认入口,复用 |
| 配置,所有配置项支持同名环境变量覆盖 |
| 依赖清单 |
运行
本地启动
# 安装依赖
pip install -r requirements.txt
# 方式一:直接启动(默认 0.0.0.0:9876,SSE 端点 /sse)
python geo_mcp_server.py
# 方式二:用创空间入口启动(默认 0.0.0.0:7860,与线上环境一致)
python app.pyModelScope 创空间部署
将本仓库作为创空间代码源(创空间默认执行
app.py,并自动pip install -r requirements.txt)。创空间把容器内
0.0.0.0:7860反向代理为公网域名,部署后 MCP SSE 端点对外即:https://<创空间域名>/sse若设置了
MCP_TOKEN,调用方请求需带Authorization: Bearer <MCP_TOKEN>。
环境变量
变量 | 说明 | 默认值 |
| MCP 服务标识 |
|
| MCP 服务描述 | 地理工具:聚类分组、距离计算、方向排序 |
| 对外暴露的 SSE 端点(注册到平台时填) |
|
| MCP 鉴权 token,两端需一致;留空则不校验 | 空 |
|
|
|
| 创空间入口 |
|
敏感信息请通过环境变量注入,不要硬编码。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danierli/mcp_dl'
If you have feedback or need assistance with the MCP directory API, please join our Discord server