Skip to main content
Glama

control-mcp

A single Model Context Protocol (MCP) server for full remote control and monitoring of machines on a LAN: SSH (command execution, persistent shell sessions, SFTP), scripted RDP on Windows, adb for Android devices, Wake-on-LAN, local network probing, and system-event monitoring. One config file declares the hosts; every tool answers honestly about what a host can actually do — a box that cannot be reached or driven says so with the evidence it measured, never a fabricated success.

Honest, machine-checkable reporting is the whole product. If a capability is not configured, not possible, or was not observed, the result says so — and every refusal carries an actionable recovery hint so the calling agent can self-correct.

Honesty model

Every tool result has a human summary and a machine-readable half:

  • success — a one-line summary in content[0].text plus structuredContent with the measured fields (exit code, byte counts, verdicts, handles, timings).

  • refusal — isError: true, content[0].text as [CODE] message followed by a second line → <hint>, and structuredContent: { code, message, detail, hint }.

The recovery hint rides on the text line, so even single-block clients see it. A call site supplies a specific hint when it can; otherwise the per-code table in src/hints.ts fills one in, so no error ships without a next step.

code

when it is raised

AUTH_FAILED

the host answered and rejected the credential (or the configured private key file is missing)

HOST_UNREACHABLE

nothing answered: timeout / refused / unreachable at connect time

CAPABILITY_UNAVAILABLE

not configured or not possible for that target (no config at all, RDP not declared, adb not installed, no system log source)

TRANSPORT_SEVERED_RISK

the safety gate refused a command that would stop the service carrying the live transport

TIMEOUT

the operation outlived its timeout (adb path; exec reports a timeout inside its result instead)

SESSION_GONE

a shell session id is unknown, closed, or died with its connection

BAD_ARGS

rejected before any remote action ran (paths, ranges, missing confirm, unwatched hosts)

REMOTE_ERROR

the request reached the target and failed there (SFTP, a screencap without its IEND chunk, PostMessageW refused, log query)

INTERNAL

unexpected failure in control-mcp itself; the stack goes to stderr

Nothing is asserted that was not observed:

  • exec labels a killed command timed out (TERM requested; the remote process may still be running), reports exit code not reported when the server sent no exit status, and reports a signal only when the server confirmed one.

  • admin_exec states the effective privilege it actually measured (see below); an inconclusive probe says not measured, never a guess.

  • PostMessageW returning FALSE is raised as REMOTE_ERROR rather than reported as a click that landed.

  • A missing or invalid config does not crash the server: it starts with zero hosts, logs the offending path to stderr, and host-scoped tools answer CAPABILITY_UNAVAILABLE naming that path. The local tools (net_ping, net_probe_tcp, wol_wake, arp_table, cdp_discover) and the adb tools keep working with no config at all.

Related MCP server: mcp-hostops

Tools (34)

Host discovery

  • host_list — configured hosts (name, address, os, alternate addresses, declared capabilities, ssh user, rdp-configured flag); never any secrets.

  • host_status — probes one host over every configured interface: ping on each address, SSH handshake, TCP/3389, and (for a declared Windows RDP account) the live policy probe. Returns a per-interface verdict plus the RDP verdict with its reason. Run it before any RDP tool when a box is unclear.

Commands

  • exec — one shell command over SSH; stdout/stderr/exit code/signal/truncation/ timeout/duration, with a bounded output preview on the text line. Safety-gated.

  • admin_exec — same connection, same gate, plus a measurement of the account's effective privilege (whoami /groups looking for the High mandatory label S-1-16-12288 on Windows, id -u on Linux), reported in the result. There is no runas/UAC wrapper and elevation is not faked: an unprivileged account runs the command with the rights it has and access-denied comes back from the target.

Shell sessions (persistent, cwd/env kept)

  • shell_open / shell_run / shell_list / shell_close. shell_run is sentinel-delimited and safety-gated like exec; a session with a command already in flight refuses a second one.

