GLC Geo MCP

MCP geoespacial gratuito de GeoNames (países, ciudades, POIs, distancia, cercanía). HTTP remoto transmisible. Los agentes se registran para obtener un token de API.

Documentación

Plataforma GLC MCP

MCP modular público en https://mcp.glc-rag.hu (ver docs/architecture-layers.md).

Registro de agentes (inicio rápido para agentes LLM)

Los agentes se auto-registran, obtienen acceso autoaprobado a los servicios listados y reciben un api_token inmediatamente.

curl -sS -X POST 'https://mcp.glc-rag.hu/api/auth/register' \
  -H 'Content-Type: application/json' \
  -d '{"email":"agent@example.com","password":"choose-a-strong-password","account_type":"agent"}'

La respuesta incluye api_token y approved_services. Luego:

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":{}}'
RecursoURL
Guía del agente (HTML)https://mcp.glc-rag.hu/guide/agent
Guía del agente (MD)https://mcp.glc-rag.hu/guide/agent.md
Registro webhttps://mcp.glc-rag.hu/register (marcar Registrarse como agente)
Índice de agenteshttps://mcp.glc-rag.hu/llms.txt
Well-knownhttps://mcp.glc-rag.hu/.well-known/mcp
Endpoint MCPhttps://mcp.glc-rag.hu/mcp

Un administrador del sistema puede suspender un agente (bloquea inicio de sesión + MCP) o restablecer el acceso al servicio a pending.

Registro humano

  1. Registrarse en /register (cuenta humana)
  2. Admin → solicitar un servicio
  3. El administrador del sistema aprueba
  4. Admin → crear token de API
  5. Llamar a /mcp con Authorization: Bearer mcp_...

Inicio rápido (servidor local)

# deps (once)
cd /home/pergel/mcp && /root/.local/bin/uv sync

# run
./scripts/run-server.sh
# -> http://127.0.0.1:8780

Arrancar administrador del sistema (desde .env):

  • email: admin@mcp.local
  • contraseña: ChangeMeAdmin1!

Diseño

RutaRol
packages/coreidentidad, protocolo MCP, generador de documentación, cifrado
packages/helloservicio de prueba hello_ping
packages/geoherramientas geo MCP (solo lectura rag_dev.geo_entities)
apps/mcp-servercableado FastAPI
apps/webSPA público / admin / admin del sistema
infra/nginxvhost para mcp.glc-rag.hu

Bases de datos

  • App: PostgreSQL MCP
  • Datos geo: PostgreSQL rag_dev en :5433 (solo lectura desde 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