NinjaOne MCP Server

NinjaOne MCP Server

Enables Claude to manage NinjaOne RMM infrastructure, including devices, patches, ticketing, and organizations through natural language commands.

Category
访问服务器

README

NinjaOne MCP Server

A comprehensive Model Context Protocol (MCP) server for NinjaOne RMM API integration with Claude. Enables Claude to manage devices, tickets, patches, organizations, and more across your entire NinjaOne infrastructure.

Features

✨ Comprehensive Coverage

  • Device management (list, search, get details, alerts)
  • Device actions (reboot, run scripts)
  • Patch management (OS and software patches)
  • Ticketing system (create, update, comment on tickets)
  • Reporting (device health, antivirus)
  • Organization management
  • Contact management
  • Generic API access for advanced use cases

🔐 Security

  • OAuth 2.0 authentication with automatic token refresh
  • Secure credential handling via environment variables
  • No secrets in version control

⚙️ Production Ready

  • TypeScript for type safety
  • Comprehensive error handling
  • Pagination support

Installation

Prerequisites

  • Node.js 20 LTS or higher
  • npm or yarn
  • NinjaOne account with API access

Setup

  1. Clone the repository:
git clone https://github.com/soroushalamdari/ninjaone-mcp.git
cd ninjaone-mcp
  1. Install dependencies:
npm install
  1. Create .env file:
cp .env.example .env
  1. Add your NinjaOne credentials to .env:
NINJA_CLIENT_ID=your_access_key_id
NINJA_CLIENT_SECRET=your_secret_access_key
NINJA_REDIRECT_URI=https://yourdomain.com/callback
NINJA_API_BASE_URL=https://api.ninjarmm.com
  1. Build the server:
npm run build

OAuth Setup

  1. Get your credentials from NinjaOne:

    • Log into your NinjaOne dashboard
    • Navigate to Settings → API
    • Create a new API application
    • Note your Client ID and Client Secret
  2. Set the redirect URI:

    • Use the exact URI you configured in .env

Claude Desktop Integration

Setup Instructions

  1. Build the MCP server:
npm run build
  1. Add to Claude Desktop config:

On macOS:

# Edit ~/.claude/claude_desktop_config.json
nano ~/.claude/claude_desktop_config.json

On Windows:

# Edit %APPDATA%\Claude\claude_desktop_config.json
# Open: C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json
  1. Add this to the mcpServers section:
{
  "mcpServers": {
    "ninjaone-mcp": {
      "command": "node",
      "args": [
        "/path/to/ninjaone-mcp/dist/index.js"
      ],
      "env": {
        "NINJA_CLIENT_ID": "your_access_key_id",
        "NINJA_CLIENT_SECRET": "your_secret_access_key",
        "NINJA_REDIRECT_URI": "https://yourdomain.com/callback",
        "NINJA_API_BASE_URL": "https://api.ninjarmm.com"
      }
    }
  }
}

Replace /path/to/ninjaone-mcp/ with your actual installation path:

  • macOS: /Users/username/ninjaone-mcp
  • Windows: C:\\Users\\username\\ninjaone-mcp
  1. Restart Claude Desktop:
    • Close Claude Desktop completely
    • Reopen it
    • The NinjaOne MCP will now be available

Verify Installation

In Claude Desktop, you should see the NinjaOne tools available. Test with:

"List all devices"
"Show me active alerts"
"Get device health report"

Troubleshooting

"NinjaOne MCP not showing up"

  • Verify the path to dist/index.js is correct
  • Make sure you've run npm run build
  • Check that Claude Desktop was completely restarted
  • Verify JSON syntax in config file (use JSON validator)

"NINJA_CLIENT_ID or NINJA_CLIENT_SECRET error"

  • Ensure environment variables are in the env section
  • Verify credentials are correct in NinjaOne settings
  • Check for extra spaces or quotes in values

"node: command not found"

  • Ensure Node.js 20+ is installed: node --version
  • Use full path to node if needed on Windows

Available Tools (20+ Tools)

Device Management

  • list_devices - List all devices with pagination
  • get_device - Get detailed device information
  • search_devices - Search devices using filter syntax
  • get_device_alerts - Get active alerts for a device
  • get_all_alerts - Get all active alerts across devices

Device Actions

  • reboot_device - Reboot device (graceful or force)
  • run_script - Run script or built-in action on device

Patch Management

  • get_os_patches - Get OS patch status for device
  • get_software_patches - Get software patch status for device

Software & Inventory

  • get_device_software - Get software inventory for device

Ticketing

  • create_ticket - Create new support ticket
  • get_ticket - Get ticket details
  • update_ticket - Update ticket information
  • add_ticket_comment - Add comment to ticket
  • get_ticket_forms - Get available ticket forms

Organizations

  • list_organizations - List all organizations
  • get_organization - Get organization details

Reports & Queries

  • get_device_health - Device health report
  • get_antivirus_status - Antivirus status report

Contacts

  • list_contacts - List all contacts

Advanced/Generic API

  • api_get - Make generic GET request to any NinjaOne endpoint
  • api_post - Make generic POST request to any NinjaOne endpoint

Example Prompts

Ask Claude:

"List all devices"
"Show me critical alerts"
"Get patch status for device ABC123"
"Create a ticket for offline device"
"Generate device health report"
"Search for all Windows 10 devices"
"Get antivirus status across all systems"

Development

Build:

npm run build

Watch mode:

npm run dev

Type checking:

npm run type-check

Security Considerations

⚠️ Never commit .env file

  • Use .env.example as template
  • Always use environment variables for credentials

License

MIT License

Support

For issues or questions, check NinjaOne API Documentation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选