Connector guide10-minute read36 MCP tools7 languages

Connect NinjaOne to Cursor via MCP: Devices and Alerts

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

HCBy HelpCode teamUpdated 10 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

NinjaOne

NinjaOne

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

tools

36

Region

INTL

Category

IT Service Management

Authentication

OAuth 2.0

Required env vars

NINJAONE_HOSTNINJAONE_CLIENT_IDNINJAONE_CLIENT_SECRET
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Guided setup

Connect NinjaOne to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect NinjaOne in the guided setup, then add your MCP URL to Cursor. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

Try asking

Example prompts for NinjaOne

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

NinjaOne · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → NinjaOne, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

NinjaOne + Cursor

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

NINJAONE_HOST, NINJAONE_CLIENT_ID, NINJAONE_CLIENT_SECRET

Step 1 — Get credentials

Setting up takes about 5 minutes. You need a NinjaOne administrator who can create an API client app, and the host of your NinjaOne instance. The connector needs three values: the instance host, a client ID and a client secret.

  1. In the NinjaOne console, open Administration → Apps → API, tab Client App IDs, and click Add client app.
  2. Choose the application platform API Services (machine-to-machine), give it a name (for example AnythingMCP), tick the scopes Monitoring and Management, and allow the grant type Client Credentials. Leave Control off: it is only for remote access sessions. Save.
  3. Copy the Client ID into NINJAONE_CLIENT_ID and the Client Secret into NINJAONE_CLIENT_SECRET. The secret is shown only once; if it was lost, open the client app and generate a new one.
  4. Set NINJAONE_HOST to the host you log in at, without https://: app.ninjarmm.com (US), us2.ninjarmm.com (US West), eu.ninjarmm.com (Europe), ca.ninjarmm.com (Canada), oc.ninjarmm.com (Oceania / Asia-Pacific), jp.ninjarmm.com (Japan) or fed.ninjarmm.com (FedRAMP).
  5. Install the connector and run ninjaone_list_organizations to check the connection.

One host per instance: the API and the token endpoint live on the same host, and a client app only works on the instance it was created on. A wrong host answers 401.

Authentication: OAuth 2.0 client credentials. The connector exchanges the client ID and secret at https://<host>/ws/oauth/token for a bearer token with the scopes monitoring management, and renews it on its own (it lasts about an hour). The app acts as the whole account: it sees every organization and device, whatever technician permissions say. Without the Management scope the list and query tools still work, but the two device actions answer 403.

Cloud and self-hosted work the same way: the credentials are the same, and there is no redirect URL to set.

Where to start: ninjaone_query_device_health gives one row per device with alerts, threats and pending or failed patches; ninjaone_list_alerts shows the active alerts and ninjaone_list_activities what happened. To find a computer, use ninjaone_search_devices (name, user, IP, serial number) or ninjaone_list_devices, then ninjaone_get_device. For one device in depth: ninjaone_list_device_alerts, ninjaone_list_device_activities, ninjaone_list_device_software and ninjaone_list_device_os_patches. ninjaone_list_organizations gives the organization ids for filters.

Fleet reports: ninjaone_query_os_patches (missing patches), ninjaone_query_os_patch_installs (install history), ninjaone_query_software, ninjaone_query_antivirus_status, ninjaone_query_antivirus_threats, ninjaone_query_volumes (disk space and BitLocker), ninjaone_query_operating_systems and ninjaone_query_computer_systems (models and serial numbers). Each row carries a deviceId, which the AI joins with the device list for names.

Tickets are read-only: ninjaone_list_ticket_boards lists the boards, ninjaone_run_ticket_board returns the tickets of one board with search and filters, and ninjaone_get_ticket and ninjaone_list_ticket_log_entries show a ticket with its comments and history. NinjaOne refuses ticket creation, updates and comments from client-credentials apps (it answers 405 and only accepts them from a signed-in technician), so the connector reads tickets and never writes them.

