GLPI MCP Server v2
Provides an optional HTTP transport mode for the MCP server using Express, exposing a stateless POST /mcp endpoint for clients that do not support stdio.
References the OpenAPI/Swagger specification of the GLPI API v2.3 for development reference, allowing regeneration of the spec from a running GLPI instance.
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 MCP Server v2Search incidents with high priority opened in the last 24 hours"
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 Server v2
π English version Β· PortuguΓͺs (Brasil)
MCP (Model Context Protocol) server in TypeScript/Node for GLPI integration. Uses the GLPI API v2.3 (via OAuth2) to provide ITIL coverage and built-in tools (tickets, problems, changes, knowledgebase, stats, assets, administration) directly to AI agents.
This project consolidates multiple tools, avoids repeated requests, and delivers data in formats optimized for LLM consumption.
π Credits and Acknowledgments
This project reuses structure and tool coverage from:
GMS64260/mcp-glpi (MIT)
Adapted for the new GLPI API v2.3 (OAuth2). Thanks to the original authors (GMS64260 and DevSkillsIT) for the architectural inspiration and ITIL mapping business logic.
Related MCP server: GLPI MCP
π Features (Tools)
Tools focused on productivity are provided, including:
Assistance: Creation, update, search (with RSQL filters), and full read (including timeline in 1 request) of Tickets, Problems, and Changes. Statistics and follow-up addition.
Knowledgebase: Article search and read.
Assets: Computer listing and read (with flag for detailed specs inclusion).
Administration: User search, user context read, and group listing.
π Installation
Clone the repository or download the files.
Install dependencies:
npm installBuild the project:
npm run build
βοΈ Configuration (.env)
Create a .env file in the project root, based on the .env.example file:
GLPI_BASE_URL=http://localhost:8080
GLPI_CLIENT_ID=seu_client_id_oauth2
GLPI_CLIENT_SECRET=seu_client_secret_oauth2
GLPI_USERNAME=usuario_glpi
GLPI_PASSWORD=senha_glpiHow to create the OAuth2 API Client in GLPI
Access GLPI (version 11 / v2.3 enabled).
Go to Configuration β OAuth Clients (
/front/oauthclient.php).Add a new client.
Under Grants, add
Password(password grant β recommended for scripts/agents).Under Scopes, select at least
api(anduserif using user context tools).Save and copy the Client ID (identifier) and Client Secret shown on the saved item.
π Registration in MCP Client
The server runs via stdio (node dist/index.js + environment variables), so any compatible MCP client can register it. Below are examples per client.
Claude Desktop / Claude Code
File claude_desktop_config.json (Desktop) or .mcp.json (Claude Code, in the project root):
{
"mcpServers": {
"glpi-v2": {
"command": "node",
"args": [
"caminho/absoluto/para/glpi-mcp-v2/dist/index.js"
],
"env": {
"GLPI_BASE_URL": "http://localhost:8080",
"GLPI_CLIENT_ID": "seu_client_id_oauth2",
"GLPI_CLIENT_SECRET": "seu_client_secret_oauth2",
"GLPI_USERNAME": "usuario_glpi",
"GLPI_PASSWORD": "senha_glpi"
}
}
}
}Antigravity (IDE and CLI)
File ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (per workspace):
{
"mcpServers": {
"glpi-v2": {
"command": "node",
"args": [
"caminho/absoluto/para/glpi-mcp-v2/dist/index.js"
],
"env": {
"GLPI_BASE_URL": "http://localhost:8080",
"GLPI_CLIENT_ID": "seu_client_id_oauth2",
"GLPI_CLIENT_SECRET": "seu_client_secret_oauth2",
"GLPI_USERNAME": "usuario_glpi",
"GLPI_PASSWORD": "senha_glpi"
}
}
}
}Codex CLI (OpenAI)
File ~/.codex/config.toml (global) or .codex/config.toml (per project, in a trusted environment):
[mcp_servers.glpi-v2]
command = "node"
args = ["caminho/absoluto/para/glpi-mcp-v2/dist/index.js"]
[mcp_servers.glpi-v2.env]
GLPI_BASE_URL = "http://localhost:8080"
GLPI_CLIENT_ID = "seu_client_id_oauth2"
GLPI_CLIENT_SECRET = "seu_client_secret_oauth2"
GLPI_USERNAME = "usuario_glpi"
GLPI_PASSWORD = "senha_glpi"Or via codex mcp add glpi-v2 --command node --args absolute/path/to/glpi-mcp-v2/dist/index.js (interactive, for the env vars).
Hermes Agent
hermes mcp add glpi-v2 --command "node caminho/absoluto/para/glpi-mcp-v2/dist/index.js"The environment variables (GLPI_BASE_URL, GLPI_CLIENT_ID, etc.) must be available in the environment where Hermes runs, or configured via .env in the project directory (the server loads them via dotenv, if applicable β check src/config.ts).
OpenClaw
File ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"glpi-v2": {
"command": "node",
"args": [
"caminho/absoluto/para/glpi-mcp-v2/dist/index.js"
],
"transport": "stdio",
"env": {
"GLPI_BASE_URL": "http://localhost:8080",
"GLPI_CLIENT_ID": "seu_client_id_oauth2",
"GLPI_CLIENT_SECRET": "seu_client_secret_oauth2",
"GLPI_USERNAME": "usuario_glpi",
"GLPI_PASSWORD": "senha_glpi"
}
}
}
}
}Note: the Hermes Agent and OpenClaw examples above follow each project's public documentation at the time of writing, but have not been tested directly against this server. Validate the connection locally (list the exposed tools) before relying on it in production.
Alternative: HTTP transport
If the client does not support stdio, the server also exposes StreamableHTTPServerTransport (see src/httpServer.ts). Set MCP_TRANSPORT=http and, optionally, MCP_HTTP_PORT (default 3000) in the process environment variables. The endpoint is at http://localhost:<port>/mcp (POST) β point the client to that URL instead of a local command.
π OpenAPI Spec (development reference)
The swagger-v2.3.json file (complete OpenAPI spec of the v2.3 API, dynamically generated by
GLPI) is not versioned (git-ignored β 4.6MB, generated). To regenerate from a running
GLPI instance:
curl -s "http://SEU_GLPI/api.php/doc.json" -o swagger-v2.3.jsonπ HTTP Mode (Express)
The server optionally supports HTTP communication, using the recommended stateless endpoint (POST /mcp).
To enable this mode, set the environment variables:
MCP_TRANSPORT=http(default isstdio)MCP_HTTP_PORT=3000(Optional, sets the Express server port)
Example request to list the tools using curl:
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for interacting with GitLab API, supporting both self-hosted instances and gitlab.com. Provides tools for managing issues, merge requests, code review, pipelines, milestones, releases, search, and file access.514MIT
- AlicenseBqualityCmaintenanceMCP server allowing an AI assistant to interact directly with your GLPI instance via its REST API, enabling ticket management, knowledge base operations, and statistics.404The Unlicense
- FlicenseNot gradedqualityCmaintenanceMCP server for iTop ITSM that provides 19 tools for analytics, ticket management, comments, knowledge base, and CI impact analysis, enabling AI assistants to interact with iTop.1
- AlicenseAqualityBmaintenanceMCP server to manage GestSup tickets via an LLM, with tools for creating, reading, commenting, and searching tickets.13MIT
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server for the PDFGate API. Generate PDFs, manage documents and handle e-signatures.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Luizcc87/glpi-mcp-v2'
If you have feedback or need assistance with the MCP directory API, please join our Discord server