Skip to main content
Glama
snipeit-mcp

snipeit-mcp

by l0cky12

snipeit-mcp

An MCP server for Snipe-IT asset management. Gives Claude Code, OpenClaw, or any other MCP client the same reach you have in the Snipe-IT web UI: list, search, create, update, delete, check out, check in, audit and restore across every Snipe-IT object type.

Built on the MCP TypeScript SDK v2. Exposes 11 tools (4 in read-only mode) so it stays cheap in your context window even on clients without tool search.

Setup

Requires Node 20+ and a Snipe-IT personal API token (Snipe-IT: your avatar > Manage API Keys). The token carries the permissions of the account that created it, so use a superuser account if you want full admin reach.

npx -y snipeit-mcp setup

It asks for your Snipe-IT URL and token, validates them against the live instance, warns if the account is not a superuser, and saves them to ~/.config/snipeit-mcp/config.json with owner-only permissions. You do this once; every MCP client on the machine reuses it.

Environment variables override the file: SNIPEIT_URL, SNIPEIT_API_TOKEN, and SNIPEIT_READ_ONLY=1 (hides every write tool).

SNIPEIT_READ_ONLY accepts 1, true, or yes to enable read-only mode, and 0, false, or no to disable it (case-insensitive). Invalid values or malformed config files stop startup. Running setup again preserves the saved read-only setting and replaces the credentials file with owner-only permissions.

Use the final HTTP(S) instance URL without embedded credentials, query parameters, or a fragment. Plain http:// is only accepted for loopback and private-network hosts (localhost, *.localhost, 127.x, 10.x, 172.16-31.x, 192.168.x); anything else needs https:// or SNIPEIT_ALLOW_HTTP=1, because the token would cross the network in cleartext. Requests time out after 30 seconds and reject redirects and non-JSON success responses. Writes are not automatically retried; if a request times out, check the record before retrying because Snipe-IT may have completed the write.

Claude Code

claude mcp add -s user snipeit -- npx -y snipeit-mcp

OpenClaw

openclaw mcp add snipeit --command npx --arg -y --arg snipeit-mcp

Or in ~/.openclaw/openclaw.json:

{ "mcp": { "servers": { "snipeit": { "command": "npx", "args": ["-y", "snipeit-mcp"] } } } }

Any other MCP client (stdio)

Command npx, args -y snipeit-mcp. For a less-trusted agent add SNIPEIT_READ_ONLY=1 to its environment.

Related MCP server: mcp-server-snipe-it

Tools

Tool

What it does

list

List/search any resource. user_id returns what a person has checked out. filters passes resource-specific query params.

get

One record by id.

lookup

Resolve an asset tag, serial, username, email or employee number to a record.

describe

Fields accepted by create/update plus list filters. For hardware, also the instance's custom fields.

create

Create a record. Hardware custom fields can be passed by display name.

update

Partial update.

delete

Delete. Requires confirm: true.

restore

Restore a soft-deleted record.

checkout

Hardware to user/asset/location, accessories and consumables to user, components to asset, licenses to user/asset (first free seat).

checkin

Hardware by id; accessories/licenses from a user; components from an asset.

audit

Record an audit, optionally move the asset and set the next audit date.

Resources: hardware, users, licenses, accessories, consumables, components, locations, companies, categories, manufacturers, models, status_labels, suppliers, departments, groups, fields, fieldsets, maintenances, activity (read-only audit log).

Responses are trimmed by default: nested date objects collapse to strings, nulls and available_actions are dropped, custom fields become {name: value}. Pass raw: true to list/get for the untouched payload.

Pass search, sort, order, limit, and offset as top-level list arguments, not inside filters. Internal custom-field and assignment lookups follow pagination. Checkout rejects unsupported target types; license checkin requires exactly one of from_user_id or from_asset_id.

Security notes

  • Snipe-IT content is untrusted input to the calling agent. Asset names, notes, custom fields and error messages reach the model verbatim. Anyone who can edit a record can plant instructions there (stored prompt injection) that a privileged agent may then act on with its write tools. Review write actions, and use SNIPEIT_READ_ONLY=1 for agents that only need to read.

  • Use a least-privilege API token. The server can do whatever the token owner can do in the web UI. Prefer a dedicated account with only the permissions the agent needs over a superuser token.

  • create/update refuse permissions, groups, id and timestamp fields, and string values over 64 KB. Grant group membership and permissions in the web UI.