Files (SFTP)

  • file_upload / file_download — byte counts in the result; localPath must be absolute; an existing destination is refused unless overwrite: true, on both ends. A missing local source is caught locally instead of being reported as a remote failure.

  • file_list — name, size, type (from the mode bits), mode, mtime; capped to 500 entries per call with the total reported.

Local networking (no host config needed)

  • net_ping — reachability; requires an actual reply line, because ping.exe exits 0 for unresolvable targets too.

  • net_probe_tcp — is something listening on address:port.

  • wol_wake — magic packet, fanned out to every IPv4 interface's directed broadcast plus 255.255.255.255, with a per-target sent/failed result.

  • arp_table — this machine's ARP cache, for cross-checking MACs before waking.

  • cdp_discover — raw-socket CDP listener on one adapter; raw sockets typically need an elevated control-mcp process, and a listener that cannot start answers REMOTE_ERROR rather than an empty scan.

RDP (Windows)

  • rdp_connect (connect / disconnect / status) — creates the in-process MsRdpEx control and reports exactly what it achieved; see RDP below.

  • rdp_screenshot — PrintWindow of the RDP window to an absolute PNG path.

  • rdp_click / rdp_key / rdp_type — window messages (WM_*, WM_CHAR) posted to that window; coordinates are client-area relative.

Which window: the handle rdp_connect recorded for that host, otherwise a machine-wide class lookup for the RDP host window class — used only when exactly one such window exists. With several windows and none recorded for the host, the tools refuse rather than guess which session to drive.

System events

  • monitor_start / monitor_stop / monitor_list / monitor_events — poll and drain; see Monitor below.

Android (adb)

  • adb_status — is adb there, which version, which devices (and honestly available: false when the CLI is not installed).

  • adb_exec, adb_screencap (PNG signature and trailing IEND required), adb_tap, adb_swipe, adb_type (restricted to [A-Za-z0-9 ._-], spaces as %s), adb_root (a device refusing root is reported, not hidden).

Power (loud by design)

  • host_reboot / host_shutdown — require confirm: "yes", refuse any host that is localhost/loopback or shares an address with the machine running control-mcp, then issue shutdown /r /t 5 / shutdown /s /t 5 (Windows) or systemctl reboot / systemctl poweroff (Linux).

Architecture

src/index.ts            stdio MCP server (stdout is JSON-RPC only; stderr is the log)
src/tools/registry.ts   the 34 tools + the audited pipeline: zod -> safety gate -> transport
src/config/             TOML config: schema (zod, .strict()), loader, secret resolution
src/transports/ssh.ts       ssh2 exec, persistent shell sessions (in-band sentinel), SFTP streaming
src/transports/netprobe.ts  ping / TCP probe / ARP / Wake-on-LAN / CDP raw-frame listener / RDP policy probe
src/transports/monitor.ts   event monitors: Windows Event Log + journald polling, per-host queues
src/transports/winsnapshot.ts PrintWindow -> PNG (koffi FFI: user32 + gdi32, hand-built PNG)
src/transports/wininput.ts  window enumeration + keyboard/mouse via PostMessageW (koffi FFI: user32)
src/transports/msrdpex.ts   MsRdpEx COM bridge (koffi); see RDP below for its honest limits
src/transports/adb.ts       Android devices via adb argv spawns (never through cmd.exe)
src/safety.ts         self-sever guard: refuses commands that stop the transport carrying them
src/capability.ts     per-host RDP verdict with measured evidence and human-readable reasons
src/errors.ts         ControlError + the two result builders (text line and structuredContent)
src/hints.ts          the per-code recovery-hint table every refusal falls back to

registerTools() returns a dispose handle: the event-monitor polls stop before the SSH transport closes, so teardown cannot resurrect connections. The same guarded pipeline wraps every tool, so a thrown ControlError always becomes a coded result and anything unexpected becomes INTERNAL.

Transports

