GLPI MCP
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., "@GLPI MCPShow me open high-priority tickets"
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.
GLPI MCP
đ«đ· Français | đŹđ§ English
Français
Serveur MCP (Model Context Protocol) permettant Ă un assistant IA â comme Claude â d'interagir directement avec votre instance GLPI via son API REST.
Compatible GLPI 10 (endpoint apirest.php) et GLPI 11 (endpoint api.php/v1).
Une fois configuré, Claude peut consulter, créer et mettre à jour des tickets, ajouter des suivis et des tùches, poster des solutions, gérer la base de connaissances, et produire des statistiques, le tout en langage naturel depuis votre conversation.
Prérequis
1. GLPI
GLPI 10.x ou 11.x (l'API REST est activée par défaut)
L'API REST doit ĂȘtre activĂ©e : Configuration â GĂ©nĂ©rale â API â Activer l'API Rest â Oui
Un App-Token créé dans GLPI : Configuration â GĂ©nĂ©rale â API â Ajouter un client API
Un User-Token associĂ© Ă votre compte : Mon profil â API â RĂ©gĂ©nĂ©rer
â ïž Le compte associĂ© au User-Token doit avoir les droits suffisants sur les tickets dans GLPI (lecture, Ă©criture, suppression selon l'usage souhaitĂ©).
2. Python
Python 3.12 ou supérieur
uv (recommandé)
# Vérifier la version Python
python --version
# Installer uv si nécessaire
pip install uv3. Claude Desktop
Claude Desktop installé sur votre machine
Un compte Claude avec accÚs aux intégrations MCP (plan Pro ou supérieur)
Related MCP server: Gorgias MCP Server
Installation
1. Cloner le dépÎt
git clone https://github.com/svtica/glpi-mcp.git
cd glpi-mcp2. Installer les dépendances
uv syncConfiguration (par utilisateur)
Le serveur lit ses credentials depuis un fichier config.json situĂ© dans le mĂȘme dossier que server.py. Ce fichier est individuel Ă chaque utilisateur et ne doit jamais ĂȘtre versionnĂ© (il est dans .gitignore).
Créer votre config.json
Copiez le fichier exemple et renseignez vos valeurs :
cp config.example.json config.jsonLes valeurs doivent ĂȘtre encodĂ©es en base64 :
PowerShell :
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("https://glpi.monentreprise.ca"))Linux / macOS :
echo -n "https://glpi.monentreprise.ca" | base64Renseignez ensuite les champs dans config.json :
Champ | Description |
| URL de base de votre instance GLPI (sans |
| App-Token créé dans la configuration API GLPI |
| User-Token de votre compte GLPI |
| Langue des libellés : |
| Version GLPI : |
Vous pouvez aussi utiliser des variables d'environnement (
GLPI_URL,GLPI_APP_TOKEN,GLPI_USER_TOKEN,GLPI_LANG,GLPI_VERSION) Ă la place du fichierconfig.json.
Versions GLPI supportées
Version | Endpoint API | Authentification |
GLPI 10 |
| App-Token + User-Token â Session-Token |
GLPI 11 |
| App-Token + User-Token â Session-Token (mĂȘme mĂ©canisme) |
Le champ GLPI_VERSION dĂ©termine quel prĂ©fixe d'endpoint est utilisĂ©. Les deux versions utilisent la mĂȘme authentification par session (initSession). Tous les outils sont compatibles avec les deux versions.
Intégration avec Claude Desktop
MĂ©thode 1 â Claude Extensions (recommandĂ©e)
Copiez le contenu du projet dans votre dossier Claude Extensions :
%APPDATA%\Claude\Claude Extensions\ant.dir.svtica.glpi-mcp\Créez-y votre config.json personnel avec vos credentials (voir section précédente).
Le dossier doit contenir un fichier manifest.json :
{
"manifest_version": "0.2",
"name": "GLPI-MCP",
"version": "0.1.0",
"description": "Serveur MCP pour l'integration GLPI",
"author": { "name": "Votre Nom", "url": "" },
"server": {
"type": "python",
"entry_point": "server.py",
"mcp_config": {
"command": "uv",
"args": ["--directory", "${__dirname}", "run", "python", "server.py"]
}
}
}Redémarrez Claude Desktop. Chaque utilisateur de la machine copie ses propres fichiers dans son dossier %APPDATA% avec son propre config.json.
MĂ©thode 2 â claude_desktop_config.json (manuelle)
Ouvrez le fichier de configuration de Claude Desktop :
Windows :
%APPDATA%\Claude\claude_desktop_config.jsonmacOS :
~/Library/Application Support/Claude/claude_desktop_config.json
Ajoutez la section mcpServers :
Windows
{
"mcpServers": {
"glpi": {
"command": "uv",
"args": [
"--directory",
"C:\\Chemin\\vers\\glpi-mcp",
"run",
"python",
"server.py"
]
}
},
"preferences": {
"coworkScheduledTasksEnabled": false,
"sidebarMode": "code"
}
}macOS / Linux
{
"mcpServers": {
"glpi": {
"command": "uv",
"args": [
"--directory",
"/chemin/vers/glpi-mcp",
"run",
"python",
"server.py"
]
}
}
}â ïž Assurez-vous que le JSON est valide â une accolade ou une virgule manquante suffit Ă empĂȘcher Claude Desktop de charger la configuration. Utilisez un validateur JSON si nĂ©cessaire.
RedĂ©marrez Claude Desktop. Si la configuration est correcte, une icĂŽne đ apparaĂźtra dans la barre d'outils de Claude indiquant que le serveur MCP est connectĂ©.
Outils disponibles
đ Session
Outil | Description |
| Ferme proprement la session GLPI active |
đ« Tickets
Outil | Description |
| Liste les tickets avec pagination et filtres (statut, type) |
| Détail complet d'un ticket avec libellés lisibles |
| Recherche avancée par mots-clés, statut, type, catégorie, assigné |
| Crée un nouveau ticket |
| Modifie les champs d'un ticket existant |
| Supprime un ticket |
| Lie deux tickets entre eux (lié, doublon, enfant, parent) |
| Liste tous les liens d'un ticket |
| Fusionne des tickets source vers un ticket cible (copie suivis, lie comme doublon, ferme les sources) |
đŹ Suivis
Outil | Description |
| Liste tous les suivis d'un ticket |
| Détail d'un suivi |
| Ajoute un suivi (public ou privé) |
â TĂąches
Outil | Description |
| Liste les tĂąches d'un ticket |
| Crée une tùche sur un ticket |
| Modifie une tùche (statut, durée, assigné) |
| Supprime une tĂąche |
đĄ Solutions
Outil | Description |
| Lit la solution d'un ticket |
| Poste une solution (clĂŽture le ticket selon la config GLPI) |
đ Statistiques
Outil | Description |
| Nombre de tickets par statut |
| Répartition Incidents / Demandes de service |
| Tickets ouverts par priorité |
| Nombre de tickets par catégorie ITIL |
| Tickets par technicien assigné |
| Délai moyen de résolution des tickets |
| Tickets en retard par rapport au SLA |
đ Base de connaissances
Outil | Description |
| Liste les articles avec pagination. Si |
| Détail complet d'un article |
| Recherche par mots-clés (titre par défaut ; passer |
| Crée un nouvel article (titre, contenu HTML, catégorie, FAQ) |
| Met Ă jour un article existant |
| Liste les catégories de la base de connaissances |
| Lit les rÚgles de visibilité d'un article (profils, groupes, utilisateurs, entités) |
| Ajoute un profil à la visibilité d'un article |
| Ajoute un groupe à la visibilité d'un article |
| Modifie une rÚgle de visibilité par profil existante |
| Modifie une rÚgle de visibilité par groupe existante |
Note : La suppression de rĂšgles de visibilitĂ© n'est pas exposĂ©e volontairement afin de conserver un historique des procĂ©dures mĂȘme obsolĂštes.
đ RĂ©fĂ©rentiels
Outil | Description |
| Liste les catégories ITIL disponibles |
| Liste les utilisateurs GLPI |
| Liste les groupes GLPI |
Exemples d'utilisation avec Claude
« Montre-moi tous les incidents ouverts en haute priorité »
« Crée un ticket de demande de service pour l'installation d'Adobe Acrobat pour Marie Tremblay »
« Ajoute un suivi sur le ticket #4521 pour informer l'utilisateur que le problÚme est en cours d'investigation »
« Fusionne les tickets #4530 et #4531 vers le ticket #4521 »
« Lie le ticket #4530 au ticket #4521 comme doublon »
« Quelles sont les statistiques de tickets par statut ? »
« Quel est le délai moyen de résolution des tickets ? »
« Montre-moi les tickets en retard par rapport au SLA »
« Cherche dans la base de connaissances une solution pour les problÚmes VPN »
« Qui peut voir l'article #120 de la base de connaissances ? »
« Ajoute le groupe Techniciens à la visibilité de l'article #120 »
« ClÎture le ticket #4102 avec comme solution : redémarrage du service résolvant le problÚme »
Mappings de référence
Statuts
Code | Libellé |
1 | Nouveau |
2 | En cours (attribué) |
3 | En cours (planifié) |
4 | En attente |
5 | Résolu |
6 | Clos |
Types
Code | Libellé |
1 | Incident |
2 | Demande de service |
Priorités / Urgences / Impacts
Code | Libellé |
1 | TrĂšs basse |
2 | Basse |
3 | Moyenne |
4 | Haute |
5 | TrĂšs haute |
6 | Majeure |
Types de liens entre tickets
Code | Libellé |
1 | Lié à |
2 | Duplique |
3 | Enfant de |
4 | Parent de |
Dépannage
Le serveur n'apparaĂźt pas dans Claude Desktop
Vérifiez la syntaxe JSON du fichier de configuration (pas de virgule manquante ou en trop, pas d'accolade en trop)
Vérifiez que le chemin vers le dossier est correct et absolu
Redémarrez complÚtement Claude Desktop
Assurez-vous que le dossier
%APPDATA%\Claude\connectors\existe (créez-le si nécessaire)
Erreur 401 Ă chaque appel
Vérifiez que
GLPI_APP_TOKENetGLPI_USER_TOKENsont corrects dans votreconfig.jsonVérifiez que l'API REST est bien activée dans GLPI
Vérifiez que le client API dans GLPI est actif et que l'IP est autorisée
Erreur de connexion / timeout
Vérifiez que
GLPI_URLest accessible depuis la machine qui exécute le serveurVérifiez qu'aucun pare-feu ne bloque la connexion
Toutes les requĂȘtes HTTP ont un dĂ©lai maximal de 30 secondes (10 s pour la connexion). Au-delĂ , l'outil retourne un dict structurĂ© avec les clĂ©s
erroretdetail(libellĂ©s tirĂ©s de la tableLANG) au lieu de pendre â par dĂ©faut en français :{"error": "Timeout HTTP", "detail": "RequĂȘte > 30s â voir GLPI logs"}. Si vous obtenez ce message de façon rĂ©pĂ©tĂ©e, vĂ©rifiez les logs PHP-FPM/MySQL cĂŽtĂ© GLPI : la requĂȘte sous-jacente est probablement trop coĂ»teuse (souvent une recherche full-text sans index).
Environnement corporatif â Proxy SSL intercepteur (Zscaler, Forcepoint, etc.)
En environnement d'entreprise, un proxy SSL peut intercepter les connexions HTTPS et remplacer les certificats par un certificat interne. Cela provoque l'erreur suivante lors de l'installation des dépendances par uv :
Ă Failed to download `python-dotenv==X.X.X`
â°ââ¶ invalid peer certificate: UnknownIssuerSolution : Forcer uv Ă utiliser le magasin de certificats Windows avec la variable d'environnement UV_NATIVE_TLS.
Pour tester manuellement dans PowerShell :
$env:UV_NATIVE_TLS=1
uv run python server.pyPour que Claude Desktop passe automatiquement cette variable au démarrage du serveur, ajoutez une section env dans votre claude_desktop_config.json :
{
"mcpServers": {
"glpi": {
"command": "uv",
"args": [
"--directory",
"C:\\Chemin\\vers\\glpi-mcp",
"run",
"python",
"server.py"
],
"env": {
"UV_NATIVE_TLS": "1"
}
}
}
}Environnement corporatif â Antivirus / EDR bloquant uv (Riskware)
Certains antivirus ou solutions EDR d'entreprise peuvent catégoriser uv.exe comme Riskware car il télécharge des exécutables et des packages depuis Internet. Si uv est bloqué par votre solution de sécurité :
Contactez votre équipe TI pour qu'elle ajoute une exception pour
uv.exe(situé dans%USERPROFILE%\.local\bin\uv.exe)Demandez également d'autoriser les domaines :
pypi.org,files.pythonhosted.org,astral.sh
En alternative, demandez à un collÚgue ayant uv fonctionnel de vous transmettre le dossier .venv déjà généré, ce qui évite tout téléchargement.
Alléger les dépendances
Le projet dĂ©pend de mcp[cli] qui inclut l'extra [cli] (typer, rich, click, shellingham, pygments, markdown-it-pyâŠ). Cet extra fournit les commandes de dĂ©veloppement mcp dev et mcp inspect, utiles pour le dĂ©bogage.
Si vous souhaitez réduire l'empreinte en production (environ 8 packages en moins), modifiez pyproject.toml :
# Avant (avec outillage CLI)
dependencies = ["mcp[cli]>=1.9.4", "httpx>=0.27"]
# AprĂšs (sans outillage CLI â production allĂ©gĂ©e)
dependencies = ["mcp>=1.9.4", "httpx>=0.27"]Puis relancez uv sync pour mettre Ă jour l'environnement.
English
MCP (Model Context Protocol) server that allows an AI assistant â such as Claude â to interact directly with your GLPI instance via its REST API.
Compatible with GLPI 10 (endpoint apirest.php) and GLPI 11 (endpoint api.php/v1).
Once configured, Claude can view, create and update tickets, add followups and tasks, post solutions, manage the knowledge base, and generate statistics, all in natural language from your conversation.
Prerequisites
1. GLPI
GLPI 10.x or 11.x (REST API is enabled by default)
REST API must be enabled: Setup â General â API â Enable Rest API â Yes
An App-Token created in GLPI: Setup â General â API â Add an API client
A User-Token associated with your account: My profile â API â Regenerate
â ïž The account associated with the User-Token must have sufficient permissions on tickets in GLPI (read, write, delete as needed).
2. Python
Python 3.12 or higher
uv (recommended)
# Check Python version
python --version
# Install uv if needed
pip install uv3. Claude Desktop
Claude Desktop installed on your machine
A Claude account with access to MCP integrations (Pro plan or higher)
Installation
1. Clone the repository
git clone https://github.com/svtica/glpi-mcp.git
cd glpi-mcp2. Install dependencies
uv syncConfiguration (per user)
The server reads its credentials from a config.json file located in the same folder as server.py. This file is individual to each user and must never be version-controlled (it is in .gitignore).
Create your config.json
Copy the example file and fill in your values:
cp config.example.json config.jsonValues must be encoded in base64:
PowerShell:
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("https://glpi.mycompany.com"))Linux / macOS:
echo -n "https://glpi.mycompany.com" | base64Then fill in the fields in config.json:
Field | Description |
| Base URL of your GLPI instance (without trailing |
| App-Token created in GLPI API configuration |
| User-Token from your GLPI account |
| Label language: |
| GLPI version: |
You can also use environment variables (
GLPI_URL,GLPI_APP_TOKEN,GLPI_USER_TOKEN,GLPI_LANG,GLPI_VERSION) instead of theconfig.jsonfile.
Supported GLPI versions
Version | API Endpoint | Authentication |
GLPI 10 |
| App-Token + User-Token â Session-Token |
GLPI 11 |
| App-Token + User-Token â Session-Token (same mechanism) |
The GLPI_VERSION field determines which endpoint prefix is used. Both versions use the same session-based authentication (initSession). All tools are compatible with both versions.
Integration with Claude Desktop
Method 1 â Claude Extensions (recommended)
Copy the project contents to your Claude Extensions folder:
%APPDATA%\Claude\Claude Extensions\ant.dir.svtica.glpi-mcp\Create your personal config.json with your credentials (see previous section).
The folder must contain a manifest.json file:
{
"manifest_version": "0.2",
"name": "GLPI-MCP",
"version": "0.1.0",
"description": "MCP server for GLPI integration",
"author": { "name": "Your Name", "url": "" },
"server": {
"type": "python",
"entry_point": "server.py",
"mcp_config": {
"command": "uv",
"args": ["--directory", "${__dirname}", "run", "python", "server.py"]
}
}
}Restart Claude Desktop. Each user on the machine copies their own files to their %APPDATA% folder with their own config.json.
Method 2 â claude_desktop_config.json (manual)
Open the Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the mcpServers section:
Windows
{
"mcpServers": {
"glpi": {
"command": "uv",
"args": [
"--directory",
"C:\\Path\\to\\glpi-mcp",
"run",
"python",
"server.py"
]
}
},
"preferences": {
"coworkScheduledTasksEnabled": false,
"sidebarMode": "code"
}
}macOS / Linux
{
"mcpServers": {
"glpi": {
"command": "uv",
"args": [
"--directory",
"/path/to/glpi-mcp",
"run",
"python",
"server.py"
]
}
}
}â ïž Make sure the JSON is valid â a missing brace or comma is enough to prevent Claude Desktop from loading the configuration. Use a JSON validator if needed.
Restart Claude Desktop. If the configuration is correct, a đ icon will appear in the Claude toolbar indicating the MCP server is connected.
Available tools
đ Session
Tool | Description |
| Gracefully closes the active GLPI session |
đ« Tickets
Tool | Description |
| List tickets with pagination and filters (status, type) |
| Full ticket details with readable labels |
| Advanced search by keywords, status, type, category, assignee |
| Create a new ticket |
| Update fields of an existing ticket |
| Delete a ticket |
| Link two tickets (linked, duplicate, child, parent) |
| List all links for a ticket |
| Merge source tickets into a target (copies followups, links as duplicate, closes sources) |
đŹ Followups
Tool | Description |
| List all followups for a ticket |
| Followup details |
| Add a followup (public or private) |
â Tasks
Tool | Description |
| List tasks for a ticket |
| Create a task on a ticket |
| Update a task (status, duration, assignee) |
| Delete a task |
đĄ Solutions
Tool | Description |
| Read the solution for a ticket |
| Post a solution (closes the ticket per GLPI config) |
đ Statistics
Tool | Description |
| Ticket count by status |
| Incidents vs Service Requests breakdown |
| Open tickets by priority |
| Ticket count by ITIL category |
| Tickets per assigned technician |
| Average ticket resolution time |
| Tickets overdue against SLA |
đ Knowledge Base
Tool | Description |
| List articles with pagination. If |
| Full article details |
| Search by keywords (title only by default ; pass |
| Create a new article (title, HTML content, category, FAQ) |
| Update an existing article |
| List knowledge base categories |
| Read visibility rules for an article (profiles, groups, users, entities) |
| Add a profile to an article's visibility |
| Add a group to an article's visibility |
| Update an existing profile visibility rule |
| Update an existing group visibility rule |
Note: Deleting visibility rules is intentionally not exposed in order to preserve a history of procedures, even obsolete ones.
đ Reference data
Tool | Description |
| List available ITIL categories |
| List GLPI users |
| List GLPI groups |
Usage examples with Claude
"Show me all open high-priority incidents"
"Create a service request ticket for installing Adobe Acrobat for Jane Smith"
"Add a followup to ticket #4521 to inform the user that the issue is being investigated"
"Merge tickets #4530 and #4531 into ticket #4521"
"Link ticket #4530 to ticket #4521 as a duplicate"
"What are the ticket statistics by status?"
"What is the average ticket resolution time?"
"Show me tickets that are overdue against the SLA"
"Search the knowledge base for VPN troubleshooting solutions"
"Who can see knowledge base article #120?"
"Add the Technicians group to the visibility of article #120"
"Close ticket #4102 with the solution: service restart resolved the issue"
Reference mappings
Statuses
Code | Label (fr) | Label (en) |
1 | Nouveau | New |
2 | En cours (attribué) | In progress (assigned) |
3 | En cours (planifié) | In progress (planned) |
4 | En attente | Pending |
5 | Résolu | Solved |
6 | Clos | Closed |
Types
Code | Label (fr) | Label (en) |
1 | Incident | Incident |
2 | Demande de service | Service request |
Priorities / Urgencies / Impacts
Code | Label (fr) | Label (en) |
1 | TrĂšs basse | Very low |
2 | Basse | Low |
3 | Moyenne | Medium |
4 | Haute | High |
5 | TrĂšs haute | Very high |
6 | Majeure | Major |
Ticket link types
Code | Label (fr) | Label (en) |
1 | Lié à | Linked to |
2 | Duplique | Duplicates |
3 | Enfant de | Child of |
4 | Parent de | Parent of |
Troubleshooting
Server does not appear in Claude Desktop
Check the JSON syntax of the configuration file (no missing or extra commas/braces)
Verify the folder path is correct and absolute
Fully restart Claude Desktop
Make sure the
%APPDATA%\Claude\connectors\folder exists (create it if needed)
401 error on every call
Verify that
GLPI_APP_TOKENandGLPI_USER_TOKENare correct in yourconfig.jsonCheck that the REST API is enabled in GLPI
Verify that the API client in GLPI is active and the IP is authorized
Connection error / timeout
Verify that
GLPI_URLis reachable from the machine running the serverCheck that no firewall is blocking the connection
All HTTP requests have a hard ceiling of 30 seconds (10 s for connect). Beyond that, the tool returns a structured dict with
erroranddetail(labels taken from theLANGtable) instead of hanging â in English:{"error": "HTTP timeout", "detail": "Request > 30s â see GLPI logs"}. If you hit this repeatedly, inspect the PHP-FPM/MySQL logs on the GLPI side: the underlying query is likely too expensive (typically a full-text search without an index).
Corporate environment â SSL-intercepting proxy (Zscaler, Forcepoint, etc.)
In corporate environments, an SSL proxy may intercept HTTPS connections and replace certificates with an internal certificate. This causes the following error when installing dependencies with uv:
Ă Failed to download `python-dotenv==X.X.X`
â°ââ¶ invalid peer certificate: UnknownIssuerSolution: Force uv to use the Windows certificate store with the UV_NATIVE_TLS environment variable.
To test manually in PowerShell:
$env:UV_NATIVE_TLS=1
uv run python server.pyTo have Claude Desktop automatically pass this variable when starting the server, add an env section to your claude_desktop_config.json:
{
"mcpServers": {
"glpi": {
"command": "uv",
"args": [
"--directory",
"C:\\Path\\to\\glpi-mcp",
"run",
"python",
"server.py"
],
"env": {
"UV_NATIVE_TLS": "1"
}
}
}
}Corporate environment â Antivirus / EDR blocking uv (Riskware)
Some corporate antivirus or EDR solutions may categorize uv.exe as Riskware because it downloads executables and packages from the Internet. If uv is blocked by your security solution:
Contact your IT team to add an exception for
uv.exe(located at%USERPROFILE%\.local\bin\uv.exe)Also request authorization for the domains:
pypi.org,files.pythonhosted.org,astral.sh
As an alternative, ask a colleague with a working uv to share the .venv folder, which avoids any downloads.
Reducing dependencies
The project depends on mcp[cli] which includes the [cli] extra (typer, rich, click, shellingham, pygments, markdown-it-pyâŠ). This extra provides the development commands mcp dev and mcp inspect, useful for debugging.
If you want to reduce the footprint in production (about 8 fewer packages), modify pyproject.toml:
# Before (with CLI tooling)
dependencies = ["mcp[cli]>=1.9.4", "httpx>=0.27"]
# After (without CLI tooling â lightweight production)
dependencies = ["mcp>=1.9.4", "httpx>=0.27"]Then run uv sync again to update the environment.
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
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/svtica/glpi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server