ninja-one-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., "@ninja-one-mcp Which clients have the most offline servers right now?"
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.
ninja-one-mcp
Every NinjaOne API call. None by accident.
An MCP server that gives AI agents safe, complete access to the NinjaOne RMM Public API v2. Read-only by default. Two gates for anything that changes a device.
Website · Tool catalog · Deploy to Azure · API coverage · Design · NinjaOne docs index
Complete | All 315 operations in NinjaOne's Public API v2 are covered. 302 have typed tools and 13 multipart or UI-config endpoints go through a gated passthrough. A CI check maps every operation in the spec to its tool. |
Safe by construction | Read-only until you say otherwise. Destructive actions need a second switch, and every change needs |
Built for many clients | Organizations resolve by id or name, ambiguity is refused, and nothing is inferred. An optional boundary holds every call inside the clients you list. |
Agent-shaped | Compact, paged results. Composed workflows instead of 15 round trips. Every error ends with a |
Everywhere | Claude Code, Claude Desktop, Codex, Cursor, VS Code with Copilot, and any MCP client that runs stdio servers. Or deploy it once to Azure Container Apps for a whole team, with Microsoft Entra ID sign-in. |
What you can ask
Which clients have the most offline servers right now?
Give me a full profile of device 1042: disks, patches, alerts.
Summarize failed OS patches for Example Org this week, grouped by KB.
Which devices still run an old version of the VPN client?
Put HOST-1042 in maintenance tonight from 22:00 to 02:00, then reboot it. (needs write mode, then both gates)
Related MCP server: NinjaOne MCP Server
Install
You need a NinjaOne API client first (see Create the API client). Then pick your client.
/plugin marketplace add patrickking67/ninja-one-mcp
/plugin install ninjaone@ninja-one-mcpClaude Code asks for the client id, secret, region, mode and toolsets. The secret is kept in your system keychain. The plugin also adds four skills: working with NinjaOne, setup, fleet triage and patch review.
Or add just the server:
claude mcp add ninjaone -e NINJAONE_CLIENT_ID=your-id -e NINJAONE_CLIENT_SECRET=your-secret -e NINJAONE_REGION=us -- npx -y github:patrickking67/ninja-one-mcpDownload ninja-one-mcp.mcpb from the latest release and open it. Claude Desktop asks for the credentials and keeps the secret out of the model's view.
codex mcp add ninjaone --env NINJAONE_CLIENT_ID=your-id --env NINJAONE_CLIENT_SECRET=your-secret --env NINJAONE_REGION=us -- npx -y github:patrickking67/ninja-one-mcpOr install the plugin, then put the credentials in the credentials file:
codex plugin marketplace add patrickking67/ninja-one-mcpAdd to Cursor, then replace the placeholders. Or add it to .cursor/mcp.json yourself:
{
"mcpServers": {
"ninjaone": {
"command": "npx",
"args": ["-y", "github:patrickking67/ninja-one-mcp"],
"env": {
"NINJAONE_CLIENT_ID": "your-id",
"NINJAONE_CLIENT_SECRET": "your-secret",
"NINJAONE_REGION": "us",
"NINJAONE_TOOLSETS": "core,devices,alerts"
}
}
}
}Cursor works best with a small toolset.
Install in VS Code, or add .vscode/mcp.json. VS Code prompts for the secret and stores it securely:
{
"inputs": [
{ "type": "promptString", "id": "ninjaone_client_id", "description": "NinjaOne client id" },
{ "type": "promptString", "id": "ninjaone_client_secret", "description": "NinjaOne client secret", "password": true }
],
"servers": {
"ninjaone": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:patrickking67/ninja-one-mcp"],
"env": {
"NINJAONE_CLIENT_ID": "${input:ninjaone_client_id}",
"NINJAONE_CLIENT_SECRET": "${input:ninjaone_client_secret}",
"NINJAONE_REGION": "us"
}
}
}
}Copilot sends at most 128 tools per request. The default toolsets list 107.
Run npx -y github:patrickking67/ninja-one-mcp as a stdio server, with NINJAONE_CLIENT_ID, NINJAONE_CLIENT_SECRET and NINJAONE_REGION in its environment. You can also use the credentials file.
azd env new ninjaone-prod
infra/scripts/entra-app.sh
azd env set NINJAONE_CLIENT_ID <id> && azd env set-secret NINJAONE_CLIENT_SECRET
azd upThis deploys one Streamable HTTP endpoint behind Microsoft Entra ID, with the NinjaOne secret in Key Vault and the same gates as the local server. VS Code signs in with Microsoft on its own. See docs/AZURE.md for the design, trust boundaries and every step.
Create the API client
In NinjaOne, go to Administration > Apps > API > Client App IDs > Add:
Application platform: API Services (machine-to-machine)
Allowed grant types: Client Credentials
Scopes:
monitoringto read,managementto make changes,controlto run scripts and remote actions. Grant only what you need. The server asks formonitoringunlessNINJAONE_SCOPESsays more.
The client lives in one regional instance, the one you sign in to: us (app.ninjarmm.com), us2, eu, ca or oc.
Then ask your agent to run ninjaone_test_connection.
The safety model
NINJAONE_MODE=write NINJAONE_ALLOW_DESTRUCTIVE=true
read 154 tools ──────────── always ──────────────────────────────────────▶
write 105 tools ─── refused ───┤ runs, with confirm: true ─────────────────▶
destr. 55 tools ─── refused ───────────── refused ───┤ runs, confirm: true ▶Two gates, set by the operator, never by the model. Writes need
NINJAONE_MODE=write. The destructive tier needsNINJAONE_ALLOW_DESTRUCTIVE=trueas well. That tier covers deletes, reboots, scripts, patch installs, full replacements, secret-bearing downloads and raw writes. A refused tool names the setting and sends nothing.NINJAONE_WRITE_ALLOWLISTcan narrow writes to a short list.confirm: trueon every change. The gates are a standing decision.confirmis the model stating that it means this specific call.Dry runs and undo. Writes that touch many records, such as policy mappings, bulk archive and delete, and device approval, return the exact request without sending it until
dry_run: false. Writes read back and returnbeforeandafter.The organization boundary.
NINJAONE_ALLOWED_ORG_IDS=12,15holds every call inside those clients:Device filters get
AND org in (12,15)appended. NinjaOne filters only combine with AND, so this can only narrow.Device ids are checked against the boundary.
Rows are re-checked.
Tools that cannot be scoped refuse, including the raw passthrough.
Secrets stay put.
Secure custom field values are never requested.
Signed and tokenized URLs (attachments, installers, exports) come only from destructive-tier
download_*tools withreveal: true.Credentials travel in a form body and a bearer header, never a query string, and are redacted from every result, error and log line.
Plaintext
http:is refused off loopback.
Actions are never replayed. Scripts, reboots, patch installs and service control are never retried, not even on 429. A 5xx on any write is never replayed.
Every error says what to do. Failures are tool results whose last line starts with
Next step:and names the argument, setting or tool that fixes them.
These gates bind this server. A credential held by an agent outside it is bound only by its NinjaOne scopes. Grant the API client the least it needs.
Toolsets
About 300 tools is more than some clients accept. NINJAONE_TOOLSETS picks what is listed. Write all for everything, default for the default set, or a list such as default,billing.
Toolset | Tools | Covers |
| 14 | Diagnostics, organizations, locations, find, fleet health. Always on. |
| 27 | Device lists, search, profile, hardware, software, services, custom field values. |
| 7 | Alerts, activities, jobs. |
| 23 | Fleet-wide |
| 20 | Reboot, scripts, services, patch scan and apply, maintenance, approval. |
| 13 | Tickets, boards, forms, comments, ticket contacts. |
| 3 | Interactive MCP Apps views: fleet, device, alerts. |
| 16 | Policies, conditions, device roles, groups, script library, scheduled tasks. |
| 57 | Documents, templates, checklists, knowledge base. |
| 40 | Asset tags, software licenses, relationships, related items, unmanaged devices. |
| 11 | Custom field definitions and global values. |
| 24 | Contacts, end users, technicians, roles. |
| 31 | Accounts, agreements, invoices, products, ticket products. |
| 8 | Backup jobs and usage, integrity checks, vulnerability scan groups. |
| 18 | Webhook, notification channels, custom tabs, node roles, installers. |
| 2 |
|
The first seven are the default: 107 tools. See every tool in docs/TOOLS.md.
Highlights
ninjaone_report_fleet_health: every client in one call, with devices, offline, health, pending and failed patches, alerts and AV threats. It fans out under a concurrency cap. A client that fails gets its own error row and does not sink the answer.ninjaone_get_device_profile: the device record, last user, volumes, disks, CPUs, NICs, alerts and patch counts in one call. A failed part is reported, not fatal.ninjaone_view_fleet,ninjaone_view_device,ninjaone_view_alerts: interactive views in hosts that render MCP Apps. The Reset button calls the same gated tool the model would. Other hosts get the same data as JSON.23
ninjaone_report_*tools over/v2/queries, cursor paged and narrowed withdf.ninjaone://docs/llms.txtandninjaone://docs/device-filters: NinjaOne's public docs index and thedfsyntax, served as MCP resources.
Configuration
Variable | Default | Meaning |
| (required) | API client id. |
| (required) | API client secret. Never logged or returned. |
| (required) |
|
| Instance origin. Overrides the region. Must be https. | |
|
| OAuth scopes to request: |
|
|
|
|
|
|
| Comma-separated write tool names. Every other write refuses. | |
| Comma-separated organization ids. A hard boundary on every call. | |
| Default organization when a call omits | |
|
| Which toolsets to list. |
|
| Fan-out concurrency, 1 to 16. |
|
| Credentials file path, or |
Typos fail closed. ninjaone_status_server reports every problem without calling the API.
Credentials file
Some hosts start MCP servers with a filtered environment. For those, put KEY=VALUE lines in ~/.config/ninja-one-mcp/.env:
mkdir -p ~/.config/ninja-one-mcp
printf 'NINJAONE_CLIENT_ID=...\nNINJAONE_CLIENT_SECRET=...\nNINJAONE_REGION=us\n' > ~/.config/ninja-one-mcp/.env
chmod 600 ~/.config/ninja-one-mcp/.envOnly
NINJAONE_*keys are read.The environment always wins over the file.
The file is ignored if other users can read it.
How it is built
src/
routes/ declarative route tables: one Route per endpoint (path, scope, paging, body, safety)
engine.ts turns every Route into a tool through one audited path
tools/ composed workflows, views, passthrough, diagnostics, resources
auth.ts OAuth client credentials, token cache, single-flight refresh
client.ts HTTP, 401 refresh, 429 and GET-only 5xx retries, never-retry actions
orgs.ts organization directory, boundary, device checks, df narrowing
gate.ts spec.ts the two gates, confirm, annotations; defineTool is the only way to register
toolsets.ts listing groups for clients that cap tools
http/ Streamable HTTP transport: Entra or shared-token auth, metadata, origin checks
spec/ NinjaOne's OpenAPI spec, the source of truth for coverage and body docs
scripts/ conformance, coverage, catalog, body docs, bundle, .mcpb pack
plugins/ninjaone/ the NinjaOne plugin: Claude Code and Codex manifests, skills, bundled server
site/ the website (GitHub Pages)
infra/, azure.yaml Azure Container Apps deployment (Bicep + azd), DockerfileEach tool is declared once as data. The engine applies the same order to every call:
Gate.
Scope.
Request.
before.Dry run.
Send.
after.Shape.
A safety rule is therefore written once, not 300 times. docs/DESIGN.md explains the decisions.
Develop
npm ci
npm run check # typecheck, generated-file drift, 40 tests, 5,164 conformance checks, coverage, catalog, bundle
npm run gen # regenerate body docs, views runtime, catalog, coverage and the plugin bundle
npm run pack:mcpb # build/ninja-one-mcp.mcpbThe tests run the built server over real stdio against a loopback NinjaOne mock. The mock reproduces the API's dangerous behaviors, such as a policy PUT that replaces everything and a POST that 5xxs after it may have applied. A tool that would cause damage fails a test, not a tenant. Nothing leaves the machine.
See CONTRIBUTING.md and AGENTS.md.
Security
Report vulnerabilities privately through GitHub's private vulnerability reporting. See SECURITY.md.
License
MIT © 2026 Patrick King.
NinjaOne also runs its own hosted MCP server (Katana AI), which is monitoring-only for now. This project is independent and open source. It is not affiliated with or endorsed by NinjaOne. NinjaOne is a trademark of its owner.
Available Tools
108 toolsninjaone_add_ticket_commentAdd Ticket CommentA
Add an internal note to a ticket (never visible to the requester), as plain text or HTML, optionally with time tracked. To reply to the requester, use ninjaone_send_ticket_reply. Read the log with ninjaone_list_ticket_log_entries. NinjaOne may reject ticket writes from client-credentials apps (405); see the README. Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), ticket_id (required), html_body, +1 more.
ninjaone_apply_os_patchesApply OS PatchesADestructive
Install approved OS patches on one device now. This can reboot the device per its policy. Never retried automatically. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_apply_software_patchesApply Software PatchesADestructive
Install approved third-party software patches on one device now. Never retried automatically. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_approve_devicesApprove DevicesAIdempotent
Approve devices waiting in the pending queue (find them with ninjaone_list_devices and df "status = PENDING"). Dry run by default. Body (object) per NinjaOne nodeApprovalOperation. Fields: devices (integer[]). Example: {"devices": [101, 102]}. Runs as a dry run unless dry_run is false: the first call returns the exact request without sending it. Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), dry_run.
ninjaone_cancel_device_maintenanceCancel Device MaintenanceAIdempotent
Cancel the pending or active maintenance window on one device. Needs NINJAONE_MODE=write and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_create_locationCreate LocationA
Add a location (site) to an organization. Returns the new location. Body (object) per NinjaOne createLocationForOrganization. Fields: name (string), address (string), description (string), userData (object). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), org.
ninjaone_create_organizationCreate OrganizationA
Create an organization (client), optionally with locations and policy mappings. Returns the new organization. Then ninjaone_create_location or ninjaone_download_installer. Account-wide (not organization scoped). Body (object) per NinjaOne createOrganization. Fields: name (string), description (string), userData (object), nodeApprovalMode ("AUTOMATIC"|"MANUAL"|"REJECT"), locations (object[]), policies (object[]). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), template_organization_id.
ninjaone_create_ticketCreate TicketA
Creates a ticket. Requires clientId, ticketFormId, subject and status; find them with ninjaone_list_organizations, ninjaone_list_ticket_forms and ninjaone_list_ticket_statuses. Returns the new ticket; read it with ninjaone_get_ticket. Body (object) per NinjaOne create_2. Fields: clientId (integer, required), ticketFormId (integer, required), subject (string, required), status (string, required), locationId (integer), nodeId (integer), description (object), type ("PROBLEM"|"QUESTION"|"INCIDENT"|"TASK"|"CHANGE_REQUEST"|"SERVICE_REQUEST"|...), cc (object), assignedAppUserId (integer), requesterUid (string), severity ("NONE"|"MINOR"|"MODERATE"|"MAJOR"|"CRITICAL"), priority ("NONE"|"LOW"|"MEDIUM"|"HIGH"), parentTicketId (integer), tags (string[]), attributes (object[]), additionalAssignedTechnicianIds (integer[]), followupTime (number). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required).
ninjaone_find_organizationFind OrganizationARead-onlyIdempotent
Find organizations whose name contains the query (case-insensitive), with id and name. Use it to turn a client name into the org argument. Returns every match; when more than one matches, pass the id of the one you mean to other tools.
Inputs: query (required).
ninjaone_get_deviceGet DeviceARead-onlyIdempotent
Get one device: class, organization, location, policy, role, OS, system, maintenance and references. For hardware, volumes and patches in one call use ninjaone_get_device_profile.
Inputs: device_id (required).
ninjaone_get_device_custom_fieldsGet Device Custom FieldsARead-onlyIdempotent
Get one device's custom field values. Secure fields are never revealed. To change them, ninjaone_update_device_custom_fields.
Inputs: device_id (required), with_inheritance.
ninjaone_get_device_last_userGet Device Last UserARead-onlyIdempotent
Get the last logged-on user of one device and when they logged on.
Inputs: device_id (required).
ninjaone_get_device_linkGet Device LinkARead-onlyIdempotent
Get the NinjaOne console URL for one device, to hand a person a direct link. The link needs a console login.
Inputs: device_id (required).
ninjaone_get_device_profileGet Device ProfileARead-onlyIdempotent
Everything about one device in one call: the device record, last logged-on user, volumes, disks, processors, network interfaces, active alerts, and pending/failed OS and software patch counts. Each part reports its own error instead of failing the whole call. Use it to triage a device; then ninjaone_list_device_activities for history or ninjaone_get_device_scripting_options to act.
Inputs: device_id (required), include_software.
ninjaone_get_device_scripting_optionsGet Device Scripting OptionsARead-onlyIdempotent
List the scripts and built-in actions that can run on one device, with their ids and parameters. Call this before ninjaone_run_device_script.
Inputs: device_id (required), lang.
ninjaone_get_location_custom_fieldsGet Location Custom FieldsARead-onlyIdempotent
Get the custom field values set on one location of an organization.
Inputs: location_id (required), org, with_inheritance.
ninjaone_get_organizationGet OrganizationARead-onlyIdempotent
Get one organization: name, description, approval mode, locations, policy mappings and settings. Then ninjaone_list_org_devices or ninjaone_get_org_custom_fields.
Inputs: org.
ninjaone_get_org_custom_fieldsGet Org Custom FieldsARead-onlyIdempotent
Get the custom field values set on one organization. Secure fields are never revealed. To change them, ninjaone_update_org_custom_fields.
Inputs: org.
ninjaone_get_ticketGet TicketARead-onlyIdempotent
Returns one ticket: subject, status, type, priority, client, assignee, tags and attribute values. Use ninjaone_list_ticket_log_entries for its comments and history.
Inputs: ticket_id (required).
ninjaone_get_ticket_formGet Ticket FormARead-onlyIdempotent
Returns one ticket form with its fields. Use it to see which attributes a ticket created from the form needs. Account-wide (not organization scoped).
Inputs: form_id (required).
ninjaone_list_activitiesList ActivitiesARead-onlyIdempotent
List activity log entries across devices (newest first), narrowed with df and filters. Paged backwards in time.
Inputs: df, tz, lang, type, +11 more.
ninjaone_list_alertsList AlertsBRead-onlyIdempotent
List active alerts (triggered conditions) across devices, narrowed with df. Then ninjaone_get_device_profile on a device, or ninjaone_reset_alert once handled.
Inputs: df, tz, lang, limit, +3 more.
ninjaone_list_backup_jobsList Backup JobsBRead-onlyIdempotent
Lists backup jobs with status, plan, size and device. Narrow with a device filter. Pair with ninjaone_list_integrity_check_jobs.
Inputs: df, sf, ddf, ptf, +5 more.
ninjaone_list_board_ticketsList Board TicketsARead-onlyIdempotent
List the tickets on a ticketing board (find boards with ninjaone_list_ticket_boards), with optional search and sort. Cursor paged. Then ninjaone_get_ticket for one ticket.
Inputs: board_id (required), limit, cursor, fields, +3 more.
ninjaone_list_device_activitiesList Device ActivitiesARead-onlyIdempotent
List one device's activity log (scripts, patches, alerts, actions), newest first, paged backwards in time.
Inputs: device_id (required), tz, lang, limit, +7 more.
ninjaone_list_device_alertsList Device AlertsARead-onlyIdempotent
List one device's active alerts (triggered conditions). For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), tz, lang, limit, +2 more.
ninjaone_list_device_custom_field_definitionsList Device Custom Field DefinitionsARead-onlyIdempotent
List the custom field definitions that apply to devices, locations and organizations (names, labels, types). Account-wide (not organization scoped).
Inputs: limit, cursor, fields, scopes.
ninjaone_list_device_disksList Device DisksARead-onlyIdempotent
List one device's physical disk drives. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), limit, cursor, fields.
ninjaone_list_device_geolocationList Device GeolocationBRead-onlyIdempotent
List one device's geolocation history (where location tracking is enabled).
Inputs: device_id (required), limit, cursor, fields.
ninjaone_list_device_jobsList Device JobsARead-onlyIdempotent
List one device's currently running jobs (scripts, patching, actions). For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), tz, lang, limit, +2 more.
ninjaone_list_device_network_interfacesList Device Network InterfacesARead-onlyIdempotent
List one device's network interfaces with IP and MAC addresses. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), limit, cursor, fields.
ninjaone_list_device_os_patchesList Device OS PatchesARead-onlyIdempotent
List one device's pending, failed and rejected OS patches. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), type, limit, cursor, +3 more.
ninjaone_list_device_os_patch_installsList Device OS Patch InstallsARead-onlyIdempotent
List one device's OS patch install history. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), limit, cursor, fields, +3 more.
ninjaone_list_device_policy_overridesList Device Policy OverridesBRead-onlyIdempotent
Summarize the policy settings this device overrides locally.
Inputs: device_id (required).
ninjaone_list_device_processorsList Device ProcessorsARead-onlyIdempotent
List one device's processors. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), limit, cursor, fields.
ninjaone_list_devicesList DevicesARead-onlyIdempotent
List devices, compact by default, narrowed with df. Then ninjaone_get_device_profile for detail on one device. For free-text lookup use ninjaone_search_devices.
Inputs: df, limit, cursor, fields.
ninjaone_list_devices_detailedList Devices DetailedARead-onlyIdempotent
List devices with OS, system, last logged-on user and references. Heavier than ninjaone_list_devices; pass fields to keep it small.
Inputs: df, limit, cursor, fields.
ninjaone_list_device_servicesList Device ServicesARead-onlyIdempotent
List one device's Windows services with state and start type. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), name, limit, state, +2 more.
ninjaone_list_device_softwareList Device SoftwareARead-onlyIdempotent
List one device's installed software inventory. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), limit, cursor, fields.
ninjaone_list_device_software_patchesList Device Software PatchesARead-onlyIdempotent
List one device's pending, failed and rejected third-party software patches. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), type, limit, cursor, +4 more.
ninjaone_list_device_software_patch_installsList Device Software Patch InstallsARead-onlyIdempotent
List one device's third-party software patch install history. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), type, limit, cursor, +6 more.
ninjaone_list_device_volumesList Device VolumesARead-onlyIdempotent
List one device's storage volumes with capacity and free space. For the same data across many devices, use the matching ninjaone_report_* tool with df.
Inputs: device_id (required), limit, cursor, fields, +1 more.
ninjaone_list_jobsList JobsBRead-onlyIdempotent
List jobs running now across devices (scripts, patching, actions), narrowed with df.
Inputs: df, tz, lang, limit, +3 more.
ninjaone_list_locationsList LocationsARead-onlyIdempotent
List locations across every organization in scope, each with its organizationId. For one client prefer ninjaone_list_org_locations.
Inputs: limit, cursor, fields.
ninjaone_list_organizationsList OrganizationsARead-onlyIdempotent
List organizations (clients) with id, name and approval mode. Use it to find the org argument for other tools, or ninjaone_find_organization to match a name. Paged.
Inputs: of, limit, cursor, fields.
ninjaone_list_organizations_detailedList Organizations DetailedARead-onlyIdempotent
List organizations with their locations, policy mappings and settings. Heavier than ninjaone_list_organizations; use it when you need locations or policies for many clients at once.
Inputs: of, limit, cursor, fields.
ninjaone_list_org_devicesList Org DevicesBRead-onlyIdempotent
List the devices of one organization (compact by default). Then ninjaone_get_device or ninjaone_get_device_profile for one device.
Inputs: org, limit, cursor, fields.
ninjaone_list_org_locationsList Org LocationsBRead-onlyIdempotent
List the locations (sites) of one organization, with id, name, address and description.
Inputs: org, limit, cursor, fields.
ninjaone_list_ticket_attributesList Ticket AttributesARead-onlyIdempotent
Lists ticket attributes (custom ticket fields) with type and options. Attribute ids are used in the attributes array when creating or updating a ticket. Account-wide (not organization scoped).
Inputs: limit, cursor, fields.
ninjaone_list_ticket_boardsList Ticket BoardsARead-onlyIdempotent
Lists ticket boards (saved ticket views) with id, name and ticket count. Use it to find a board id; read the tickets on a board with ninjaone_list_board_tickets. Account-wide (not organization scoped).
Inputs: limit, cursor, fields.
ninjaone_list_ticket_contactsList Ticket ContactsARead-onlyIdempotent
Lists ticketing contacts with client, name, email and job title. Use ninjaone_list_ticket_users to search technicians, end users and contacts together.
Inputs: limit, cursor, fields.
ninjaone_list_ticket_formsList Ticket FormsARead-onlyIdempotent
Lists ticket forms (templates that define ticket fields). Use a form id as ticketFormId when creating a ticket; inspect one with ninjaone_get_ticket_form. Account-wide (not organization scoped).
Inputs: limit, cursor, fields.
ninjaone_list_ticket_log_entriesList Ticket Log EntriesARead-onlyIdempotent
Lists a ticket's log entries (description, comments, saves, products), newest paging by anchor id. Add a comment with ninjaone_add_ticket_comment.
Inputs: ticket_id (required), type, limit, cursor, +2 more.
ninjaone_list_ticket_statusesList Ticket StatusesARead-onlyIdempotent
Lists ticket statuses with name, display name and id. Use a status name when creating or updating a ticket. Account-wide (not organization scoped).
Inputs: limit, cursor, fields.
ninjaone_list_ticket_usersList Ticket UsersARead-onlyIdempotent
Searches technicians, end users and contacts that can be set on a ticket (requester, assignee, cc). Returns uid and id to use in ninjaone_create_ticket.
Inputs: org, limit, cursor, fields, +2 more.
ninjaone_reboot_deviceReboot DeviceADestructive
Reboot one device now. NORMAL lets users save work where the OS allows; FORCED does not. Never retried automatically. Body (object) per NinjaOne rebootDevices. Fields: reason (string). Optional {"reason": "..."} shown in the activity log. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: mode (required), confirm (required), device_id (required), body.
ninjaone_reject_devicesReject DevicesADestructiveIdempotent
Reject devices waiting in the pending queue. Rejected devices are removed. Dry run by default. Body (object) per NinjaOne nodeApprovalOperation. Fields: devices (integer[]). Example: {"devices": [101, 102]}. Runs as a dry run unless dry_run is false: the first call returns the exact request without sending it. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: body (required), confirm (required), dry_run.
ninjaone_remove_device_ownerRemove Device OwnerADestructiveIdempotent
Remove the owner from one device. Returns the device as it was, including the owner to restore. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_report_antivirus_statusReport Antivirus StatusARead-onlyIdempotent
Report antivirus product status (product, state, definitions) across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +3 more.
ninjaone_report_antivirus_threatsReport Antivirus ThreatsARead-onlyIdempotent
Report antivirus threats detected across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_computer_systemsReport Computer SystemsARead-onlyIdempotent
Report computer system details (manufacturer, model, serial, BIOS) across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_custom_fieldsReport Custom FieldsARead-onlyIdempotent
Report device custom field values (secure values are never included) across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields, +1 more.
ninjaone_report_custom_fields_detailedReport Custom Fields DetailedARead-onlyIdempotent
Report device custom field values with type and update metadata (secure values are never included) across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields, +1 more.
ninjaone_report_device_healthReport Device HealthARead-onlyIdempotent
Report device health status (healthy, needs attention, unhealthy) with the reasons across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields, +1 more.
ninjaone_report_disksReport DisksARead-onlyIdempotent
Report physical disk drives across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_fleet_healthReport Fleet HealthARead-onlyIdempotent
Health across organizations, one row per organization: device count, offline devices, devices by health status, pending and failed OS patches, active alerts, and antivirus threats. Runs per organization with a concurrency cap (NINJAONE_MAX_CONCURRENCY); a failing organization is reported on its own row. Pass org to limit it to one client. Then ninjaone_list_devices with df "org = AND offline" to drill in.
Inputs: org, max_orgs.
ninjaone_report_logged_on_usersReport Logged On UsersARead-onlyIdempotent
Report the last logged-on user per device across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields.
ninjaone_report_network_interfacesReport Network InterfacesARead-onlyIdempotent
Report network interfaces with IP and MAC addresses across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields.
ninjaone_report_operating_systemsReport Operating SystemsARead-onlyIdempotent
Report operating systems, versions, builds and last boot across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_os_patchesReport OS PatchesARead-onlyIdempotent
Report pending, failed and rejected OS patches across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, type, limit, +4 more.
ninjaone_report_os_patch_installsReport OS Patch InstallsARead-onlyIdempotent
Report OS patch install history across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields, +3 more.
ninjaone_report_policy_overridesReport Policy OverridesARead-onlyIdempotent
Report local policy overrides per device across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields.
ninjaone_report_processorsReport ProcessorsARead-onlyIdempotent
Report processors across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_raid_controllersReport RAID ControllersARead-onlyIdempotent
Report RAID controllers across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_raid_drivesReport RAID DrivesARead-onlyIdempotent
Report RAID physical drives and their status across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +1 more.
ninjaone_report_scoped_custom_fieldsReport Scoped Custom FieldsARead-onlyIdempotent
Report custom field values on organizations, locations and end users (secure values are never included) across devices, one row per item, cursor paged. Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: limit, cursor, fields, scopes, +1 more.
ninjaone_report_scoped_custom_fields_detailedReport Scoped Custom Fields DetailedARead-onlyIdempotent
Report scoped custom field values with metadata (secure values are never included) across devices, one row per item, cursor paged. Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: limit, cursor, fields, scopes, +1 more.
ninjaone_report_softwareReport SoftwareARead-onlyIdempotent
Report installed software (name, publisher, version, install date) across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, limit, cursor, fields, +2 more.
ninjaone_report_software_patchesReport Software PatchesARead-onlyIdempotent
Report pending, failed and rejected third-party software patches across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, type, limit, +5 more.
ninjaone_report_software_patch_installsReport Software Patch InstallsARead-onlyIdempotent
Report third-party software patch install history across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, type, limit, cursor, +6 more.
ninjaone_report_volumesReport VolumesARead-onlyIdempotent
Report storage volumes with capacity and free space across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, ts, limit, cursor, +2 more.
ninjaone_report_windows_servicesReport Windows ServicesARead-onlyIdempotent
Report Windows services and their state across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.
Inputs: df, name, limit, state, +2 more.
ninjaone_reset_alertReset AlertAIdempotent
Reset (clear) one alert. If the condition is still true it triggers again. Needs NINJAONE_MODE=write and confirm: true.
Inputs: confirm (required), alert_uid (required).
ninjaone_reset_alert_with_activityReset Alert With ActivityAIdempotent
Reset one alert and attach custom data to the activity it records, e.g. a ticket reference. Body (object) per NinjaOne resetAlertSetActivityData. Needs NINJAONE_MODE=write and confirm: true.
Inputs: confirm (required), alert_uid (required), body.
ninjaone_reset_device_policy_overridesReset Device Policy OverridesADestructiveIdempotent
Remove every local policy override on one device, returning it to its policy. Returns the overrides as they were. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_retire_deviceRetire DeviceADestructiveIdempotent
Decommission one device: it stops being monitored and managed. Returns the device record as it was. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_run_device_scriptRun Device ScriptADestructive
Run a script or built-in action on one device. Get valid ids and parameters from ninjaone_get_device_scripting_options first. Needs the control scope. Never retried automatically; check the result with ninjaone_list_device_activities. Body (object) per NinjaOne runScriptOnDevice. Fields: type ("ACTION"|"SCRIPT"), id (integer), uid (string), parameters (string), runAs (string). Example: {"type": "SCRIPT", "id": 42, "parameters": "-Verbose", "runAs": "system"}. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: body (required), confirm (required), device_id (required).
ninjaone_run_os_patch_scanRun OS Patch ScanAIdempotent
Start an OS patch scan on one device. Results appear in ninjaone_list_device_os_patches when it finishes. Needs NINJAONE_MODE=write and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_run_software_patch_scanRun Software Patch ScanAIdempotent
Start a third-party software patch scan on one device. Results appear in ninjaone_list_device_software_patches. Needs NINJAONE_MODE=write and confirm: true.
Inputs: confirm (required), device_id (required).
ninjaone_run_windows_service_controlRun Windows Service ControlADestructive
Start, stop, pause or restart a Windows service on one device. Find the service with ninjaone_list_device_services. Never retried automatically. Body (object) per NinjaOne controlWindowsService. Fields: action ("START"|"PAUSE"|"STOP"|"RESTART"). Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: body (required), confirm (required), device_id (required), service_id (required).
ninjaone_search_devicesSearch DevicesARead-onlyIdempotent
Find devices by name, logged-on user, IP or MAC address. Returns matching devices with ids.
Inputs: q (required), limit, cursor, fields.
ninjaone_send_ticket_replySend Ticket ReplyADestructive
Send a public reply on a ticket. NinjaOne emails it to the requester, so it is a message to a client and cannot be taken back: show the exact text to the user and get their go-ahead first. For an internal note use ninjaone_add_ticket_comment. Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: body (required), confirm (required), ticket_id (required), html_body, +1 more.
ninjaone_set_device_maintenanceSet Device MaintenanceAIdempotent
Schedule a maintenance window on one device, suppressing alerts, patching, AV scans or tasks between start and end (epoch seconds). Undo with ninjaone_cancel_device_maintenance. Body (object) per NinjaOne updateDeviceMaintenance. Fields: disabledFeatures ("ALERTS"|"PATCHING"|"AVSCANS"|"TASKS"[]), start (number), end (number), reasonMessage (string). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), device_id (required).
ninjaone_set_device_ownerSet Device OwnerAIdempotent
Assign an end user as the owner of one device. Needs NINJAONE_MODE=write and confirm: true.
Inputs: confirm (required), device_id (required), owner_uid (required).
ninjaone_set_windows_service_configSet Windows Service ConfigADestructive
Change a Windows service's start type and run-as account on one device. Body (object) per NinjaOne setWindowsServiceConfiguration. Fields: startType ("AUTO_START"|"AUTO_START_DELAYED"|"BOOT_START"|"DEMAND_START"|"DISABLED"|"SYSTEM_START"), userName (string). Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
Inputs: body (required), confirm (required), device_id (required), service_id (required).
ninjaone_status_gateStatus GateARead-onlyIdempotent
Explain the write gate: the current mode, whether the destructive tier is open, the optional write allowlist, which tools each gate covers, and the environment variables (NINJAONE_MODE, NINJAONE_ALLOW_DESTRUCTIVE, NINJAONE_WRITE_ALLOWLIST) that change it. Call this when a write refuses.
Inputs: no named parameters.
ninjaone_status_serverStatus ServerARead-onlyIdempotent
Report this server's configuration without calling NinjaOne: version, region and base URL, whether the client id and secret are set (never their values), requested OAuth scopes and what they allow, missing environment variables, unusable settings, the organization default and boundary, and the write gate. Call this first when tools fail or seem missing, then ninjaone_test_connection.
Inputs: no named parameters.
ninjaone_test_connectionTest ConnectionARead-onlyIdempotent
Prove the credential works: requests an OAuth token and makes one cheap call (the first organization). Returns the base URL, the scopes granted, an organization count sample, and the round-trip time. A token error here means the client id, secret or region is wrong.
Inputs: no named parameters.
ninjaone_update_deviceUpdate DeviceAIdempotent
Update one device's display name, user data, policy, location, role or organization. Returns before and after. Body (object) per NinjaOne updateDevice. Fields: displayName (string), userData (object), nodeRoleId (integer), policyId (integer), organizationId (integer), locationId (integer), warranty (object). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), device_id (required).
ninjaone_update_device_custom_fieldsUpdate Device Custom FieldsAIdempotent
Set custom field values on one device. Only the fields in body change. Returns before and after, so a change can be put back. Body (object) per NinjaOne updateNodeAttributeValues. Body maps custom field names to values, e.g. {"assetOwner": "Example User"}. Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), device_id (required).
ninjaone_update_locationUpdate LocationAIdempotent
Update a location's name, address or description. Body (object) per NinjaOne updateLocation. Fields: name (string), address (string), description (string), userData (object). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), location_id (required), org.
ninjaone_update_location_custom_fieldsUpdate Location Custom FieldsAIdempotent
Set custom field values on one location. Only the fields in body change. Returns before and after. Body (object) per NinjaOne updateNodeAttributeValues_2. Body maps custom field names to values. Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), location_id (required), org.
ninjaone_update_organizationUpdate OrganizationAIdempotent
Update an organization's name, description, approval mode or user data. Returns before and after. Body (object) per NinjaOne updateOrganization. Fields: name (string), description (string), userData (object), nodeApprovalMode ("AUTOMATIC"|"MANUAL"|"REJECT"). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), org.
ninjaone_update_org_custom_fieldsUpdate Org Custom FieldsAIdempotent
Set custom field values on one organization. Only the fields in body change. Returns the values before and after, so a change can be put back. Body (object) per NinjaOne updateNodeAttributeValues_1. Body maps custom field names to values, e.g. {"contractTier": "gold"}. Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), org.
ninjaone_update_ticketUpdate TicketAIdempotent
Updates a ticket (status, assignee, priority, tags, attributes). Returns the ticket before and after the change. Body (object) per NinjaOne update_2. Fields: version (integer, required), clientId (integer, required), ticketFormId (integer, required), subject (string, required), status (string, required), requesterUid (string, required), locationId (integer), nodeId (integer), type ("PROBLEM"|"QUESTION"|"INCIDENT"|"TASK"|"CHANGE_REQUEST"|"SERVICE_REQUEST"|...), cc (object), assignedAppUserId (integer), severity ("NONE"|"MINOR"|"MODERATE"|"MAJOR"|"CRITICAL"), priority ("NONE"|"LOW"|"MEDIUM"|"HIGH"), parentTicketId (integer), tags (string[]), attributes (object[]), additionalAssignedTechnicianIds (integer[]), followupTime (number). Needs NINJAONE_MODE=write and confirm: true.
Inputs: body (required), confirm (required), ticket_id (required).
ninjaone_view_alertsView AlertsARead-onlyIdempotent
Interactive list of active alerts with severity counts and a Reset button per alert. Reset calls ninjaone_reset_alert, which needs NINJAONE_MODE=write and is confirmed in the view. Same rows as ninjaone_list_alerts.
Inputs: df.
ninjaone_view_deviceView DeviceARead-onlyIdempotent
Interactive device page: status, OS and hardware, volumes with usage meters, open patches and active alerts. Same data as ninjaone_get_device_profile.
Inputs: device_id (required).
ninjaone_view_fleetView FleetARead-onlyIdempotent
Interactive fleet health: totals and one row per organization (devices, offline share, patches pending and failed, alerts, AV threats), sortable and filterable; selecting a row asks for that client's offline devices. Same data as ninjaone_report_fleet_health, which hosts without MCP Apps receive as JSON.
Inputs: org, max_orgs.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 108 tools
The per-device vs. fleet-wide split (list_device_* vs report_*) and the interactive vs. JSON split (view_* vs list_*/report_*) are well documented, but there are many near-duplicate pairs: get_device vs get_device_profile vs view_device, list_organizations vs list_organizations_detailed, report_custom_fields vs _detailed vs report_scoped_custom_fields vs _detailed, and list_ticket_contacts vs list_ticket_users. Descriptions carry most of the disambiguation burden, but at 108 tools the risk of misselection between 'plain' and 'detailed' variants is real.
Nearly all tools follow ninjaone_verb_noun in snake_case (get_device, list_device_volumes, update_organization, create_ticket), with a consistent report_* prefix family for fleet queries. Minor deviations exist: status_server and status_gate are noun-first with no verb, and view_* sits alongside get_*/list_* for similar reads.
108 tools is far beyond a comfortable surface, with entire duplicate tiers (every per-device lister has a matching report_* tool, plus _detailed variants and interactive view_* twins). The RMM domain is genuinely broad so the count is defensible, but the duplication inflates it well past what the scope requires.
Coverage is deep across devices, organizations, locations, tickets, alerts, patching, scripting, maintenance windows and reporting, with sensible read/write pairing. Gaps remain: no ticket or organization deletion, no technician/user management, and ninjaone_download_installer is referenced in create_organization's description but is not actually present in the tool set.
Maintenance
Related MCP Connectors
Supervised API-write gateway for AI agents with policy, human approval and execution receipts.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Approval-gated Cloudflare ops for agents: DNS, email auth, Pages, cache, Turnstile, tokens.
Related MCP Servers
- AlicenseBqualityDmaintenanceComprehensive read/write access to the Datto RMM API v2, enabling management of devices, sites, alerts, audits, jobs, variables, filters, and activity logs through 46 tools.46MIT
- AlicenseCqualityCmaintenanceEnables Claude to manage NinjaOne RMM infrastructure, including devices, patches, ticketing, and organizations through natural language commands.21MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to interact with NinjaOne, providing tools for managing devices, organizations, alerts, and tickets. Uses a decision tree architecture to load domain-specific tools on demand.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables management of NinjaOne devices, organizations, alerts, and tickets through natural language, using a navigation-based tool selection for efficient interaction.Apache 2.0