SSH — the primary path on every host. Authentication is privateKeyPath (~ and %VAR% expanded; a missing or unreadable key file is AUTH_FAILED before connect) or a password, resolved from passwordEnv / the CONTROL_MCP_PW_<HOST> env convention first and falling back to an inline password. Connections are cached per host|address|user with keepalives and evicted by identity on error/close, so a reconnect cannot be clobbered by a dead client's handler; a closed connection marks that host's shell sessions gone. Output is capped at 2 MiB per stream with truncated: true. On timeout the channel asks the server for TERM and the channel is destroyed — whether the server honored it is only visible through the exit/close signal field, so it is not asserted. Shell sessions are term: dumb, 120×40, and command completion is detected by an in-band sentinel line the shell itself prints (CTL_MCP_<id>_END<exitcode>, per-session nonce); only a full sentinel line resolves, the echoed wrapper is cut out, and the exit code is appended as [exit N]. Transfers stream with fastPut / fastGet.

RDP — declared per host by capabilities.rdp = true or a full [hosts.rdp] block (either counts, and the gate and the verdict agree). When declared, host_status measures the target instead of assuming: TCP/3389, LimitBlankPasswordUse, NLA (UserAuthentication), and a live network-logon probe. A stored Windows Credential Manager entry (cmdkey, target TERMSRV/<address>) counts as a credential path, as do credentialTarget / passwordEnv.

rdp_connect creates the MsRdpEx control in-process. Whether it can actually reach a live session (Connected=1) depends on the environment: MsRdpEx's Detours hooks attach only inside real client processes, so a plain in-process host may be able to create the control and its input window without ever establishing a session. When that happens rdp_connect says so verbatim with the real last error, and status keeps saying it. The recorded window handle is real, so rdp_screenshot / rdp_click / rdp_key / rdp_type act on the local control window; with no live session nothing reaches a remote desktop, and connected=false is in the same result. A real scripted session is normally driven by launching the MsRdpEx-enabled client on the target itself. The screen-capture surface for a connected session is not bound, because with no reachable connected session it would be FFI that fails at first use.

ADB — adb is invoked as argv arrays, never through cmd.exe. A missing binary is adb_status → available: false and CAPABILITY_UNAVAILABLE on the operations that need it; screencaps that lack a PNG signature or the trailing IEND chunk are rejected instead of written as unopenable files; a killed child keeps its partial output and reports the signal.

Screen capture and input on Windows — winsnapshot.ts renders a window with PrintWindow (trying PW_RENDERFULLCONTENT first, which DWM-composited windows need, falling back to plain 0), reads it back with GetDIBits, and writes a PNG built by hand. wininput.ts enumerates windows and posts WM_KEYDOWN / WM_CHAR / WM_*BUTTONDOWN messages to a specific handle; PostMessageW returning FALSE — minimized window, locked workstation, a window that ignores messages — is raised as REMOTE_ERROR.

Configuration

Config lives at %APPDATA%\control-mcp\config.toml (Windows) and can be overridden with the CONTROL_MCP_CONFIG_PATH environment variable — an explicit path wins, otherwise the per-user default. src/index.ts and the tools resolve the same path, so the override applies to the running server and to the paths quoted in error messages.

A complete example (the addresses use the RFC 5737 documentation range 192.0.2.0/24; substitute your own):

# control-mcp config

[[hosts]]
name = "build-01"
address = "192.0.2.10"
os = "linux"                 # windows | linux

[hosts.ssh]
port = 22
user = "deploy"
privateKeyPath = "~/.ssh/id_ed25519"

[[hosts]]
name = "workstation"
address = "192.0.2.11"
os = "windows"
# alternateAddresses = ["192.0.2.41"]   # optional: extra addresses, probed too; a live alternate is used, marked degraded

[hosts.ssh]
port = 22
user = "operator"
privateKeyPath = "~/.ssh/id_ed25519"

