Skip to main content

This repo contains code for a lightweight client to interact with GLPI and a MCP to consume it from any LLM

Requirements

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

Installation

pip3 install glpic

Using client

Store your creds in any env file such as glpic.env.sample and set data accordingly You can then use the following commands

  • List users
glpic list users
  • List computers
glpic list computers
  • Get information on a specific computer
glpic info computer $computer
  • List reservations
glpic list reservations
  • Get information on a specific reservation
glpic info reservation $reservation
  • Update a given reservation
glpic update reservation $reservation -P end=20240601
  • Update all reservations
glpic update reservations

Using MCP

The server is started and configured differently depending on what transport you want to use

For STDIO, you can 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"
            }
        }
    }

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"

Metadata

Release files for glpic 99.0.202509251424

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glpic 99.0.202509251424
File Size Uploaded Provenance Actions
glpic-99.0.202509251424.tar.gz 9.0 kB Without provenance Details for glpic-99.0.202509251424.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glpic 99.0.202509251424
File Interpreter ABI Platform Actions
glpic-99.0.202509251424-py3-none-any.whl Python 3 none any Details for glpic-99.0.202509251424-py3-none-any.whl

Total release size: 18.0 kB

Release files / glpic-99.0.202509251424.tar.gz

Download URL glpic-99.0.202509251424.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0e81c32fab0654a45c3babfe51125d44303d14b7be10aa5fd7b398da20c97d0b
BLAKE2b-256 checksum
How to use checksums
8650ad6cb972449ad6fe1824a815a33185f11b8f9dfba949bf5b9ddf39c356a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / glpic-99.0.202509251424-py3-none-any.whl

Download URL glpic-99.0.202509251424-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
722f983dbd338d3f20fb9d13e22920255d0a5be7d2f6fa468f03fcb533001b7b
BLAKE2b-256 checksum
How to use checksums
69aa8df7ad711db3bf24ed249355e1fcffe4eb4445e634134971f16801f00fbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for glpic 99.0.202509251424

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page