Skip to content

MCP integration ​

What this is ​

MCP (Model Context Protocol gateway) exposes read summaries and a small set of device control tools under /api/mcp/*. It is designed for AI assistants and automation that use the same API keys as other integrations.

Who can use it ​

  • Your organization must have MCP enabled (organization_settings.mcp_enabled).
  • Your user (or API key) needs the MCP permission module:
    • Read → MCP read tools
    • Edit → MCP control tools (API keys use permissions.mcp.control)
  • Control tools also need the matching feature module (for example Process read, Scripts create).

Enable MCP for the organization ​

An administrator enables MCP in organization settings (portal). Until that flag is on, all /mcp/* calls return 403 with code MCP_DISABLED.

Scopes ​

ScopeJWT / groupsAPI key JSON
Readmcp module read"mcp": { "read": true }
Controlmcp module edit"mcp": { "control": true }

You can grant read without control. Control without org MCP enabled is rejected.

Read tools (GET) ​

Use query filters such as client_id, site_id, limit, and offset where listed in the interactive reference.

PathPurpose
/mcp/clientsList clients in scope
/mcp/clients/{id}Client detail
/mcp/clients/{id}/sitesSites for a client
/mcp/sites/{id}Site detail
/mcp/devicesList devices
/mcp/devices/{deviceId}Device detail
/mcp/devices/{deviceId}/softwareSoftware inventory
/mcp/org/summaryOrganization summary
/mcp/alertsAlerts
/mcp/patches/summaryPatch summary
/mcp/compliance/summaryCompliance summary
/mcp/vulnerabilities/summaryVulnerability summary
/mcp/auditAudit search
/mcp/review/comprehensiveComprehensive review bundle

Responses use { "scope": …, "data": …, "meta": … }.

Control tools (POST) ​

Require MCP control plus the module below. Paths are under /mcp/devices/{deviceId}/….

SuffixToolExtra permission
servicesList servicesProcess read
processesList processesProcess read
event_logsEvent logsProcess read
health_snapshotHealth snapshotDevices read
run_scriptRun a scriptScripts create

Example — MCP clients ​

bash
curl -sS -H "Authorization: Bearer oprmm_YOUR_SECRET" \
  "https://<your-portal-host>/api/mcp/clients?limit=20"

Next steps ​

OnPoint RMM knowledge base