[hosts.rdp]                  # omit entirely for non-RDP hosts
port = 3389
user = "operator"
credentialTarget = "TERMSRV/192.0.2.11"   # a Windows Credential Manager entry
# passwordEnv = "CONTROL_MCP_PW_WORKSTATION"   # alternative credential source
# domain = "WORKGROUP"
# width = 1920                            # 640..7680
# height = 1080                           # 480..4320

[hosts.capabilities]
rdp = true

[[hosts]]
name = "kiosk"
address = "192.0.2.12"
os = "windows"

[hosts.ssh]
port = 22
user = "kioskuser"
privateKeyPath = "~/.ssh/id_ed25519"

# Optional. Both keys have defaults, so [safety] may be omitted entirely.
[safety]
refuseSelfSevering = true     # consulted by the exec/shell safety gate
# firewallProfile = "Any"     # Any|Domain|Private|Public — accepted by the schema, not consulted by any tool

Rules the loader enforces:

  • Every object schema is .strict(): an unknown key is a config error naming the offending key, and the server then starts with zero hosts rather than half-applying the file.

  • At least one [[hosts]] entry. Host names are uniquely resolvable; two hosts may not share a name, address, or alternate.

  • Each ssh block needs privateKeyPath, password, or passwordEnv; passwordEnv must be UPPER_SNAKE_CASE (same rule in the rdp block).

  • defaultHost must name a configured host. If it is absent and more than one host is configured, every host-scoped call must pass host explicitly — omitting it returns BAD_ARGS with the known-host list instead of picking one.

  • The host argument accepts a name or any configured address (primary or alternate).

  • Secrets: prefer env (passwordEnv, or the CONTROL_MCP_PW_<HOST> naming convention) or Windows Credential Manager. An inline password is supported and never appears in tool results or logs; host_list reports only whether RDP is configured.

Environment variables control-mcp reads: CONTROL_MCP_CONFIG_PATH (config location), CONTROL_MCP_DISABLE_MAIN (see Build, typecheck, test), CONTROL_MCP_HAS_CRED=1 (declare that a credential exists when it cannot be resolved from config or cmdkey), plus the CONTROL_MCP_PW_<HOST> / named-passwordEnv secret convention and APPDATA.

Blank-password Windows accounts

An account with a blank password is unreachable over the network by design: Windows' LimitBlankPasswordUse (the default) rejects blank-password network logon, so RDP for that account cannot authenticate no matter how the transport is configured, and NLA (UserAuthentication=1) then demands exactly the credential policy forbids. control-mcp derives this from measurement, not assumption: when [hosts.rdp] is declared for such a host, host_status probes network logon and reports the refusal with the evidence. When no [hosts.rdp] block is present it short-circuits to not-declared first. Either verdict is correct and expected — not a bug and not a transport problem: do not retry with a different transport; set a password or change NLA from the console.

Prerequisites

  • Node ≥ 20.6 (package.json engines). This repo is ESM ("type": "module", module/moduleResolution: Node16), so every relative import in src/ carries a .js specifier — the source compiles to build/ and runs as written.

  • pnpm for installs; pnpm-lock.yaml is the source of truth.

  • Runtime dependencies: @modelcontextprotocol/sdk (stdio server), ssh2 (SSH/SFTP transport), koffi (FFI to user32, gdi32, ole32, MsRdpEx), smol-toml (config), zod (schemas).

  • RDP control requires MsRdpEx installed on the machine running control-mcp (DLL_PATH_DEFAULT points at the default Devolutions install location). Without it rdp_connect reports the load failure and its HRESULT; the rest of the server is unaffected. The koffi libraries load on first use, so importing these modules never touches FFI.

  • adb is optional. Absent, adb_status answers available: false with the reason and the adb tools answer CAPABILITY_UNAVAILABLE; nothing else is affected.

  • Local networking tools shell out to Windows built-ins (ping.exe, arp.exe, cmdkey.exe, powershell); cdp_discover additionally needs an elevated control-mcp process for its raw socket.

Build, typecheck, test

pnpm install                                              # pnpm-lock.yaml is authoritative

