Theme
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
| Scope | JWT / groups | API key JSON |
|---|---|---|
| Read | mcp module read | "mcp": { "read": true } |
| Control | mcp 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.
| Path | Purpose |
|---|---|
/mcp/clients | List clients in scope |
/mcp/clients/{id} | Client detail |
/mcp/clients/{id}/sites | Sites for a client |
/mcp/sites/{id} | Site detail |
/mcp/devices | List devices |
/mcp/devices/{deviceId} | Device detail |
/mcp/devices/{deviceId}/software | Software inventory |
/mcp/org/summary | Organization summary |
/mcp/alerts | Alerts |
/mcp/patches/summary | Patch summary |
/mcp/compliance/summary | Compliance summary |
/mcp/vulnerabilities/summary | Vulnerability summary |
/mcp/audit | Audit search |
/mcp/review/comprehensive | Comprehensive review bundle |
Responses use { "scope": …, "data": …, "meta": … }.
Control tools (POST)
Require MCP control plus the module below. Paths are under /mcp/devices/{deviceId}/….
| Suffix | Tool | Extra permission |
|---|---|---|
services | List services | Process read |
processes | List processes | Process read |
event_logs | Event logs | Process read |
health_snapshot | Health snapshot | Devices read |
run_script | Run a script | Scripts create |
Example — MCP clients
bash
curl -sS -H "Authorization: Bearer oprmm_YOUR_SECRET" \
"https://<your-portal-host>/api/mcp/clients?limit=20"Next steps
- Developer API overview
- Interactive API reference (filter tag MCP)
- API keys
