NinjaOne MCP
The NinjaOne MCP server lets you manage NinjaOne IT ticketing from any MCP-compatible client using your own OAuth credentials.
Ticket Management
Search tickets – List tickets from a board with pagination and filtering
Get ticket – Retrieve full details of a single ticket by ID
Create ticket – Create new tickets with subject, description, type, status, priority, severity, organization, and assignee
Update ticket – Modify existing tickets (status, priority, severity, assignee, subject)
Add comment – Post public responses or private/internal notes to tickets
Discovery & Lookup
List boards – Return the default board ID
List statuses – Retrieve all available ticket statuses with their IDs
List organizations – Browse NinjaOne client/organization records (paginated)
List technicians – Enumerate app users with their numeric IDs for ticket assignment
Authentication
Get auth URL – Generate a NinjaOne OAuth authorization URL to begin the manual login flow
Exchange code – Trade an OAuth authorization code for a refresh token to enable write operations
Read operations work with client credentials only; write operations require user-context auth (refresh token or session key). The server runs locally over stdio with no third-party service involved.
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., "@NinjaOne MCP Search for high priority tickets from last week"
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.
NinjaOne MCP
A local Model Context Protocol server for NinjaOne ticketing. It lets any MCP client (Claude Desktop, Claude Code, and others) search, read, create, update, and comment on NinjaOne tickets.
Runs locally over stdio using your own NinjaOne OAuth credentials. No third-party service sits in the middle.
Tools
Tool | Description |
| List tickets from a board (paginated) |
| Get a single ticket by ID |
| Create a ticket |
| Update a ticket (status, priority, severity, assignee, subject) |
| Add a public response or private note to a ticket |
| List ticket statuses with IDs |
| List organizations (clients) |
| List technicians with their numeric IDs |
| Return the default board ID |
| Manual OAuth flow to obtain a user refresh token |
Related MCP server: jitbit-helpdesk-mcp
Prerequisites
Node.js 18+
A NinjaOne API OAuth client (NinjaOne > Administration > Apps > API):
Client ID and Client Secret
Scopes:
monitoring(reads) andmanagement(ticket writes)For user-context writes (comments authored as you), enable the Authorization Code grant and the
offline_accessscope, and register a redirect URI (http://localhost:3846/for the built-in flow, orhttps://localhostif you useget-refresh-token.js).
Install
git clone https://github.com/cyberkoder/ninjaone-mcp.git
cd ninjaone-mcp
npm installConfiguration
All configuration is via environment variables (see .env.example):
Variable | Required | Notes |
| yes | Your region's host, e.g. |
| yes | OAuth client ID |
| yes | OAuth client secret |
| no | Defaults to |
| for writes | User-context refresh token (preferred). See below. |
| alt | NinjaOne web session cookie value (expires with the browser session) |
| no | Default org ID for |
| no | Port for the one-time interactive login (default |
Reads (search_tickets, get_ticket, list tools) work with just the client ID/secret via client_credentials. Writes require user context (a refresh token or session key). If neither is set, the first write opens a browser once to authenticate you and captures a refresh token for the session.
Getting a refresh token
NINJA_CLIENT_ID=... NINJA_CLIENT_SECRET=... node get-refresh-token.jsFollow the prompts, then set the printed value as NINJA_REFRESH_TOKEN.
MCP client setup
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ninjaone": {
"command": "node",
"args": ["/absolute/path/to/ninjaone-mcp/index.js"],
"env": {
"NINJA_BASE_URL": "https://app.ninjarmm.com",
"NINJA_CLIENT_ID": "your-client-id",
"NINJA_CLIENT_SECRET": "your-client-secret",
"NINJA_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}Claude Code
claude mcp add ninjaone -- node /absolute/path/to/ninjaone-mcp/index.jsThen set the NINJA_* environment variables for the server (via the config file's env block or your shell).
Known limitations
These reflect how NinjaOne's ticketing API actually behaves, so you know what to expect:
Reads vs. writes need different auth.
client_credentials(client ID + secret) is read-only. Creating, updating, or commenting on tickets requires user context - a refresh token, a session key, or the one-time browser login. With reads-only auth, write tools return an auth error.Authorization Code grant must be enabled. Older NinjaOne OAuth clients only expose the "Refresh Token" grant and return
unauthorized_clientfor the authorization-code flow. Enable Authorization Code (and theoffline_accessscope) on the API client, or the interactive/get-refresh-token.jsflows won't work.Comments must be
multipart/form-data. The/commentendpoint rejectsapplication/jsonwith HTTP 415. This server already posts the correct form encoding - noted so forks don't regress it.Refresh tokens rotate. NinjaOne may issue a new refresh token on use. The server logs the rotated value to stderr, but it only persists for the process lifetime - copy it back into
NINJA_REFRESH_TOKENto keep it across restarts.Session keys are short-lived.
NINJA_SESSION_KEYis a browser-session cookie and expires when that session ends. Prefer a refresh token for anything long-running.update_ticketis read-modify-write. It fetches the ticket first to supply the requiredversionandrequesterUid, so concurrent edits can hit optimistic-locking conflicts. Some status transitions (e.g. directly to a closed state) are restricted by NinjaOne's workflow.Interactive login is local-only. The automatic browser flow needs a localhost redirect and a desktop browser; it won't work in headless/CI environments (use a pre-obtained
NINJA_REFRESH_TOKENthere).No "list boards" API. NinjaOne doesn't expose one; board
1is the default. Uselist_organizationsandlist_techniciansto discover IDs.No built-in rate-limit handling or retries, and the toolset is intentionally scoped to core ticketing (no attachments, custom fields, time entries, or asset/monitoring endpoints yet). PRs welcome.
This is an independent open-source project and is not affiliated with or endorsed by NinjaOne.
License
MIT
Available Tools
11 toolsadd_commentA
Add a comment to a NinjaOne ticket. Requires write auth (refresh token or session key).
Inputs: body (required), ticketId (required), publicEntry.
create_ticketB
Create a new NinjaOne ticket. Requires write auth (refresh token or session key).
Inputs: summary (required), type, status, clientId, +5 more.
exchange_codeA
Exchange a NinjaOne authorization code for a refresh token. Paste the code from the redirect URL after using get_auth_url. Save the returned refresh_token as NINJA_REFRESH_TOKEN in your MCP client config.
Inputs: code (required).
get_auth_urlA
Generate a NinjaOne OAuth authorization URL. Open it in a browser to log in as yourself. After authorizing, copy the 'code' parameter from the redirect URL and pass it to exchange_code.
Inputs: no named parameters.
get_ticketA
Get a single NinjaOne ticket by ID.
Inputs: ticketId (required).
list_boardsA
Returns known NinjaOne board IDs. NinjaOne has no boards listing API.
Inputs: no named parameters.
list_organizationsC
List NinjaOne organizations (clients).
Inputs: after, pageSize.
list_statusesA
List all NinjaOne ticket statuses with IDs.
Inputs: no named parameters.
list_techniciansA
List NinjaOne app users (technicians) with their numeric IDs. Use to look up user IDs for ticket assignment.
Inputs: no named parameters.
search_ticketsA
List tickets from a NinjaOne board. Requires boardId (default: 1). Supports pagination via cursor.
Inputs: cursor, boardId, filters, pageSize.
update_ticketC
Update an existing NinjaOne ticket. Requires write auth (refresh token or session key).
Inputs: ticketId (required), status, summary, priority, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Tools have distinct purposes, but list_boards has a confusing description stating 'NinjaOne has no boards listing API' which could cause uncertainty. However, all other tools are clearly differentiated.
All tool names follow a consistent verb_noun pattern in snake_case, e.g., create_ticket, search_tickets, update_ticket. No deviations.
11 tools is well-scoped for a ticketing system with OAuth support. It covers authentication, CRUD operations, and utility listings without being excessive.
Covers the main ticket lifecycle (create, read, update, add comment) plus authentication and lookups. Missing delete is likely intentional, but the list_boards limitation indicates a minor gap.
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Remote MCP server for managing Muninx tickets, messages, ticket search, and support analytics.
MCP server for searching Airweave collections with natural language queries.
Related MCP Servers
- FlicenseAqualityCmaintenanceAn MCP server that connects AI assistants to the NinjaOne remote monitoring and management platform via the REST API v2. It provides tools for device inventory, organization management, alert handling, maintenance scheduling, and automated job execution.221-

jitbit-helpdesk-mcpofficial
AlicenseAqualityDmaintenanceAn MCP server that lets AI assistants search and read support tickets from Jitbit Helpdesk. Works with both SaaS and on-premise installations.360 npm3MIT- AlicenseNot gradedqualityBmaintenanceAn MCP server for the NinjaOne RMM platform, enabling tools to manage devices, organizations, alerts, jobs, and policies through NinjaOne's API.29Apache 2.0

tickiti-mcpofficial
AlicenseBqualityBmaintenanceAn MCP server that exposes the Tickiti helpdesk API to AI assistants, enabling ticket management and helpdesk operations via natural language.11MIT