node node_modules/typescript/bin/tsc -p tsconfig.json     # build: src -> build/
node node_modules/typescript/bin/tsc --noEmit -p tsconfig.test.json   # typecheck: src + test

package.json scripts: build, typecheck (tsc --noEmit -p tsconfig.test.json), and test / test:unit / test:e2e (cross-env CONTROL_MCP_DISABLE_MAIN=1 vitest --run [path]).

Tests must disable the entry point, because importing src/index.ts would otherwise call main() and open the stdio server:

CONTROL_MCP_DISABLE_MAIN=1 node node_modules/vitest/vitest.mjs --run test/

What the suites cover: config schema/loader behavior against the TOML fixtures, the safety guard's refusal and over-refusal tables, capability verdicts, monitor semantics (baseline, dedupe, queue, drain), the error/hint pairing, the secrets resolver (path expansion, empty-vs-unset env vars, unreadable keys), wininput VK/lparam mapping, and the live SSH exec + shell sentinel protocol against a real host — the live cases skip automatically when the host is unreachable.

A raw-stdio acceptance harness (harness/) drives the built server as an MCP client and asserts a clean initialize handshake, tool-schema integrity, real tool results, JSON-only stdout, and a clean exit on stdin EOF:

python harness/mcp_stdio_harness.py node build/index.js --call host_list '{}'

Safety

exec, admin_exec, and shell_run pass every command through safety.checkCommand before anything reaches a host. The guard refuses commands that stop or reconfigure a transport-carrying service with TRANSPORT_SEVERED_RISK. On Windows both pattern sets always apply — stopping TermService severs an RDP session even when the command arrived over SSH, and stopping sshd kills the exec path — because a stopped Automatic service does not self-heal and the box becomes unreachable until someone touches it. Linux patterns apply on the SSH transport: systemctl stop|restart|disable|kill sshd|ssh, service ssh stop, pkill -x sshd, killall sshd.

Behavior as measured against the guard:

  • refused: Stop-Service sshd, net stop TermService, sc config sshd start= disabled, Set-Service -Name sshd -StartupType Disabled, taskkill /im sshd.exe /f, systemctl restart ssh, pkill -x sshd, and service verbs behind a command prefix — cmd /c "net start sshd", powershell -Command "net start sshd" (the prefix is stripped, so the verb is back at the start of the segment).

  • allowed: findstr sshd f.cmd, journalctl -u sshd, systemctl reboot, systemctl stop sshd.socket — the service verbs must be at a segment start and the unit tokens are bounded, so mentions and neighboring units pass.

Parsing is per segment (;, &, |, newlines) after normalization that strips quotes and collapses whitespace, with verbs anchored to segment start. It fails safe toward refusing.

Escape hatch: override: "sever-transport" runs a refused command anyway. That is genuinely dangerous — it is how you cut your own branch off the tree. Use it only when you already have another way back (console access, the other transport, a scheduled rescue); otherwise pick a command that does not stop sshd/TermService. Every use logs an AUDIT control-mcp: <tool> on host=<host> ran with override=sever-transport: <command> line to stderr. The gate is configurable: safety.refuseSelfSevering = false turns it off (and the guard stays on when there is no config at all).

Power operations are loud by design: confirm: "yes" is required, and any host resolving to localhost/loopback or to an address of the machine running control-mcp is refused outright — powering the control origin takes the server and every transport with it.

Everything that can destroy data asks first: transfers refuse an existing destination on either end without overwrite: true; adb_type refuses anything outside [A-Za-z0-9 ._-] so no control character reaches a shell; the destination pre-check quotes a POSIX remote path with POSIX escaping, so /tmp/$(reboot) is matched as a literal filename rather than executed (SFTP paths never go through a shell at all); a destination that cannot be pre-checked is not claimed absent — the transfer proceeds and the failure to check is logged.

Monitor

monitor_start <host> polls the host's own log over SSH: Windows via Get-WinEvent on the System channel at levels 1–3 (critical/error/warning) rendered as compact JSON, Linux via journalctl -p 3 -n 20 --no-pager -o json with a plain-text fallback. Cadence is intervalMs — default 30 s, floor 5 s, one shared interval per monitor.

