GM

gms64260/mcp-glpi

Productivity workflow

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

35 stars 29 forks 品質 85 トレンド 14MIT

GPI 向け MCP サーバー - IT サービス管理 Integraatio

概要

ClaudeのようなAIアシスタントにGLPI(ITサービス管理)を公開するモデルコンテキストプロトコル(MCP)サーバー。 v3 は v2 の上に基礎とカバーのオーバーホールです。 変更の完全なリストのCHANGELOG.mdを参照してください。 今日の公開されているこのREADME文書の残りの部分。 - : 401 の自動再認証と統一された HTTP レイヤー, 構造化されたエラー, 5xx のリトライ. - : AND / OR / AND NOT / OR NOT、強制表示、パジネーション、fetch all、専用のカウントプローブとマルチクリテリア。 - : /listSearchOptions/{itemtype} はキャッシュされるので、field id ↔ の名前の翻訳はGLPI版で有効です。 - : glpi search tickets は、フレンドリーなパラメータ、 glpi tickets stats by ventilates は、ステータス / カテゴリ / 技術者 / 実体 / 月ごとにカウントされます。 - :タイムライン(フォローアップ+タスク+ソリューション+検証)、検証リクエスト/承認、チケットリンク、ドキュメント添付ファイル、満足度、オーバーデュー(SLA)チケット。 - : 詳細なビューはusers id tech: 42 と決まった名前を返すので、LLM は推測する必要はありません.

概要(AI 翻訳)

モデルコンテキストプロトコルサーバー オープンソースのITサービス管理のGLPI スイート AIアシスタント(デスクトップ、クロードコード、カーソル、オープン) WebUI、任意のMCPクライアント)GLPI REST API上の46ツール:チケットとその タイムライン、問題、変更、検証、アセット、その他の共通 項目タイプ、ユーザー、グループ、ナレッジベース、マルチクリテリア検索、 レポート。 出力はモデルのコンテクストウィンドウ用に構築されたコンパクトなJSONで、書き込み ツールは注釈付けされ、1つの変数で切り替わることができます。50 v3 のツール名は、隠れたエイリアスとして機能します。

バージョン 4.0.0. リリースノートの CHANGELOG.md を参照してください。 3.xからアップグレード

インストールと設定

要件: Node.js 20 以降、REST API を使用した GLPI 10 または 11 インスタンス 有効 (Setup > General > API)、API クライアント(アプリトークン、オプション)、 ユーザ API トークン (My 設定 > リモートアクセスキー) またはログインとパスワード。

stdio: クロードデスクトップ、クロードコード、カーソル

stdio はデフォルトトランスポートです。クライアントはサーバーを起動し、それを話します。 stdin/stdout の上の。 クロードデスクトップ(claude_desktop_config.json)とカーソル (~/.cursor/mcp.json) または `.cursor/mcp.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-glpi

A Model Context Protocol server for GLPI, the open-source IT service management suite. It gives an AI assistant (Claude Desktop, Claude Code, Cursor, Open WebUI, any MCP client) 46 tools over the GLPI REST API: tickets and their timeline, problems, changes, validations, assets and every other common itemtype, users and groups, the knowledge base, multi-criteria search and reporting. Outputs are compact JSON built for a model’s context window, write tools are annotated and can be switched off with one variable, and the 50 tool names of v3 keep working as hidden aliases.

Version 4.1.0. See CHANGELOG.md for the release notes and Upgrading from 3.x below.

Install and configure

Requirements: Node.js 20 or later, a GLPI 10 or 11 instance with the REST API enabled (Setup > General > API), an API client (app token, optional) and a user API token (My settings > Remote access keys) or a login and password.

stdio: Claude Desktop, Claude Code, Cursor

stdio is the default transport: the client starts the server and talks to it over stdin/stdout. Claude Desktop (claude_desktop_config.json) and Cursor (~/.cursor/mcp.json or .cursor/mcp.json in a project) use the same shape:

{
  "mcpServers": {
    "glpi": {
      "command": "npx",
      "args": ["-y", "mcp-glpi"],
      "env": {
        "GLPI_URL": "https://glpi.example.com",
        "GLPI_APP_TOKEN": "your-app-token",
        "GLPI_USER_TOKEN": "your-user-token",
        "GLPI_READ_ONLY": "1"
      }
    }
  }
}

Drop GLPI_READ_ONLY to allow writes. Claude Code:

claude mcp add glpi \
  -e GLPI_URL=https://glpi.example.com \
  -e GLPI_APP_TOKEN=your-app-token \
  -e GLPI_USER_TOKEN=your-user-token \
  -- npx -y mcp-glpi

The server opens a GLPI session at startup (or on the first call if GLPI is unreachable then) and closes it when the client disconnects.

Streamable HTTP: Open WebUI and other web clients

MCP_TRANSPORT=http GLPI_URL=https://glpi.example.com GLPI_USER_TOKEN=... npx -y mcp-glpi
# same with flags
npx -y mcp-glpi --http --host 127.0.0.1 --port 3000 --path /mcp
MCP GLPI Server v4.0.0 listening on http://127.0.0.1:3000/mcp
  transport: streamable HTTP (stateless, JSON responses)
  auth: none — bind to loopback or set MCP_HTTP_AUTH_TOKEN before exposing this port
Flag Description
--http Shorthand for --transport http
--transport stdio (default) or http
--host Bind address (default 127.0.0.1)
--port Port; 0 picks a free port (default 3000)
--path Endpoint path (default /mcp)
-h, --help Print usage

CLI flags win over the MCP_* variables. Endpoints: POST /mcp (JSON-RPC, one JSON response per request) and GET /health (liveness, no auth, no GLPI

GitHub で README 全文を見る

インストール

npx -y mcp-glpi
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "glpi": { "command": "npx", "args": ["-y", "mcp-glpi"], "env": { "GLPI_URL": "https://glpi.example.com", "GLPI_APP_TOKEN": "your-app-token", "GLPI_USER_TOKEN": "your-user-token", "GLPI_READ_ONLY": "1" } } } }