Skip to main content

GLPI client

Project description

This repo contains code for a MCP interacting with GLPI API to allow consuming it from any LLM. Additionally a lightweight client is available

Available tools
create_reservation
delete_reservation
info_computer
info_reservation
get_user
list_computers
list_reservations
list_users
update_computer
update_reservation

Requirements

  • Available glpi instance
  • valid user and API token
  • prettytable python library

Installation

pip3 install glpic

Using MCP

STDIO

Include the following configuration snippet In VSCode or Claude Desktop:

"mcpServers": {
    "glpi": {
        "command": "python3",
        "args": ["/path/to/glpic/src/glpic/mcp_server.py", "--stdio"],
        "env": {
            "GLPI_URL": "https://server/apirest.php",
            "GLPI_USER": "myuser",
            "GLPI_TOKEN": "mytoken"
            }
        }
    }

Streamable HTTP

For Streamable HTTP, first start the server in a terminal:

glpimcp

You can then point to the server from your client with a modified snippet

"mcpServers": {
         "glpi": {
             "command": "/usr/local/bin/npx",
             "args": ["mcp-remote", "http://your_server:8000/mcp", "--allow-http",
             "--header", "GLPI_URL: https://server/apirest.php",
             "--header", "GLPI_USER: myuser",
             "--header", "GLPI_TOKEN: mytoken"]
        }
    }

For Claude Code, you can add the mcp directly from command line:

claude mcp add --transport http glpi http://your_server:8000/mcp -H "GLPI_URL: https://server/apirest.php" -H "GLPI_USER: myuser" -H "GLPI_TOKEN: mytoken"

Using client

Store your creds in any env file such as glpic.env.sample and set data accordingly. You can then use glpic and access similar functions

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glpic-99.0.202509260759.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glpic-99.0.202509260759-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file glpic-99.0.202509260759.tar.gz.

File metadata

  • Download URL: glpic-99.0.202509260759.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for glpic-99.0.202509260759.tar.gz
Algorithm Hash digest
SHA256 cd54342eda73f48510dc955965e35a489edd6d245e839fddde0f2b5c2bfc0622
MD5 1b5c5aca907d4e007bb1c38dd46cd86f
BLAKE2b-256 fb0385d8b720ae8c92b7224609bbdfedb781c2e3a2dce1cd72b204873d221da1

See more details on using hashes here.

File details

Details for the file glpic-99.0.202509260759-py3-none-any.whl.

File metadata

File hashes

Hashes for glpic-99.0.202509260759-py3-none-any.whl
Algorithm Hash digest
SHA256 f432dfa2cc8038b6f76c964ee5e1d131f5cdae059c30747df6050d9285e3c5ac
MD5 ecc53c65d34f8d81a49f755419ad3a45
BLAKE2b-256 0bca183acd6a4996ad7521336545636401e14c48dd2a1f47485b9e7d750d179a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page