Skip to main content

TLDR

Just execute the following line to use from Claude Code:

claude mcp add --transport http glpi http://your_server:8000/mcp

About

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

Installation

You can either run as a container or install dependencies locally

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

or via a container (with additional env variables to avoid defining headers on client side)

podman run -p 8000:8000 -d --name glpi --entrypoint=/usr/local/bin/glpimcp quay.io/karmab/glpic

You can also set env variables prior to launching or in the container to avoid defining headers on client side). For instance

podman run -p 8000:8000 -d --name glpi -e GLPI_URL=https://glpiserver/apirest.php -e GLPI_USER=myser -e GLPI_TOKEN=mytoken --entrypoint=/usr/local/bin/glpimcp quay.io/karmab/glpic

You can then point to the server from your client with a modified snippet and specifying credentials via headers if needed

"mcpServers": {
         "glpi": {
             "command": "/usr/local/bin/npx",
             "args": ["mcp-remote", "http://your_server:8000/mcp", "--allow-http",
             "--header", "GLPI_URL: https://glpiserver/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://myserver/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

Metadata

Release files for glpic 99.0.202511050914

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.202511050914
File Size Uploaded Provenance Actions
glpic-99.0.202511050914.tar.gz 9.5 kB Without provenance Details for glpic-99.0.202511050914.tar.gz

Built distribution (wheel)

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

Total release size: 18.7 kB

Release files / glpic-99.0.202511050914.tar.gz

Download URL glpic-99.0.202511050914.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1cbc08149d13d993ffdb2d6a1f8d6d89b7686a17b3671f4edf273372bb7aaa5e
BLAKE2b-256 checksum
How to use checksums
0f9f10a00e199799df4612468c6129f8f4f078b667e0b19de6e2b97c605bd5a5
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.202511050914-py3-none-any.whl

Download URL glpic-99.0.202511050914-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a908a89e0393d18f3b59906a0dc2c91a975ed1b471dd0f88d843fe932d8b28b1
BLAKE2b-256 checksum
How to use checksums
e0f136e5c8edb4ef61edcb2dda8119fa46828e2b16621af7193999c8db4d48b0
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.202511050914

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