It is poll-based, never push: nothing is installed on the targets and stdio MCP has no push path here. Events are queued per host and monitor_events returns and clears them; callers drain on their own cadence. Dedupe is by record identifier (Windows RecordId, journal cursor), so the same log record is never emitted twice. monitor_start primes with a first poll that only records identifiers and emits nothing, so a fresh monitor reports only what happens while it is watched.

Honest edges: monitor_stop for a host that is not watched and monitor_events for an unwatched host both answer BAD_ARGS instead of an empty result that would read as "no events" — an empty drain only means something when the host is actually monitored. Passing intervalMs re-creates the monitor, which resets every watched host's baseline and drops queued, undrained events; the result says so and names any host that failed to re-attach. Queues are capped at 500 events per host, newest kept, oldest dropped. A poll that fails or returns unparseable output yields no events and no error (and, importantly, does not mark the baseline taken — so it re-baselines next time instead of replaying history); capability gaps are reported by start as CAPABILITY_UNAVAILABLE.

Contributing

Contributions are welcome — bug fixes, hardening, tests, and documentation. Please:

  1. Open an issue first for anything non-trivial, and feature requests are welcome (label them enhancement). Describe the behavior you want and why; honesty gaps and self-correcting-error improvements are especially appreciated.

  2. Branch from main, keep changes focused, and follow the invariants in AGENTS.md — especially the honesty contract, the per-error hint pattern, the .strict() config schema, and "no secrets in the repo, ever."

  3. Run pnpm typecheck and the test suite before opening a PR, and add/adjust tests so the change is covered.

Autonomous agents

This project welcomes AI/agent-authored pull requests — but only when a human has reviewed and vouched for them. Every PR must name a human sponsor and explain, in the PR body, why the change is correct and safe (what it fixes, how it was tested, and the risk to the honesty contract). A PR with no human justification, or one that merely asserts success without evidence, will be closed. See AGENTS.md for the full, machine-readable guidance.

License

Released under the MIT License. See LICENSE.

Available Tools

34 tools
adb_execA

Run a shell command on an adb-connected Android device (adb -s shell); returns stdout/stderr/exit; timeouts kill the adb child.

Inputs: serial (required), command (required), timeoutMs.

adb_rootB

Restart adbd as root on an Android device (adb root); honest about devices that refuse (production builds, verified boot).

Inputs: serial (required), timeoutMs.

adb_screencapA

Capture the Android device screen to an absolute local PNG path (screencap -p streamed via exec-out); validates the PNG signature before writing.

Inputs: serial (required), outputPath (required), timeoutMs.

adb_statusA

Probe the local adb CLI (Android Debug Bridge) and list connected devices with serial/state/model; honestly reports adb not installed as available=false rather than failing.

Inputs: no named parameters.

adb_swipeC

Swipe the Android device screen from (x1,y1) to (x2,y2) over durationMs via input swipe.

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +3 more.

adb_tapC

Tap the Android device screen at (x,y) via input tap.

Inputs: x (required), y (required), serial (required), timeoutMs.

adb_typeB

Type text into the Android device via input text; restricted to [A-Za-z0-9 ._-] (spaces become %s) so no control characters can reach the shell.

Inputs: text (required), serial (required), timeoutMs.

admin_execA

Run a command over SSH expecting administrator effect. Elevation is NOT faked or added: control-mcp runs the command on the same SSH connection and first measures the effective privilege of that account (Windows: whether the sshd token carries the High mandatory label S-1-16-12288; Linux: whether uid is 0). If the account is not privileged the command still runs with whatever rights it has and access-denied comes back from the target. Same safety gate as exec; there is no runas/UAC wrapper.

Inputs: command (required), host, override, timeoutMs.

arp_tableA

Read this machine ARP route cache (address to MAC) so MACs and addresses can be cross-checked; an empty table honestly means the arp command yielded nothing parseable.

