GLPI MCP
Servidor MCP que expone tools para consultar y crear tickets en la API REST de GLPI (App Token + User Token).
Suscripción requerida
Este MCP requiere una suscripción activa. Obtén tu token de suscripción en
https://globalsoft.lat/pages/glpi y configúralo en la variable SUBSCRIPTION_TOKEN.
Sin un token válido las tools no se ejecutan.
Tools
| Tool | Descripción |
|---|---|
list_tickets |
Lista tickets abiertos (opcionalmente filtrados por solicitante). |
list_closed_tickets |
Lista tickets cerrados. |
get_ticket |
Obtiene un ticket asignado por id. |
create_ticket |
Crea un ticket (Incidente o Solicitud). |
list_followups |
Lista seguimientos públicos de un ticket. |
add_followup |
Agrega un seguimiento (o nota privada) a un ticket. |
list_assets |
Lista activos vía el search AllAssets. |
list_problems |
Lista problemas abiertos. |
list_closed_problems |
Lista problemas cerrados. |
list_changes |
Lista cambios abiertos. |
list_closed_changes |
Lista cambios cerrados. |
Requisitos
- uv (incluye
uvx). - Credenciales de la API de GLPI:
GLPI_BASE_URL,GLPI_APP_TOKENyGLPI_USER_TOKEN. - Token de suscripción:
SUBSCRIPTION_TOKEN(ver arriba).
Instalación rápida
No requiere instalación previa; uvx descarga y ejecuta el paquete:
uvx glpi-mcp==0.1.1
El transporte por defecto es stdio, que es lo que usan los clientes MCP. El servidor
lee las credenciales desde variables de entorno.
Variables de entorno
| Variable | Obligatoria | Descripción |
|---|---|---|
GLPI_BASE_URL |
Sí | URL base de GLPI sin /apirest.php. Ej: https://glpi.ejemplo.com |
GLPI_APP_TOKEN |
Sí | App Token generado en GLPI (Setup > General > API). |
GLPI_USER_TOKEN |
Sí | User Token del usuario de API. |
SUBSCRIPTION_TOKEN |
Sí | Token de suscripción de la plataforma (https://globalsoft.lat/pages/glpi). |
Configuración por cliente
Reemplaza <url_glpi>, <glpi_app_token>, <glpi_user_token> y <subscription_token>
por tus valores.
Claude Code
claude mcp add glpi \
-e GLPI_BASE_URL=<url_glpi> \
-e GLPI_APP_TOKEN=<glpi_app_token> \
-e GLPI_USER_TOKEN=<glpi_user_token> \
-e SUBSCRIPTION_TOKEN=<subscription_token> \
-- uvx glpi-mcp==0.1.1
Codex
CLI:
codex mcp add glpi \
--env GLPI_BASE_URL=<url_glpi> \
--env GLPI_APP_TOKEN=<glpi_app_token> \
--env GLPI_USER_TOKEN=<glpi_user_token> \
--env SUBSCRIPTION_TOKEN=<subscription_token> \
-- uvx glpi-mcp==0.1.1
O en ~/.codex/config.toml (o .codex/config.toml en el proyecto):
[mcp_servers.glpi]
command = "uvx"
args = ["glpi-mcp==0.1.1"]
env = { GLPI_BASE_URL = "<url_glpi>", GLPI_APP_TOKEN = "<glpi_app_token>", GLPI_USER_TOKEN = "<glpi_user_token>", SUBSCRIPTION_TOKEN = "<subscription_token>" }
Antigravity
En ~/.gemini/config/mcp_config.json (global) o .agents/mcp_config.json (workspace):
{
"mcpServers": {
"glpi": {
"command": "uvx",
"args": ["glpi-mcp==0.1.1"],
"env": {
"GLPI_BASE_URL": "<url_glpi>",
"GLPI_APP_TOKEN": "<glpi_app_token>",
"GLPI_USER_TOKEN": "<glpi_user_token>",
"SUBSCRIPTION_TOKEN": "<subscription_token>"
}
}
}
}
opencode
En opencode.jsonc (o ~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"glpi": {
"type": "local",
"command": ["uvx", "glpi-mcp==0.1.1"],
"environment": {
"GLPI_BASE_URL": "<url_glpi>",
"GLPI_APP_TOKEN": "<glpi_app_token>",
"GLPI_USER_TOKEN": "<glpi_user_token>",
"SUBSCRIPTION_TOKEN": "<subscription_token>"
},
"enabled": true
}
}
}
Otros clientes (formato genérico mcpServers)
Válido para Claude Desktop y otros clientes que usan el formato mcpServers:
{
"mcpServers": {
"glpi": {
"command": "uvx",
"args": ["glpi-mcp==0.1.1"],
"env": {
"GLPI_BASE_URL": "<url_glpi>",
"GLPI_APP_TOKEN": "<glpi_app_token>",
"GLPI_USER_TOKEN": "<glpi_user_token>",
"SUBSCRIPTION_TOKEN": "<subscription_token>"
}
}
}
}
Troubleshooting
-
Error de configuración: Falta la variable de entorno ...: el proceso no ve las variables requeridas. Verifica que estén definidas en el bloqueenv/environmentdel cliente correspondiente (o en un.envsi ejecutas desde el repo). -
Las tools devuelven un JSON de error de suscripción: el
SUBSCRIPTION_TOKENno es válido, está expirado o la póliza no está activa. Obtén/renueva el token en https://globalsoft.lat/pages/glpi. La validación es fail-closed y el resultado válido se cachea 60s. -
GLPI_BASE_URLmal formada: debe ser la raíz del GLPI sin/apirest.php(ej.https://glpi.ejemplo.com). Los paths internos de la API ya agregan/apirest.php/. -
Verificar que el paquete arranca (con las variables ya exportadas en el shell):
uvx glpi-mcp==0.1.1
Si faltan variables, el proceso termina con
SystemExity el mensaje de configuración; es el comportamiento esperado.
Metadata
Release files for glpi-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glpi_mcp-0.1.1.tar.gz | 66.7 kB | Without provenance | Details for glpi_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glpi_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for glpi_mcp-0.1.1-py3-none-any.whl |
Total release size: 94.3 kB
Release files / glpi_mcp-0.1.1.tar.gz
| Download URL | glpi_mcp-0.1.1.tar.gz |
|---|---|
| Size | 66.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ca22577e0d9595b42b039a70ab1d471f8aaf2ff0d58913cc0230ca802b2d6f2
|
|
BLAKE2b-256 checksum How to use checksums |
f613a40290e70aae38729bc0ba64f4d381f1f9e893ab0f3a62b0bd001cced863
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / glpi_mcp-0.1.1-py3-none-any.whl
| Download URL | glpi_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f9404b65bbdbd11c67cb7c5fd64c69a189fb4fcccd2b7526375f2e18fd1ae93
|
|
BLAKE2b-256 checksum How to use checksums |
712af8d708269a9daf4c42c1b443e8a545bf95f9e78bc75f289357781de46d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for glpi-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.