Updated April 2026
Install NinjaOne
Pick your client, copy the command, done.
Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1
Set the server up locally
Run this once to clone and prepare the server before adding it to Claude Code.
git clone git@github.com:fredriksknese/mcp-ninjaone.git
cd mcp-ninjaone
npm install
npm run build2
Register it in Claude Code
After the local setup is done, run this command to point Claude Code at the built server.
claude mcp add -e "NINJAONE_CLIENT_ID=${NINJAONE_CLIENT_ID}" -e "NINJAONE_CLIENT_SECRET=${NINJAONE_CLIENT_SECRET}" -e "NINJAONE_INSTANCE=${NINJAONE_INSTANCE}" ninjaone -- node "<FULL_PATH_TO_MCP_NINJAONE>/dist/index.js"Replace <FULL_PATH_TO_MCP_NINJAONE>/dist/index.js with the actual folder you prepared in step 1.
Required:
NINJAONE_CLIENT_IDNINJAONE_CLIENT_SECRETNINJAONE_INSTANCEEnvironment Variables
Set these before running NinjaOne.
VariableDescriptionRequired
NINJAONE_CLIENT_IDOAuth2 client ID from NinjaOne API credentialsYesNINJAONE_CLIENT_SECRETOAuth2 client secret from NinjaOne API credentialsYesNINJAONE_INSTANCENinjaOne instance hostnameYesAvailable Tools (22)
Once configured, NinjaOne gives your AI agent access to:
list_devicesList all managed devices with online status, OS, organization, and last contactget_deviceGet detailed device info including hardware, agent version, and network detailsget_device_activitiesGet recent activity log for a deviceget_device_os_patch_statusView pending, installed, and failed OS patches for a deviceget_device_softwareList all installed software on a deviceget_device_processor_infoGet CPU/processor details for a deviceget_device_disksGet disk/storage info including capacity and free spacelist_organizationsList all organizations with ID, name, and node countget_organizationGet detailed organization info including contacts, tags, and policy assignmentslist_organization_devicesList all devices belonging to a specific organizationget_organization_locationsGet configured locations for an organizationget_organization_policiesGet policy assignments for an organizationlist_alertsList active alerts across all devices, filterable by severitylist_device_alertsList all active alerts for a specific devicereset_alertReset (acknowledge and clear) an active alert by its UIDlist_alert_conditionsList all configured alert trigger conditionslist_maintenance_windowsList all scheduled maintenance windowscreate_maintenance_windowCreate a maintenance window for a device to suppress alertscancel_device_maintenanceCancel an active maintenance window to re-enable alertinglist_running_jobsList currently running jobs across all devicesget_device_jobsGet all jobs for a specific devicerun_script_on_deviceExecute a saved script on a deviceTry It Out
After setup, try these prompts with your AI agent:
→Show me all devices that are currently offline
→What active alerts do we have across all organizations?
→Put device 1234 into maintenance mode for the next 2 hours
→List all devices for the Acme Corp organization
→What software is installed on device 5678?
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Node.js 18+ with npm/npx installed
NINJAONE_CLIENT_ID— OAuth2 client ID from NinjaOne API credentialsNINJAONE_CLIENT_SECRET— OAuth2 client secret from NinjaOne API credentialsNINJAONE_INSTANCE— NinjaOne instance hostname
Keep this setup from going cold
Save the docs, env vars, and workflow around NinjaOne in Conare so Claude Code, Codex, and Cursor remember it next time.
Need the legacy visual installer? Open Conare IDE.