GLPI MCP
概览
作者提供的说明(英文原文)
MCP server for GLPI IT service management (tickets, assets, users, knowledge base)
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 44/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
- 你需要填写:GLPI_URL, GLPI_CLIENT_ID, GLPI_CLIENT_SECRET, GLPI_USERNAME, GLPI_PASSWORD
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
GLPI_URL,GLPI_CLIENT_ID,GLPI_CLIENT_SECRET,GLPI_USERNAME,GLPI_PASSWORD,GLPI_SCOPES,GLPI_API_VERSION,GLPI_ENTITY,GLPI_ENTITY_RECURSIVE,GLPI_PROFILE,GLPI_VERIFY_SSL,GLPI_TIMEOUT,READ_ONLY_MODE,DRY_RUN_MODE,DISABLED_TAGS,RESPONSE_MAX_SIZE,LOG_LEVEL,RATE_LIMIT_ENABLED,RATE_LIMIT_MAX_REQUESTS,RATE_LIMIT_WINDOW_MINUTES,TOOL_SEARCH_ENABLED,TOOL_SEARCH_STRATEGY,TOOL_SEARCH_MAX_RESULTS
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"glpi": {
"command": "uvx",
"args": [
"glpi-mcp-server"
],
"env": {
"GLPI_URL": "your-value",
"GLPI_CLIENT_ID": "your-value",
"GLPI_CLIENT_SECRET": "your-value",
"GLPI_USERNAME": "your-value",
"GLPI_PASSWORD": "your-value",
"GLPI_SCOPES": "your-value",
"GLPI_API_VERSION": "your-value",
"GLPI_ENTITY": "your-value",
"GLPI_ENTITY_RECURSIVE": "your-value",
"GLPI_PROFILE": "your-value",
"GLPI_VERIFY_SSL": "your-value",
"GLPI_TIMEOUT": "your-value",
"READ_ONLY_MODE": "your-value",
"DRY_RUN_MODE": "your-value",
"DISABLED_TAGS": "your-value",
"RESPONSE_MAX_SIZE": "your-value",
"LOG_LEVEL": "your-value",
"RATE_LIMIT_ENABLED": "your-value",
"RATE_LIMIT_MAX_REQUESTS": "your-value",
"RATE_LIMIT_WINDOW_MINUTES": "your-value",
"TOOL_SEARCH_ENABLED": "your-value",
"TOOL_SEARCH_STRATEGY": "your-value",
"TOOL_SEARCH_MAX_RESULTS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add glpi --env GLPI_URL=your-value --env GLPI_CLIENT_ID=your-value --env GLPI_CLIENT_SECRET=your-value --env GLPI_USERNAME=your-value --env GLPI_PASSWORD=your-value --env GLPI_SCOPES=your-value --env GLPI_API_VERSION=your-value --env GLPI_ENTITY=your-value --env GLPI_ENTITY_RECURSIVE=your-value --env GLPI_PROFILE=your-value --env GLPI_VERIFY_SSL=your-value --env GLPI_TIMEOUT=your-value --env READ_ONLY_MODE=your-value --env DRY_RUN_MODE=your-value --env DISABLED_TAGS=your-value --env RESPONSE_MAX_SIZE=your-value --env LOG_LEVEL=your-value --env RATE_LIMIT_ENABLED=your-value --env RATE_LIMIT_MAX_REQUESTS=your-value --env RATE_LIMIT_WINDOW_MINUTES=your-value --env TOOL_SEARCH_ENABLED=your-value --env TOOL_SEARCH_STRATEGY=your-value --env TOOL_SEARCH_MAX_RESULTS=your-value -- uvx glpi-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"glpi": {
"command": "uvx",
"args": [
"glpi-mcp-server"
],
"env": {
"GLPI_URL": "your-value",
"GLPI_CLIENT_ID": "your-value",
"GLPI_CLIENT_SECRET": "your-value",
"GLPI_USERNAME": "your-value",
"GLPI_PASSWORD": "your-value",
"GLPI_SCOPES": "your-value",
"GLPI_API_VERSION": "your-value",
"GLPI_ENTITY": "your-value",
"GLPI_ENTITY_RECURSIVE": "your-value",
"GLPI_PROFILE": "your-value",
"GLPI_VERIFY_SSL": "your-value",
"GLPI_TIMEOUT": "your-value",
"READ_ONLY_MODE": "your-value",
"DRY_RUN_MODE": "your-value",
"DISABLED_TAGS": "your-value",
"RESPONSE_MAX_SIZE": "your-value",
"LOG_LEVEL": "your-value",
"RATE_LIMIT_ENABLED": "your-value",
"RATE_LIMIT_MAX_REQUESTS": "your-value",
"RATE_LIMIT_WINDOW_MINUTES": "your-value",
"TOOL_SEARCH_ENABLED": "your-value",
"TOOL_SEARCH_STRATEGY": "your-value",
"TOOL_SEARCH_MAX_RESULTS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"glpi": {
"type": "stdio",
"command": "uvx",
"args": [
"glpi-mcp-server"
],
"env": {
"GLPI_URL": "your-value",
"GLPI_CLIENT_ID": "your-value",
"GLPI_CLIENT_SECRET": "your-value",
"GLPI_USERNAME": "your-value",
"GLPI_PASSWORD": "your-value",
"GLPI_SCOPES": "your-value",
"GLPI_API_VERSION": "your-value",
"GLPI_ENTITY": "your-value",
"GLPI_ENTITY_RECURSIVE": "your-value",
"GLPI_PROFILE": "your-value",
"GLPI_VERIFY_SSL": "your-value",
"GLPI_TIMEOUT": "your-value",
"READ_ONLY_MODE": "your-value",
"DRY_RUN_MODE": "your-value",
"DISABLED_TAGS": "your-value",
"RESPONSE_MAX_SIZE": "your-value",
"LOG_LEVEL": "your-value",
"RATE_LIMIT_ENABLED": "your-value",
"RATE_LIMIT_MAX_REQUESTS": "your-value",
"RATE_LIMIT_WINDOW_MINUTES": "your-value",
"TOOL_SEARCH_ENABLED": "your-value",
"TOOL_SEARCH_STRATEGY": "your-value",
"TOOL_SEARCH_MAX_RESULTS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- GLPI root URL without /api.php (e.g., https://glpi.example.com); needs GLPI 11.0.6+ or 12
- OAuth client ID from GLPI Setup > OAuth clients
- OAuth client secret from GLPI Setup > OAuth clients
- GLPI user the tools act as (OAuth password grant)
- Password of the GLPI user
GLPI_SCOPESenvOAuth scopes to request, space- or comma-separated (add graphql for GraphQL)GLPI_API_VERSIONenvHigh-Level API version: auto, 2.3 or 3.0GLPI_ENTITYenvEntity ID to work in (GLPI-Entity header)GLPI_ENTITY_RECURSIVEenvInclude sub-entities of GLPI_ENTITYGLPI_PROFILEenvProfile ID to work with (GLPI-Profile header)GLPI_VERIFY_SSLenvVerify SSL certificatesGLPI_TIMEOUTenvTotal seconds allowed for one request, retries includedREAD_ONLY_MODEenvEnable read-only mode to restrict write operationsDRY_RUN_MODEenvWrite tools return the request they would send instead of changing GLPIDISABLED_TAGSenvComma-separated list of tags to disable tools forRESPONSE_MAX_SIZEenvMaximum size of a tool response in bytes (empty = unlimited)LOG_LEVELenvLogging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)RATE_LIMIT_ENABLEDenvEnable rate limitingRATE_LIMIT_MAX_REQUESTSenvMaximum requests per rate limit windowRATE_LIMIT_WINDOW_MINUTESenvRate limit window in minutesTOOL_SEARCH_ENABLEDenvEnable FastMCP tool search transformTOOL_SEARCH_STRATEGYenvTool search strategy (bm25 or regex)TOOL_SEARCH_MAX_RESULTSenvMaximum tool search results returned by search_tools
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 mhajder 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5686 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5686 个服务器的 98% 更新
- 基础检查结果等于或优于此分类中其他 5686 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
GLPI MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:GLPI_URL, GLPI_CLIENT_ID, GLPI_CLIENT_SECRET, GLPI_USERNAME, GLPI_PASSWORD
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.1)于昨天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv), Docker。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
GLPI MCP Server
Let AI agents work with GLPI tickets, assets and the knowledge base through the Model Context Protocol
Installation · Tools · Configuration · Security
GLPI MCP Server is a Python-based Model Context Protocol (MCP) server for the GLPI IT service management platform. It talks to GLPI's High-Level API (/api.php, OAuth2) and gives AI assistants and automation tools access to tickets, changes and problems (with their timeline and team), assets, users, groups, entities, the knowledge base and documents, plus generic tools that reach every endpoint GLPI exposes. It supports read and write operations, with read-only and dry-run modes, per-user GLPI access and OAuth login for remote MCP clients.
✨ Features
Core Features
- Search tickets, changes and problems by status, type, priority, category, entity, dates, text or any RSQL filter
- Read the full timeline of an item: followups, tasks, solutions, approvals and documents
- Search and read assets of every type (including custom assets), with financial information
- Find users, groups, entities and profiles
- Search and read knowledge base articles; download documents
- Discover every endpoint and schema from GLPI's own OpenAPI document, so nothing is hard-coded to one GLPI version
Management Operations
- Create, update and delete tickets, changes and problems (if enabled)
- Add followups, tasks, solutions and approval requests
- Assign technicians and groups, add requesters and observers
- Create, update and delete assets and knowledge base articles
- Create, update and delete items at any endpoint with the generic tools
Advanced Capabilities
- Supports GLPI 11.0.6+ (API 2.3) and GLPI 12 (API 3.0, or 2.3 if pinned); the version is detected and pinned in every request
- OAuth password grant with token caching and renewal
- Per-user access: token passthrough, or sign-in with GLPI accounts (OAuth login) for remote MCP clients
- OIDC login through an external identity provider, or a static bearer token
- Read-only mode, dry-run mode and tag-based tool filtering
- HTML rich text converted to plain text to save tokens
- Rate limiting, response size limit and optional tool-search transform
- Multiple transport options (STDIO, SSE, HTTP) and optional Sentry integration
🚀 Installation
Prerequisites
- Python 3.11 to 3.15
- GLPI 11.0.6 or newer (including 12.x). GLPI 10 and GLPI 11.0.0-11.0.5 are not supported: they lack High-Level API 2.3
- The API enabled in Setup > General > API ("Enable API")
- An OAuth client (see GLPI setup)
Quick Install from PyPI
The easiest way to get started is to install from PyPI:
# Using UV (recommended)
uvx glpi-mcp-server
Or using pip
pip install glpi-mcp-server
Remember to configure the environment variables for your GLPI instance before running the server:
# Create environment configuration
export GLPI_URL=https://glpi.example.com export GLPI_CLIENT_ID=your-client-id export GLPI_CLIENT_SECRET=your-client-secret export GLPI_USERNAME=glpi-mcp export GLPI_PASSWORD=change-me
Install from Source
- Clone the repository:
git clone https://github.com/mhajder/glpi-mcp.git
cd glpi-mcp
- Install dependencies:
# Using UV (recommended)
uv sync
Or using pip
pip install -e .
- Configure environment variables:
cp .env.example .env
Edit .env with your GLPI URL and OAuth credentials
- Run the server:
# Using UV (recommended)
uv run glpi-mcp
Or using the installed command directly
glpi-mcp
Using Docker
A Docker image is available on GitHub Packages for easy deployment. It runs the HTTP Streamable transport on port 8000 (/mcp).
docker pull ghcr.io/mhajder/glpi-mcp:latest
When GLPI login or OIDC is enabled, mount a volume on /data so OAuth client registrations survive container recreation.
Open WebUI
Open WebUI 0.6.31 and later connect to the image directly. In Open WebUI, go to Admin Settings > Integrations > External Tool Servers, add a connection of type MCP (Streamable HTTP) with the URL http:// :8000/mcp, and set Bearer authentication to your MCP_HTTP_BEARER_TOKEN.
With GLPI login or OIDC enabled, use the public URL + /mcp and choose OAuth 2.1 authentication instead; Open WebUI registers itself as a client, so if you restrict redirect URIs, include your Open WebUI URL.
Development Setup
For development with additional tools:
# Clone and install with development dependencies
git clone https://github.com/mhajder/glpi-mcp.git cd glpi-mcp uv sync --group dev
Run tests
uv run pytest
Run with coverage
uv run pytest --cov=src/
Run linting and formatting
uv run ruff check . uv run ruff format .
Run type checking
uv run ty check .
Setup prek hooks
uv run prek install
🔧 Configuration
GLPI setup
- Enable the API: Setup > General > API > "Enable API".
- Create an OAuth client: Setup > OAuth clients > Add.
- Grants: Password (for
GLPI_USERNAME/GLPI_PASSWORD). Add Authorization Code for GLPI login. - Scopes: api and user. Add graphql for
glpi_graphql_query. - For GLPI login, set the redirect URI to
GLPI_OAUTH_BASE_URL+GLPI_OAUTH_REDIRECT_PATH. - Copy the generated client ID and secret.
- Create a GLPI user for the server (for example
glpi-mcp) with a profile that has just the rights the tools need. Every tool call acts as this user, unless per-user access is enabled.
Environment Variables
# GLPI Connection Details
GLPI root URL, without /api.php
GLPI_URL=https://glpi.example.com
OAuth client from Setup > OAuth clients
GLPI_CLIENT_ID=your-client-id GLPI_CLIENT_SECRET=your-client-secret
GLPI account the tools act as (OAuth password grant)
GLPI_USERNAME=glpi-mcp GLPI_PASSWORD=change-me
OAuth scopes, space- or comma-separated (default: api user)
GLPI_SCOPES=api user
High-Level API version: auto (default), 2.3 or 3.0
GLPI_API_VERSION=auto
Optional: entity and profile to work in
GLPI_ENTITY=0
GLPI_ENTITY_RECURSIVE=true
GLPI_PROFILE=4
SSL Configuration
GLPI_VERIFY_SSL=true GLPI_TIMEOUT=30
Per-user GLPI access (HTTP transports only; pick at most one)
GLPI_TOKEN_PASSTHROUGH=false
GLPI_OAUTH_LOGIN=false
GLPI_OAUTH_BASE_URL=https://glpi-mcp.example.com
GLPI_OAUTH_REDIRECT_PATH=/auth/callback
GLPI_OAUTH_ALLOWED_REDIRECT_URIS=
Read-Only Mode
READ_ONLY_MODE=false
Dry-Run Mode
DRY_RUN_MODE=false
Disabled Tags
Example: DISABLED_TAGS=assets,knowledgebase,graphql
DISABLED_TAGS=
Response Size Limit (bytes; empty = unlimited)
RESPONSE_MAX_SIZE=500000
Logging Configuration
LOG_LEVEL=INFO
Rate Limiting
RATE_LIMIT_ENABLED=false RATE_LIMIT_MAX_REQUESTS=60 RATE_LIMIT_WINDOW_MINUTES=1
Tool Search Transform (Optional)
TOOL_SEARCH_ENABLED=false TOOL_SEARCH_STRATEGY=bm25 TOOL_SEARCH_MAX_RESULTS=5
Sentry Error Tracking (Optional)
SENTRY_DSN=https://your-key@o12345.ingest.us.sentry.io/6789
MCP Transport Configuration
'stdio' (default), 'sse' or 'http' ('streamable-http' is an alias for 'http')
MCP_TRANSPORT=stdio
MCP_HTTP_HOST=127.0.0.1
MCP_HTTP_PORT=8000
MCP_HTTP_BEARER_TOKEN=
OIDC / OAuth Authentication (optional, for remote hosting)
OIDC_CONFIG_URL=https://id.example.com/.well-known/openid-configuration
OIDC_CLIENT_ID=
OIDC_CLIENT_SECRET=
OIDC_BASE_URL=https://glpi-mcp.example.com
See .env.example for every setting with comments.
API versions
GLPI lists the High-Level API versions it offers at GET /api.php/. On first use the server reads that list and pins one version in every request path (/api.php/v2.3/... or /api.php/v3.0/...), because GLPI silently routes an unknown version to its newest one.
| GLPI | Versions offered | GLPI_API_VERSION=auto picks |
|---|---|---|
| 10.x, 11.0.0-11.0.5 | none / 2.0-2.2 | not supported |
| 11.0.6+ | 2.3 | 2.3 |
| 12.x | 2.3, 3.0 | 3.0 |
Set GLPI_API_VERSION=2.3 to keep GLPI 12 on the 2.3 schemas (for example while migrating other integrations). The tools that depend on a schema difference handle both: knowledge base articles are filed under categories on 2.3 and under parent articles (parents) on 3.0.
Entity and profile
GLPI scopes every API session to an active profile and entities. By default these are the user's defaults. GLPI_ENTITY, GLPI_ENTITY_RECURSIVE and GLPI_PROFILE send the GLPI-Entity, GLPI-Entity-Recursive and GLPI-Profile headers with every request to change them. glpi_whoami shows the active ones and glpi_get_entity_tree lists the entities available.
🧰 Available Tools
Server & Session
glpi_server_info: API versions GLPI offers, the pinned version, auth mode and safety modesglpi_whoami: The GLPI user the tools act as, with the active profile and entitiesglpi_get_entity_tree: Entities the current user can work in
Tickets, Changes & Problems
All take itil_type: Ticket (default), Change or Problem.
glpi_search_itil: Search by status, type, priority, category, entity, dates, text or filterglpi_get_itil: One item with its description and teamglpi_get_itil_timeline: Followups, tasks, solutions, approvals and documentsglpi_create_itil/glpi_update_itil/glpi_delete_itil: Create, update, deleteglpi_add_itil_followup: Add a followup (public or private)glpi_add_itil_task: Add a task with state, time spent, technician and planningglpi_add_itil_solution: Add a solutionglpi_request_itil_validation: Ask a user or group to approve a ticket or changeglpi_list_itil_team: Requesters, assignees and observersglpi_add_itil_team_member/glpi_remove_itil_team_member: Assign or remove users, groups and suppliers
Assets
glpi_list_asset_types: Asset types of this GLPI, including custom assetsglpi_search_assets: Search one asset type, or all at once, by name, serial, inventory number or filterglpi_get_asset: One asset, optionally with financial informationglpi_create_asset/glpi_update_asset/glpi_delete_asset: Create, update, delete
Users, Groups, Entities & Profiles
glpi_search_users/glpi_get_user: Find users; get one by ID or loginglpi_search_groups/glpi_get_group: Find groups; get one by IDglpi_search_entities/glpi_get_entity: Find entities; get one by IDglpi_list_profiles: Profiles (
只显示了开头部分;其余内容请在仓库中阅读