Inputs: no named parameters.

cdp_discoverA

Listen with a raw-socket CDP listener on a network interface (Get-NetAdapter InterfaceIndex) for Windows CDP neighbor frames up to timeoutMs; an empty result honestly means no neighbors were observed, and a listener that cannot run fails with REMOTE_ERROR.

Inputs: interfaceIndex (required), timeoutMs.

execA

Run a shell command on a host over SSH and report stdout/stderr/exit code/truncation; commands that would stop the service carrying the live transport are refused with TRANSPORT_SEVERED_RISK unless override is "sever-transport".

Inputs: command (required), host, override, timeoutMs.

file_downloadB

Download a remote file to an absolute local path over SFTP and report byte counts; missing remote files fail with REMOTE_ERROR. Refuses an existing local destination unless overwrite:true.

Inputs: localPath (required), remotePath (required), host, overwrite.

file_listB

List a remote directory over SFTP (name, size, mode, mtime); missing directories fail with REMOTE_ERROR.

Inputs: remotePath (required), host.

file_uploadA

Upload a local file (absolute path) to a remote path on a host over SFTP and report byte counts; auth/network failures appear as AUTH_FAILED/HOST_UNREACHABLE. Refuses an existing remote destination unless overwrite:true.

Inputs: localPath (required), remotePath (required), host, overwrite.

host_listA

List configured hosts (name, address, os, alternate addresses, declared capabilities, ssh user, rdp configured flag) and never any secrets; answers CAPABILITY_UNAVAILABLE when control-mcp started without a valid config.

Inputs: no named parameters.

host_rebootA

Reboot a LAN host over its transport (windows: shutdown /r /t 5, linux: systemctl reboot); it refuses unless confirm is exactly "yes" and refuses any host whose address matches this machine, because these power ops are loud by design.

Inputs: host, confirm, timeoutMs.

host_shutdownB

Power a LAN host off over its transport (windows: shutdown /s /t 5, linux: systemctl poweroff); it refuses unless confirm is exactly "yes" and refuses any host whose address matches this machine, because powering the wrong box off is only reachable by rebooting it on site.

Inputs: host, confirm, timeoutMs.

host_statusA

Probe one host over every configured interface (ping, tcp/22, tcp/3389, Windows RDP policy) and report the honest verdict for each transport, including the exact reason RDP is refused; run this before any RDP tool when you do not know why a box is unreachable.

Inputs: host.

monitor_eventsA

Drain and clear queued system events (critical/error/warning) from all watched hosts or one host; returns immediately, possibly empty -- call it on your own cadence to poll. This is how monitored log events reach the caller: no push exists over stdio MCP.

Inputs: host.

monitor_listA

List hosts currently watched by the system-event monitor; empty means none.

Inputs: no named parameters.

monitor_startA

Start polling a host's system log (Windows event log critical/error/warning via Get-WinEvent; journald priority<=3 on Linux) every intervalMs. The first poll only baselines existing records and emits nothing, so only events occurring while watched are reported. Events reach the caller by monitor_events drains (poll-based, never push): an MCP client calls monitor_events periodically and any drained events are returned there. Re-calling start() for a watched host is a no-op.

Inputs: host (required), intervalMs.

monitor_stopA

Stop polling a host's system log; queued undrained events are dropped.

Inputs: host (required).

net_pingB

Ping an address from this machine and report whether it answers; a pure local network probe that needs no host config.

Inputs: address (required), timeoutMs.

net_probe_tcpA

Open a TCP socket to address:port and report whether something listens there (22 = ssh, 3389 = rdp); timeout/error strings explain refusals.

Inputs: port (required), address (required), timeoutMs.

rdp_clickB

Send mouse-click window messages (WM_*) to the RDP control window, which forwards them to the remote desktop; BAD_ARGS when no window exists for this host.

Inputs: x (required), y (required), host, button, +1 more.

rdp_connectB

