snipeit-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@snipeit-mcp check out asset tag LT-4471 to maria@acme.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 setupIt 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-mcpOpenClaw
openclaw mcp add snipeit --command npx --arg -y --arg snipeit-mcpOr 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/search any resource. |
| One record by id. |
| Resolve an asset tag, serial, username, email or employee number to a record. |
| Fields accepted by create/update plus list filters. For hardware, also the instance's custom fields. |
| Create a record. Hardware custom fields can be passed by display name. |
| Partial update. |
| Delete. Requires |
| Restore a soft-deleted record. |
| Hardware to user/asset/location, accessories and consumables to user, components to asset, licenses to user/asset (first free seat). |
| Hardware by id; accessories/licenses from a user; components from an asset. |
| 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=1for 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/updaterefusepermissions,groups,idand 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 -vThe 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 toolsauditAudit 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 recordADestructive
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 fieldsBRead-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 recordCRead-only
Fetch one Snipe-IT record by numeric id.
Inputs: id (required), resource (required), raw.
listList recordsARead-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 usernameARead-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 recordBIdempotent
Restore a soft-deleted record. Snipe-IT supports this for hardware, users, models and manufacturers.
Inputs: id (required), resource (required).
updateUpdate recordCIdempotent
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
Scored across 11 tools
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.
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.
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.
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
Manage uptime monitors, incidents and status pages from any MCP client.
Deterministic IT asset registry operated by AI agents over MCP. Agents propose, humans approve.
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI assistants to perform full CRUD operations on Snipe-IT inventory systems, managing assets, users, licenses, and more via 39 tools.4041MIT
- AlicenseAqualityBmaintenanceMCP server for the Snipe-IT asset management REST API, enabling read and write operations on assets, licenses, accessories, and more.13Functional Source , Version 1.1, ALv2 Future
- AlicenseBqualityDmaintenanceRead-only MCP server for Snipe-IT v7 REST API, providing search and retrieval of assets, users, models, categories, and locations without modification.16MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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