SuperAPI AI Directory

mcp-itglue

IT Glue, the MSP documentation platform: semantic search over documentation, document and flexible-asset read/write, and role-based access control.

Open website

About this tool

mcp-itglue is an IT Glue API MCP (Model Context Protocol) server for MSPs (Managed Service Providers), with the goal of enabling AI assistants to read and safely write documentation data in IT Glue.

Purpose The server wraps capabilities of the IT Glue platform such as documents, sections, flexible assets, images, and attachments into MCP tools for AI assistants to call during conversations, helping MSP teams query and maintain internal documentation using natural language.

Main capabilities

  • Documents and sections: list, read, create, update, publish, delete.
  • Flexible assets: browse asset types and their fields, and perform list, read, create, update, and delete on assets.
  • Images within documents: upload images to documents from base64, URL, or local path (placed inline into Text/Step sections, or into Gallery), and embed them using the returned <img src>; supports retrieving and deleting document images.
  • Attachments: attach any file to the attachments panel of a record (document, flexible asset, configuration, etc.); supports listing and deleting attachments.
  • Semantic vector search: for example, "how do I remove a backup agent" can find the Veeam decommission runbook even if the keywords do not match; uses OpenAI or Azure OpenAI embeddings, with a local JSON index.
  • Role-based access control: viewer / editor / admin bearer tokens determine which tools each session can see.
  • Bring your own key (BYOK): clients can provide their own IT Glue API key per session, thereby inheriting IT Glue's own permissions.
  • Index freshness: IT Glue webhook, self-refresh after writes, manual refresh endpoint.
  • Transport methods: stdio for local use, streamable HTTP for shared deployments; Docker image provided.

How to use Requires an IT Glue API key (IT Glue → Account → Settings → API Keys). Non-US region accounts need to set ITGLUE_REGION to eu or au. Running with npx is recommended; can be used in Claude Desktop (claude_desktop_config.json) or Claude Code (.configured in mcp.json), Claude Code provides a one-line command. Claude Desktop users can also get mcp-itglue.mcpb from the latest release, open it with Claude Desktop, and fill in the API key as prompted. stdio always runs with the full tool surface because it is a local single-user transport and uses your own key. The container image uses HTTP transport by default (for shared deployments); local stdio also has use cases under Docker. HTTP deployment: sessions are stored in memory, so you should run a single instance behind a load balancer (or add sticky sessions). RBAC: a comma-separated label:token list is stored via three environment variables; clients authenticate with Authorization: Bearer <token>, and the label appears in the audit log (e.g. [rbac] session … for alice (viewer)), making it easy to revoke one person's token individually without affecting others. Tools unavailable to a role are not even registered for that session—a viewer cannot even see itglue_create_document in tools/list; at runtime the role is also rechecked on every call as defense in depth. Session ids never carry privileges: every request is re-authenticated, and using a different principal on an existing session returns 403. If no tokens are configured, the server enters development mode, all requests get admin access, and a conspicuous startup warning is emitted; do not do this in production. BYOK: the client can send its own IT Glue API key in the x-itglue-api-key header of the initialize request; that session then accesses IT Glue with that key and gets the full tool surface, with actual access control determined by IT Glue's own key permissions. CLIENT_ITGLUE_KEYS controls this policy. When BYOK is enabled, the server-level ITGLUE_API_KEY becomes optional: sessions without a client key are explicitly rejected. Client keys are not logged; the session is bound to the key's SHA-256 hash, and the audit label is byok:<hash-prefix>. viewer is read-only, editor has read-write, and admin has all permissions. Difference between images in documents and attachments: IT Glue has two unrelated upload paths. Attachments (itglue_create_attachment) land in the record's Attachments sidebar and are not rendered in the document body. To display an image within a document, use itglue_create_document_image: when uploading, provide document_id (inline) or document_id + gallery_id (the document_gallery_id of a Gallery/Step section). For inline images, place the returned inline_resource_url verbatim into the section HTML, such as <img src="/6255696/docs/17772862/images/27211966">, or pass append_to_section_id to let the tool automatically append it to an existing Text/Step section. IT Glue strips data: URIs and its own S3 URLs from section content, leaving only these relative paths (and public https:// links). Chunked upload: tool parameters pass through the model, so content_base64 is only suitable for very small files—screenshots often have several megabytes of base64, the model must reproduce them token by token, and IT Glue rejects truncated results with NotIdentifiedByImageMagickError. Therefore, chunked upload is provided under HTTP: the model calls itglue_request_upload to get an upload_id, URL, and a ready-to-run curl; the client PUTs the file from the shell to that URL; the model then calls itglue_create_document_image or itglue_create_attachment with the upload_id. The slot lives for 15 minutes, is bound to the requesting principal (token label / BYOK key), and can only be consumed once. UPLOAD_STAGING can be used to choose one of two backends. For resources already on the network, url is still the simplest source. Advanced toolset (optional, off by default): itglue_get is a read-only GET passthrough to any API path, for endpoints not covered by the curated tools; itglue_find_endpoint searches the curated endpoint catalog. Via ITGLUE_ADVANCED_TOOLSET=true or --advanced enabled. Password resources (/passwords) are hard-blocked—credential values never enter the model. Vector tools only appear when an embedding provider is configured. Set OPENAI_API_KEY (or AZURE_OPENAI_API_KEY + AZURE_OPENAI_ENDPOINT, where EMBEDDING_MODEL is the deployment name), then run itglue_build_vector_index per organization. The index is a JSON file at VECTOR_INDEX_PATH (default ./vector-index.json); on an ephemeral host it should point to a persistent volume. The index stays fresh in three ways:

  • IT Glue webhook: in IT Glue, webhooks are sent by Workflows (Admin → Workflows), add a Document trigger (created/updated) and a Webhook action. Workflow actions cannot send custom headers, so put the shared secret in the URL: https://<host>/webhook/itglue?secret=<ITGLUE_WEBHOOK_SECRET>, and use a JSON payload template, for example Key Value event [trigger_name] resource_url [resource_url] resource_name [resource_name] organization_name [organization_name]. The document id is parsed from resource_url; the trigger name is mapped to created/updated/deleted by keyword. Classic JSON:API-style payloads with an x-itglue-webhook-signature HMAC-SHA256 header are also accepted.
  • Self-refresh: documents created/updated/published/deleted through this server's tools are automatically reindexed in the background.
  • Manual refresh: POST /index/refresh with Authorization: Bearer <ITGLUE_WEBHOOK_SECRET> (or x-refresh-secret header, or admin token). Request body {"document_id": "123"} refreshes a single document; an empty request body re-crawls all indexed organizations. Returns 202 and processes in the background.

Configuration reference CLI flags --transport, --port, --region, --base-url, --advanced override environment variables. Run mcp-itglue --help for details.

Limitations

  • IT Glue rate limits: 3000 requests per key per 5 minutes.
  • The IT Glue documents API is only partially documented; the documents/sections endpoints follow observed API behavior.
  • Flexible asset trait updates replace the entire traits object—the update tool's description warns the model to send back all traits.
  • List tools return summary fields per item (both in text and structuredContent), keeping the default page size within client token limits; itglue_get_* tools return full records.
  • IT Glue has no user impersonation: a given API key always acts as itself. RBAC here controls which tool calls a session can make; BYOK delegates to IT Glue's own key permissions.

Author: Eugene Samotija (@selic) — defency.net. More projects: github.com/selic, LinkedIn.