Create or inspect an MsRdpEx RDP control session for a host (action: connect/disconnect/status); headless connect fails against MsRdpEx on this box, so status honestly reports the real last error and never fakes success.

Inputs: action (required), host.

rdp_keyB

Send key window messages to the RDP control window: key is a VK name (ENTER, LEFT, F1, ...) or vk is a number, with optional modifiers for a hotkey; fails BAD_ARGS when no window is found.

Inputs: vk, key, host, modifiers.

rdp_screenshotA

Capture the RDP window (found by class "AxHostWindow", else the hwnd rdp_connect recorded) to an absolute PNG path via PrintWindow and write it with fs; fails with BAD_ARGS on hosts where rdp_connect never connected or no window is open -- run host_status first.

Inputs: outputPath (required), host.

rdp_typeB

Type text into the RDP control window via WM_CHAR window messages (the control forwards them to the remote desktop); BAD_ARGS when no window exists.

Inputs: text (required), host.

shell_closeA

Close an open shell session by id and free its channel; returns SESSION_GONE when the id is unknown or already closed.

Inputs: id (required).

shell_listA

List open shell sessions (id, host, open/closed) so ids can be found and reused; an empty list honestly means none are open.

Inputs: no named parameters.

shell_openB

Open a persistent interactive shell session on a host over SSH and return its session id; auth or network failures are reported honestly (AUTH_FAILED/HOST_UNREACHABLE).

Inputs: host.

shell_runA

Run one command inside an open shell session (it keeps cwd and env); unknown or dead session ids fail with SESSION_GONE, and the safety gate applies like exec.

Inputs: id (required), command (required), override, timeoutMs.

wol_wakeA

Send the Wake-on-LAN magic packet for a MAC address over the LAN and report per-interface send results. Without an explicit broadcast target it fans out to every IPv4 interface's directed broadcast plus 255.255.255.255; malformed MACs fail with BAD_ARGS.

Inputs: mac (required), port, broadcast.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 34 tools

    Disambiguation4/5

    Most tools are clearly separated by resource and transport: shell, file, RDP, ADB, monitoring, network probes, and power operations form distinct clusters. The main overlap is between exec/admin_exec/shell_run and between host_status/net_ping/net_probe_tcp, though the descriptions give usable guidance for choosing among them.

    Naming Consistency4/5

    Names are overwhelmingly snake_case and use predictable domain prefixes such as shell_, host_, file_, rdp_, adb_, net_, and monitor_. There are minor deviations like the bare exec and action-oriented names such as admin_exec, but the overall convention is easy to infer.

    Tool Count2/5

    The server covers several large domains, which explains some breadth, but 34 tools is heavy and exceeds the practical well-scoped range. Several clusters could be consolidated or parameterized further, even though most individual tools have a real purpose.

    Completeness4/5

    The surface covers core remote-control workflows well: host inventory/status, SSH command execution and sessions, file transfer, RDP interaction, monitoring, ADB control, network discovery, and power operations. Minor gaps remain, such as file deletion/mkdir and Android app install/uninstall, but agents can often work around them through exec or adb_exec.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables SSH connectivity and remote command execution on servers, allowing users to test connections and run commands remotely with support for both local networks and public servers.
      2
      20 npm
      1
      ISC
    • F
      license
      A
      quality
      C
      maintenance
      Enables managing remote hosts from ~/.ssh/config over OpenSSH, including availability checks, command execution with sudo and timeouts, background jobs, SSH config and known_hosts management, and llms.txt-based documentation retrieval.
      19
      -
    • A
      license
      C
      quality
      B
      maintenance
      Exposes the SSH + tmux client over stdio so agents can drive hosts, tmux sessions, commands, broadcasts, tunnels and audit logs programmatically. It offers 47 grouped tools covering host and session management, connectivity checks, and background port forwarding.
      47
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Pre-alpha P2P remote-control app with a local stdio MCP bridge for paired computers. Users build from source; platform support and host-side approvals apply.
      2
      1
      AGPL 3.0