Development

npm install
npm test                        # build + unit tests, no Snipe-IT needed
bash test/snipeit-up.sh         # throwaway Snipe-IT in Docker with demo data (port 8765)
npm run test:integration        # end-to-end against it
docker compose -f test/docker-compose.yml down -v

The demo instance binds to 127.0.0.1 only. Its generated admin token stays in the ignored, owner-readable test/.snipeit-token file. The root snipeit-up.sh forwards to the same test harness.

License

AGPL-3.0-only. Forks and hosted derivatives must stay open source.

Available Tools

11 tools
auditAudit assetB

Record an audit for a hardware asset, optionally moving it and setting the next audit date.

Inputs: id (required), note, location_id, next_audit_date, +1 more.

checkinCheck inA

Check an item back in. hardware: just the id. accessories/licenses: pass from_user_id (or from_asset_id for licenses). components: pass from_asset_id.

Inputs: id (required), resource (required), note, quantity, +4 more.

checkoutCheck outA

Check an item out. hardware -> user|asset|location; accessories, consumables -> user; components -> asset; licenses -> user|asset (first free seat is used).

Inputs: id (required), resource (required), target_id (required), to, +5 more.

createCreate recordA

Create a Snipe-IT record. Call describe first for required fields.

Inputs: data (required), resource (required).

deleteDelete recordA
Destructive

Delete a Snipe-IT record (soft delete where Snipe-IT supports it; see restore). Requires confirm: true.

Inputs: id (required), confirm (required), resource (required).

describeDescribe fieldsB
Read-only

Fields accepted by create/update and the list filters for a resource. For hardware also lists the instance's custom fields.

Inputs: resource (required).

getGet one recordC
Read-only

Fetch one Snipe-IT record by numeric id.

Inputs: id (required), resource (required), raw.

listList recordsA
Read-only

List or search Snipe-IT records of one resource type. Returns {total, offset, rows}. Pass user_id to get hardware, accessories or licenses checked out to a user. filters = resource-specific query params (see describe).

Inputs: resource (required), raw, sort, limit, +5 more.

lookupLookup by tag, serial or usernameA
Read-only

Resolve a hardware asset by asset_tag or serial, or a user by username, email or employee_num, to full records with numeric ids.

Inputs: email, serial, username, asset_tag, +1 more.

restoreRestore deleted recordB
Idempotent

Restore a soft-deleted record. Snipe-IT supports this for hardware, users, models and manufacturers.

Inputs: id (required), resource (required).

updateUpdate recordC
Idempotent

Partially update a Snipe-IT record (only the given fields change).

Inputs: id (required), data (required), resource (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool maps to a distinct operation: list/search vs get-by-id vs lookup-by-human-identifier, plus CRUD, restore, checkout/checkin, and audit. Descriptions clearly differentiate retrieval modes and checkout/checkin semantics, leaving little risk of misselection.

    Naming Consistency5/5

    All tool names are concise lowercase verbs (list, get, lookup, create, update, delete, restore, checkout, checkin, audit), following a consistent action-oriented convention. No mixed casing or competing naming styles.

    Tool Count5/5

    Eleven tools is well-scoped for a Snipe-IT API wrapper, covering core record and lifecycle operations without excessive per-resource duplication. Generic resource-type tools keep the surface compact.

    Completeness5/5

    The set covers discovery/description, CRUD, soft-delete/restore, checkout/checkin, and auditing, which are the core Snipe-IT asset-management lifecycle operations. Remaining gaps, such as reporting or label printing, are peripheral rather than dead ends in the primary workflow.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Enables AI assistants to perform full CRUD operations on Snipe-IT inventory systems, managing assets, users, licenses, and more via 39 tools.
      40
      41
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for the Snipe-IT asset management REST API, enabling read and write operations on assets, licenses, accessories, and more.
      13
      Functional Source , Version 1.1, ALv2 Future
    • A
      license
      B
      quality
      D
      maintenance
      Read-only MCP server for Snipe-IT v7 REST API, providing search and retrieval of assets, users, models, categories, and locations without modification.
      16
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for Snipe-IT asset management, enabling users to read and manage IT assets, models, manufacturers, and related data through natural language. Designed to feed inventory into lifecycle audits.
      Apache 2.0