meshcentral-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., "@meshcentral-mcp which of my machines are online 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.
meshcentral-mcp
An MCP server for MeshCentral, so Claude (or any MCP client) can list your machines, run commands, show messages and gracefully reboot them. It wraps MeshCentral's own meshctrl client.
Unofficial community project. Not affiliated with or endorsed by MeshCentral or Intel. Apache-2.0.
Safe by default
Reading is always allowed. Anything that changes a machine is off until the operator turns it on with an environment variable:
Variable | Enables |
|
|
|
|
|
|
| all of the above |
| restrict write tools to these device names / node ids (globs allowed) |
Other safeguards: write tools refuse offline devices instead of queueing, ambiguous names are rejected, every write is logged as JSON to stderr (never including credentials), and commands run with no shell between the server and meshctrl.
Related MCP server: mcp-infra-readonly
Tools
Tool | Type | What it does |
| read | MeshCentral server version/settings |
| read | device groups the account can see |
| read | id, name, group, online, OS, user; optional |
| read | details for one device (name or node id) |
| write | run a command via the agent and return the output |
| write |
|
| write |
|
| write | wake / sleep / reset / off through MeshCentral (reset and off are not graceful) |
| write | message box / toast for the logged-in user |
Setup
git clone https://github.com/klepsydra/meshcentral-mcp
cd meshcentral-mcp
npm install && npm run buildCreate a login key on the MeshCentral server (this lets the account sign in without a password, and is revocable by regenerating it):
cd /path/to/meshcentral && node node_modules/meshcentral --logintokenkey # prints a hex key
install -m 600 /dev/stdin ~/.meshcentral-login.key <<< "<the hex key>"Use a dedicated MeshCentral user with only the device groups you want exposed. Passwords work too (MESHCENTRAL_PASSWORD), but the value is visible to local ps while a call runs, so prefer the key file.
Environment
Variable | Notes |
| e.g. |
| MeshCentral username |
| path to the key file (recommended), or |
| password / 2FA token alternative |
| for multi-domain servers |
| use an existing |
Claude Code
claude mcp add meshcentral \
--env MESHCENTRAL_URL=wss://mesh.example.com \
--env MESHCENTRAL_USER=mcp \
--env MESHCENTRAL_LOGIN_KEY_FILE=$HOME/.meshcentral-login.key \
--env MESH_MCP_ALLOW_POWER=1 \
-- node /path/to/meshcentral-mcp/dist/index.jsClaude Desktop
{
"mcpServers": {
"meshcentral": {
"command": "node",
"args": ["/path/to/meshcentral-mcp/dist/index.js"],
"env": {
"MESHCENTRAL_URL": "wss://mesh.example.com",
"MESHCENTRAL_USER": "mcp",
"MESHCENTRAL_LOGIN_KEY_FILE": "/home/you/.meshcentral-login.key",
"MESH_MCP_ALLOW_POWER": "1"
}
}
}
}Then ask: "Which machines are online?" or "Reboot omen in 2 minutes and warn whoever is logged in."
Sample client
examples/sample-client.mjs starts the server over stdio, lists tools and devices, and with --reboot <device> schedules a graceful reboot and cancels it (needs MESH_MCP_ALLOW_POWER=1). It is also a minimal template for calling the tools from your own code.
Development
npm test # builds, then runs the tests with a fake meshctrl (no server needed)Ideas and contributions welcome, especially an HTTP transport for remote connectors, file upload/download, and a pure-WebSocket backend that drops the meshctrl subprocess.
Available Tools
10 toolsmesh_cancel_rebootCancel a scheduled rebootA
Abort a pending shutdown/reboot started by mesh_graceful_reboot. Needs MESH_MCP_ALLOW_POWER=1.
Inputs: device (required).
mesh_device_infoDevice detailsBRead-only
Detailed information about one device (accepts a name or node id).
Inputs: device (required).
mesh_device_messageMessage box on deviceB
Show a message box to whoever is logged in on the device. Needs MESH_MCP_ALLOW_NOTIFY=1.
Inputs: device (required), message (required), title.
mesh_device_toastToast on deviceB
Show a toast notification on the device. Needs MESH_MCP_ALLOW_NOTIFY=1.
Inputs: device (required), message (required), title.
mesh_graceful_rebootGracefully reboot a deviceADestructive
Schedule an OS-level graceful reboot (Windows: shutdown /r, Linux/macOS: shutdown -r) with a delay so logged-in users get a warning and apps can close. Needs MESH_MCP_ALLOW_POWER=1. Use mesh_cancel_reboot to abort during the delay.
Inputs: device (required), message, delay_seconds.
mesh_list_device_groupsList device groupsARead-only
List MeshCentral device groups (meshes) the account can see.
Inputs: no named parameters.
mesh_list_devicesList devicesARead-only
List devices with id, name, group, online state (agent connected), OS and logged-in user. Optional MeshCentral filter such as 'omen', 'g:PCs', 'os:windows', 'tag:prod'.
Inputs: group, filter, online_only.
mesh_powerPower action (agent-level)ADestructive
Wake, sleep, hard reset or power off through MeshCentral's own power function (wake works on offline devices via a peer on the same LAN; reset/off are NOT graceful). Prefer mesh_graceful_reboot. Needs MESH_MCP_ALLOW_POWER=1.
Inputs: action (required), device (required).
mesh_run_commandRun command on a deviceADestructive
Run a shell command through the MeshCentral agent and return its output. Needs MESH_MCP_ALLOW_COMMANDS=1. The agent usually runs as root/SYSTEM, so treat this as full control of the machine.
Inputs: device (required), command (required), powershell, run_as_user, +1 more.
mesh_server_infoMeshCentral server infoBRead-only
Version and settings of the connected MeshCentral server.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools are clearly separated by target and action (list devices, device info, run command, reboot, cancel reboot). The main overlap is mesh_graceful_reboot versus mesh_power, and mesh_device_message versus mesh_device_toast, but the descriptions explain when to prefer each.
All tools share a consistent mesh_ prefix, which makes the set predictable. However, the suffix style is mixed: mostly verb_noun (list_devices, run_command), but also noun-style names like server_info and device_info.
Ten tools is well-scoped for a MeshCentral remote-management server. Each tool corresponds to a distinct operational need: discovery, inspection, command execution, power control, and user notification.
The core remote-management lifecycle is covered: server and device discovery, device inspection, command execution, reboot/power management, and user messaging. Minor gaps remain around file transfer, device/group administration, or event/audit history, but common workflows are supported.
Maintenance
Related MCP Connectors
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Read-only Dant3 MCP for public rooms, agents, jobs and provisional machine onboarding.
Related MCP Servers
- FlicenseAqualityDmaintenanceA read-only MCP server that enables Claude to audit Firewalla network security configurations and monitor network activity. It provides tools to inspect devices, rules, alarms, and traffic flows without making any changes to the Firewalla system.8-
- FlicenseNot gradedqualityBmaintenanceA read-only MCP server that gives Claude Code secure, non-invasive access to infrastructure logs, service status, metrics, Ansible facts, and Docker state via SSH, with a strict command allowlist and no write operations.-
- AlicenseNot gradedqualityBmaintenanceA read-only MCP server that gives Claude safe access to Kubernetes clusters, enabling listing, describing, and monitoring resources without mutation risks and with secret masking.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables read-only MCP access to Tactical RMM, allowing agents to query devices, clients, sites, audit logs, software, and pending actions without any mutating capabilities.MIT