Device filter: device lists, alerts, activities and every query accept a filter (df) such as org=12, loc=3, class=WINDOWS_SERVER, group 7, offline or created after 2026-01-01, combined with AND (there is no OR). One filtered query is better than a call per device.

Switched off at install: ninjaone_reboot_device (restart a device now) and ninjaone_apply_os_patches (install the approved OS patches on a device now). Both act on real machines at once: a restart can lose a user's unsaved work, and patching may restart too. An administrator can switch them on on the connector page; even then the AI names the device and waits for your explicit confirmation. No other tool changes anything: scripts, maintenance mode, decommissioning, approvals and deletes are not part of the connector.

Reading the data: times such as lastContact and activityTime are Unix epoch seconds (with decimals), not milliseconds. Sizes are bytes. nodeClass tells the device kind (for example WINDOWS_WORKSTATION, MAC, LINUX_SERVER, NMS_* for network devices), and offline: true means the agent is not connected right now. Queries page with a cursor that expires after a few minutes; activities page backwards with older_than.

Common errors: 401 means a wrong client ID or secret, a deleted client app, a client app without the Client Credentials grant, or the wrong instance host. 403 means the app lacks a scope (Monitoring for reads, Management for device actions). 404 on a device or ticket means the id does not exist on this instance. 429 means NinjaOne is throttling the app: wait a minute and try again.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Cursor

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Cursor reads MCP servers from ~/.cursor/mcp.json. Add this entry:

