freeitsm-mcp-server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
freeitsm-mcp-server
A standalone MCP server that lets an AI assistant work with
FreeITSM through its REST API (/api/v1): search, read,
create and update tickets, changes, problems, knowledge, assets and everything else the API offers
(more than 300 endpoints in FreeITSM 5.5).
The API key is the security boundary. The server is a plain API client: what the key may do (its permissions, company scope, expiry, rate limit and the analyst it acts as) is all the assistant may do. FreeITSM enforces this on every request. On top of that, the server:
asks FreeITSM at startup what the key may do (
GET /api/v1/ping) and offers only the tools that key can use - a ticket-read key never sees a write tool;checks each call against the key's permissions before sending it, and says which permission is missing;
can run read-only (
FREEITSM_READ_ONLY=true) whatever the key allows.
It is separate from FreeITSM's built-in MCP endpoint (/api/mcp/), which is read-only and offers a
fixed set of summary tools. This one covers the whole REST API, including writes.
Requirements
Node.js 22 or later, or Docker: a signed image for amd64 and arm64 is published as
ghcr.io/cloudcogsio/freeitsm-mcp-server(see Docker)A FreeITSM install with the REST API, and an API key from System > API with the permissions you want the assistant to have. A dedicated analyst (e.g. "AI Assistant") keeps the audit trail readable.
Related MCP server: Freshservice MCP Server
Setup
git clone <this repository> freeitsm-mcp
cd freeitsm-mcp
npm install # also builds dist/Register it with your MCP client as a stdio server: the command is node, the argument is the
full path to dist/index.js, and the settings are environment variables. Most clients take a
JSON entry of this shape:
{
"mcpServers": {
"freeitsm-api": {
"command": "node",
"args": ["/path/to/freeitsm-mcp/dist/index.js"],
"env": {
"FREEITSM_URL": "https://itsm.example.com",
"FREEITSM_API_KEY": "fitsm_xxx",
"FREEITSM_READ_ONLY": "true"
}
}
}
}Variable | Meaning |
| Base URL of the install ( |
| The API key. Required. |
|
|
| Folder that the upload tools ( |
| Largest upload accepted, default 20 |
| Per-request timeout, default 30000 |
The tool list is fixed when the server starts. After changing the key's permissions, restart the
server. The startup line on stderr says which key it uses, how many endpoints it may call, and
whether it is READ-ONLY or WRITABLE.
Docker
The image is built from pinned base images. It runs on a distroless Node runtime (no shell, no package manager) as a non-root user, and holds only production dependencies. The server's files are owned by root, so the process cannot modify its own code.
Published image
Every change to main is tested, scanned and published to the GitHub Container Registry, for
amd64 and arm64, with an SBOM and a signed build provenance attestation. Releases also get version
tags (0.4.4, 0.4).
docker pull ghcr.io/cloudcogsio/freeitsm-mcp-server:latest
# check it was built by this repository's workflow (GitHub CLI):
gh attestation verify oci://ghcr.io/cloudcogsio/freeitsm-mcp-server:latest -R cloudcogsio/freeitsm-mcp-serverFor production, refer to the image by digest (ghcr.io/cloudcogsio/freeitsm-mcp-server@sha256:...)
in the client entry below, so it changes only when you change it. From a checkout of this
repository, npm run image:update does the same for a local tag: it verifies the attestation of
the current published image, pulls exactly that digest and tags it freeitsm-mcp-server:latest
(-- --check only reports whether there is an update; -- --tag 0.4.4 picks a release).
Building it yourself
docker build -t freeitsm-mcp-server .The base images are pinned by digest, so a plain docker build gives the same image every time
and never picks up the bases' security updates. To build with current bases, run:
npm run docker:build # update the pinned digests, audit, build :local, scan
npm run docker:build -- --check # only report base images (and the scanner) that have updatesIt moves each pinned digest to the one its tag points to now, runs npm audit on the production
dependencies, builds freeitsm-mcp-server:local, and scans it with
grype. Grype runs from its own pinned image and reads a saved
copy of the image, so it needs no account and no access to the Docker socket. A failed scan exits
with code 2. The scan also catches a base tag that is no longer maintained, which a digest update
cannot: then move the FROM tag (for example to a newer Debian release).
In this repository, Dependabot proposes the same digest updates (and npm and GitHub Actions
updates) as weekly pull requests, and CI tests, rebuilds and scans the image on every change and
once a week. main only accepts changes whose checks pass.
Running it
The server speaks MCP over stdio, so the client starts the container itself and keeps stdin
open (-i). Recommended entry, locked down:
{
"mcpServers": {
"freeitsm-api": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
"--memory=256m", "--pids-limit=64",
"-e", "FREEITSM_URL", "-e", "FREEITSM_API_KEY", "-e", "FREEITSM_READ_ONLY",
"ghcr.io/cloudcogsio/freeitsm-mcp-server:latest"
],
"env": {
"FREEITSM_URL": "https://itsm.example.com",
"FREEITSM_API_KEY": "fitsm_xxx",
"FREEITSM_READ_ONLY": "true"
}
}
}
}-e NAMEwithout a value copies the variable from the client's environment, so the key is not written on thedockercommand line (which other local users could see in the process list).The server needs no writable filesystem, so
--read-onlyworks as-is.Uploads: mount the folder read-only and point the variable at the mount, e.g. add
"-v", "/path/to/evidence:/uploads:ro", "-e", "FREEITSM_UPLOAD_DIR=/uploads".FreeITSM on the same machine: inside the container
localhostis the container itself. Usehttp://host.docker.internal:<port>(on Linux also add"--add-host=host.docker.internal:host-gateway"). The server will warn that this is plain http, which is fine for a local install. Use https for anything remote.To restrict network access further, attach the container to a Docker network that can reach only the FreeITSM host.
Tools
Dedicated tools (each appears only if the key has the permission it needs):
Tool | Endpoint(s) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| the |
Generic tools, covering every endpoint:
Tool | |
| Sections, or endpoints filtered by section / search; can show what the key lacks |
| Parameters, body fields, examples, required permission |
| Any permitted GET |
| Any permitted POST / PUT / PATCH / DELETE (hidden when read-only or the key has no write permission) |
The endpoint catalogue is read at startup from the install's own /api/v1/openapi.json and
/api/v1/spec.json, so it matches the FreeITSM version you connect to. From FreeITSM 5.4 each
operation states its permission (x-permission) and any further one it may need (x-permissions-also);
older installs are read from spec.json and the endpoint descriptions. An endpoint whose required
permission cannot be determined is treated as unavailable. An endpoint that may need a second
permission (such as documents.download as well as projects.read) is available only when the key
has both, because FreeITSM counts refused calls against the key.
Security notes
Give the key only what the assistant needs. The local filtering above is a convenience and a second line of defence; the key's permissions in FreeITSM are what actually protect your data. Start with a read-only key or
FREEITSM_READ_ONLY=true.Records contain other people's text. Ticket bodies, emails and articles can include instructions aimed at an AI ("ignore your rules and ..."). An assistant with write access could be talked into acting on them. Keep write access narrow, and use an MCP client that asks before running write tools (they are annotated as such).
Local files. Only files inside
FREEITSM_UPLOAD_DIRcan be uploaded (symlinks are resolved first), so an assistant cannot be steered into uploading, say, SSH keys. Leave it unset unless you need it.Paths are checked strictly. The generic tools accept only plain API paths (no
.., percent-encoding or backslashes), so the endpoint that is checked is the endpoint that is called. Redirects are never followed, so the key is only ever sent toFREEITSM_URL.Refused calls count against the key. Recent FreeITSM versions count 403/404 answers per key and can switch a key off after many in a short time; document downloads are logged and limited per hour. This server checks permissions before calling, so it does not send calls the key would be refused, and tells the assistant not to guess ids.
Development
npm test # builds, then runs unit and in-process tests with a stubbed FreeITSM
npm run typecheck # src, tests and scripts
npm run smoke # read-only checks against a real install; settings in .env (see .env.example)
npm run fixtures # refresh test/fixtures from FREEITSM_URL
npx @modelcontextprotocol/inspector node dist/index.js # interactiveLicence and credits
MIT - see LICENSE.
FreeITSM is by Ed Mozley and is also MIT-licensed. The
files in test/fixtures/ are FreeITSM's own API description documents, generated by a FreeITSM
install, and are included for testing under its licence.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only search of 2,189 AI agent tools (MCP servers, x402 APIs) with daily automated trust scores.
Manage tickets, run agents and workflows, query tables, and search workspace knowledge.
Read tickets, contacts, companies, agents and groups; create, update and reply to tickets.
Helpdesk tickets from your AI: find, reply, take, hold, complete — within your own role. OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Freshservice IT service management platform, allowing automated ticket management, change requests, asset tracking, and solution article operations through natural language commands.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to connect with Freshservice ITSM for managing tickets, assets, agents, and organizational data through natural language. It provides a comprehensive set of tools for performing CRUD operations on service desk records and searching across the Freshservice platform.531MIT
- AlicenseAqualityCmaintenanceEnables AI models to perform IT service management operations on Freshservice, including managing tickets, changes, problems, releases, assets, projects, and more through a set of MCP tools.362MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to perform full CRUD operations on Snipe-IT inventory systems, managing assets, users, licenses, and more via 39 tools.4041MIT