关于 GLC Geo MCP
GLC Geo MCP 是面向 Agent 的地理数据 MCP 服务,提供 GeoNames 地点查询能力。Agent 可注册并获取令牌,通过远程 HTTP 端点访问已批准的服务。
主要功能
- 01查询国家、城市与兴趣点
- 02计算地点间距离
- 03查找附近地点
- 04Agent 注册并获取 API 令牌
适用场景
- 01查找旅行目的地的城市与兴趣点
- 02计算两个地点之间的距离
- 03检索某地点周边的位置
MCP 相关
通过远程 HTTP MCP 端点向客户端提供地理工具。Agent 可注册获取 API 令牌并访问获批服务。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://mcp.glc-rag.hu/mcp一键复制安装命令
Claude CodeTerminal
claude mcp add --transport http glc-rag-geo https://mcp.glc-rag.hu/mcpCursor.cursor/mcp.json
{"mcpServers":{"glc-rag-geo":{"type":"http","url":"https://mcp.glc-rag.hu/mcp"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"glc-rag-geo":{"type":"http","url":"https://mcp.glc-rag.hu/mcp"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"glc-rag-geo":{"type":"http","url":"https://mcp.glc-rag.hu/mcp"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"glc-rag-geo":{"serverUrl":"https://mcp.glc-rag.hu/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
全部服务地址
Streamable HTTP
https://mcp.glc-rag.hu/mcp需要授权工具
详细介绍
GLC MCP 平台
公共模块化 MCP,网址为 **https://mcp.glc-rag.hu**(参见 docs/architecture-layers.md)。
Agent 注册(LLM Agent 快速入门)
Agent 可自行注册,自动获批访问所列服务,并立即收到 api_token。
curl -sS -X POST 'https://mcp.glc-rag.hu/api/auth/register' \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"choose-a-strong-password","account_type":"agent"}'
响应中包含 api_token 和 approved_services。然后:
curl -sS -X POST 'https://mcp.glc-rag.hu/mcp' \
-H 'Authorization: Bearer mcp_YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
| 资源 | URL |
|---|---|
| Agent 指南(HTML) | https://mcp.glc-rag.hu/guide/agent |
| Agent 指南(MD) | https://mcp.glc-rag.hu/guide/agent.md |
| 网页注册 | https://mcp.glc-rag.hu/register(勾选 注册为 Agent) |
| Agent 索引 | https://mcp.glc-rag.hu/llms.txt |
| Well-known | https://mcp.glc-rag.hu/.well-known/mcp |
| MCP 端点 | https://mcp.glc-rag.hu/mcp |
系统管理员可以暂停 Agent(阻止登录和使用 MCP),或将服务访问权限重置为 pending。
人工注册
- 在
/register注册(人工账号) - 管理员 → 请求服务
- 系统管理员审批
- 管理员 → 创建 API token
- 使用
Authorization: Bearer mcp_...调用/mcp
快速入门(本地服务)
# deps (once)
cd /home/pergel/mcp && /root/.local/bin/uv sync
# run
./scripts/run-server.sh
# -> http://127.0.0.1:8780
使用 .env 引导创建系统管理员:
- 邮箱:
[email protected] - 密码:
ChangeMeAdmin1!
目录结构
| 路径 | 作用 |
|---|---|
packages/core | 身份管理、MCP 协议、文档生成器、加密 |
packages/hello | hello_ping 冒烟测试服务 |
packages/geo | geo MCP 工具(只读访问 rag_dev.geo_entities) |
apps/mcp-server | FastAPI 接线 |
apps/web | 公共 / 管理员 / 系统管理员 SPA |
infra/nginx | mcp.glc-rag.hu 的虚拟主机配置 |
数据库
- 应用:PostgreSQL
MCP - 地理数据:
:5433上的 PostgreSQLrag_dev(MCP 只读)
Nginx
sudo cp /home/pergel/mcp/infra/nginx/mcp.glc-rag.hu.conf /etc/nginx/sites-available/
sudo ln -sf /etc/nginx/sites-available/mcp.glc-rag.hu.conf /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
# TLS:
# sudo certbot --nginx -d mcp.glc-rag.hu
Systemd
sudo cp /home/pergel/mcp/infra/mcp-platform.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now mcp-platform
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。