{
  "mcpServers": {
    "anythingmcp": {
      "url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart Cursor.
  3. Open Cursor → Settings → MCP and check that anythingmcp is listed and connected.
  4. Start chatting — the agent can now call the NinjaOne tools.

Available tools

ToolWhat it does
ninjaone_list_organizationsList the organizations (clients) in NinjaOne: id, name, description, node approval mode and tags
ninjaone_get_organizationGet one organization with its locations, policy mappings per device role, node approval mode, custom fields summary and settings
ninjaone_list_organization_locationsList the locations (sites) of an organization: id, name, address, description
ninjaone_list_organization_devicesList the devices of one organization (basic information: id, system name, display name, node class, location, policy, online state, last…
ninjaone_list_devicesList devices with basic information (id, organizationId, locationId, nodeClass, systemName, displayName, offline, lastContact…
ninjaone_list_devices_detailedList devices with detailed information: everything in ninjaone_list_devices plus OS, system (manufacturer, model, serial number), memory…
ninjaone_search_devicesFind devices by a search term: device or DNS name, logged-on user name, IP or MAC address, serial number
ninjaone_get_deviceGet one device in full: node class, organization and location, policy and role, online state, last contact and last update, OS, system and…
ninjaone_list_device_alertsList the active alerts (triggered conditions) of one device: uid, message, source type, severity, priority and create time (epoch seconds)
ninjaone_list_device_activitiesRead the activity log of one device, newest first: scripts and actions run, patches, alerts raised and reset, logins, system events
ninjaone_list_device_softwareList the software installed on one device: name, publisher, version, install date, size and location
ninjaone_list_device_os_patchesList the OS patches of one device that are pending, approved, failed or rejected (not yet installed): name, KB number, severity, status and…
ninjaone_list_alertsList all active alerts (triggered conditions) across devices: uid, deviceId, message, sourceType (e.g
ninjaone_list_activitiesRead the account-wide activity log, newest first: device events (scripts, patches, alerts, antivirus), user actions and system events
ninjaone_query_device_healthFleet health report, one row per device: healthStatus (HEALTHY, NEEDS_ATTENTION, UNHEALTHY, UNKNOWN), offline flag, alert count, active and…
ninjaone_query_os_patchesReport of OS patches not yet installed across devices (pending, approved, failed or rejected): deviceId, name, KB number, severity, status…
ninjaone_query_os_patch_installsHistory of OS patch installations across devices, successful and failed: deviceId, name, KB number, status (INSTALLED or FAILED)…
ninjaone_query_softwareSoftware inventory across devices: deviceId, name, publisher, version, install date
ninjaone_query_antivirus_statusAntivirus status across devices: deviceId, productName, productState (e.g
ninjaone_query_antivirus_threatsAntivirus threats found on devices: deviceId, threat name, status, category, level, type, detection source, quarantine id and timestamp
ninjaone_query_volumesDisk volumes across devices: deviceId, name, label, drive letter, file system, capacity and free space (bytes)
ninjaone_query_operating_systemsOperating systems across devices: deviceId, name, manufacturer, architecture, build number, release id, service pack, last boot time…
ninjaone_query_computer_systemsComputer systems across devices: deviceId, manufacturer, model, serial number, BIOS and asset serial, chassis type, domain and domain role…
ninjaone_list_policiesList the monitoring and management policies: id, name, description, node class and parent policy
ninjaone_list_groupsList the device groups (saved searches): id, name, description and device count
ninjaone_list_techniciansList the technicians (NinjaOne users who work in the console): id, uid, first and last name, email, phone, enabled, administrator flag…
ninjaone_list_end_usersList the end users (people at client organizations who can log in to the end-user portal or are requesters): id, uid, name, email, phone…
ninjaone_list_ticket_boardsList the ticketing boards (saved ticket views such as All tickets, Unassigned, My tickets): id, name, description, conditions, columns and…
ninjaone_run_ticket_boardList the tickets of a board (from ninjaone_list_ticket_boards), with optional search text, filters and sort
ninjaone_get_ticketGet one ticket: subject, status (name, displayName, statusId), type, priority, severity, organization (clientId), location, device…
ninjaone_list_ticket_log_entriesRead the history of a ticket: description, public and internal comments, field changes, condition and automation entries, with author…
ninjaone_list_ticket_statusesList the ticket statuses of the account: statusId, name, displayName and parentId (custom statuses hang under a system status; 1000 is New)
ninjaone_list_related_itemsList every related item of the account: links between entities (organization, location, device, end user, document, checklist, knowledge…
ninjaone_list_entity_related_itemsList the items related to one entity, e.g. the documents, checklists, end users and attachments linked to a device or an organization
ninjaone_reboot_deviceRestart a device now
ninjaone_apply_os_patchesStart an OS patch installation job on a device, which installs the approved patches of its policy and may restart it

Example prompts

  • "Which devices have active alerts or failed patches right now, grouped by organization?"
  • "List the Windows servers that have been offline for more than a day."
  • "Which devices have less than 10% free disk space on their system drive?"
  • "Show the open tickets on our main board with their latest comment."
  • "Which computers are missing critical OS patches, and when did patching last succeed on them?"

FAQ

Can it create or update NinjaOne tickets? No. NinjaOne only accepts ticket writes from a signed-in technician and answers 405 to client-credentials apps, so the connector reads boards, tickets and their history only.

Can it reboot or patch a device? Only after an administrator switches on ninjaone_reboot_device or ninjaone_apply_os_patches on the connector page, the client app has the Management scope, and you confirm the device in the chat.

Does Cursor support custom MCP servers on the free tier? Yes — MCP is available on Hobby, Pro and Business plans.

Next steps

Was this guide helpful?

Connect NinjaOne to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect NinjaOne in the guided setup, then add your MCP URL to Cursor. No code and no server to run.

Related guides

Connectors

Connect NinjaOne to ChatGPT via MCP: Devices and Tickets

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Connectors

Connect NinjaOne to Claude via MCP: Devices and Alerts

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Connectors

Connect NinjaOne to Microsoft Copilot via MCP

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Connectors

Connect NinjaOne to Gemini CLI via MCP: Devices and Alerts

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Connectors

Connect NinjaOne to Meta Muse via MCP: Devices and Alerts

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.

Connectors

NinjaOne MCP Server: Devices, Alerts and Tickets

NinjaOne RMM from any AI agent: organizations, locations and devices with hardware, software, patches and disk space, active alerts and the activity log, fleet health, patch, antivirus and inventory reports, policies, groups, technicians and end users, ticket boards, tickets and their history. Device reboot and OS patching are included but switched off.