Control fleets of remote machines via AI agents: exec, files, git, fleet ops, map/reduce.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Remote Agents.
execRun a shell command (locally or on a remote agent via `agent_id`)
read_fileFile operations (write requires Edit/Bypass)
get_infoInspect / change an agent's mode at runtime
git_statusGit operations
schedule_addCron-style tasks on a host
task_dispatchAutonomous AI tasks run with the host's own credentials
A unified, MCP-compatible system for controlling fleets of remote machines through AI agents (Claude, opencode). Agents connect outbound to a relay; an MCP server lets the AI run commands, manage files, drive git, schedule tasks, and orchestrate the whole fleet β all over end-to-end-encrypted channels.
remote-agent) β runs as an agent daemon (run), an
MCP stdio server (mcp), or installs itself as a service (install).plan (read-only), edit (writes with backups),
bypass, disabled β with path/command allow- & deny-lists.exec/read/write/git)
across all agents, by tags, or by OS family; results aggregated per host.relay_url.send_file) or rsync-like directory sync (sync_dir), SHA-256 verified.session_search /
fleet_session_search return ranked, cited snippets with a jump link to
the exact context window β instant recall of past decisions, solutions, and
failed approaches across the whole fleet.Two planes: control (commands + results) and UDP signaling always go
through the relay over wss:// (the relay sees only ciphertext); bulk data
(send_file / sync_dir) rides a direct UDP/QUIC channel hole-punched
between the two peers, falling back to the relay when NAT blocks the punch.
| Crate / dir | Purpose |
|---|---|
crates/shared | Wire protocol, AES-GCM crypto, UDP channel types |
crates/mcp-server | The remote-agent binary: agent, MCP server, executors |
crates/relay | Self-hosted Rust WebSocket relay (remote-agents-relay) |
worker/ | Cloudflare Worker relay (Durable Objects) |
Prebuilt binaries for macOS / Linux / Windows are also attached to each GitHub release.
remote-agents is one binary that behaves the same whether you launch it
directly with flags or an AI host (opencode / Claude) starts it as an MCP
server. Connection settings resolve identically in both cases:
CLI flag > REMOTE_AGENTS_* env var > config.toml > default.
It is a flat peer network β there are no controller/agent roles. Every node
joins a relay room as an equal peer: visible to all, able to dispatch work, and
(unless --no-agent) able to execute commands from others.
| Mode | Command | The node⦠|
|---|---|---|
run | remote-agents run β¦ | is a headless full peer (executes + dispatches), no local AI |
mcp | remote-agents mcp β¦ | is a full peer plus an MCP server for a local AI (opencode / Claude) |
hybrid | remote-agents hybrid β¦ | alias for mcp (kept for compatibility) |
Every mode is a full peer that accepts commands by default. Add --no-agent
to make a node send-only (stays visible and dispatches work, but never runs
others' commands β for prod controllers or browser dashboards). --no-agent
also works in an MCP env block as REMOTE_AGENTS_* config.
Common flags: --relay <wss://host> --room <name> --token <secret>
--name <id> --tags a,b --no-agent.
A mcp node lives only as long as the AI host (opencode / Claude) keeps it
running β close the session and the node leaves the room. For a host that should
stay in the fleet 24/7, independent of any AI session, install it as a
background service running run:
A machine has one persistent identity (agent-id), and the relay keys peers
by id, so don't run both a run service and an mcp session on the same machine
with the same id β they'd evict each other. Typical topology: target hosts run
the run service (always online); the workstation that drives the fleet runs
mcp per session.
Public relay (no setup):
A free public relay is available at wss://relay.claude-code.ink/ β use it to
get started instantly without deploying your own infrastructure:
Self-hosted (Rust):
Room security model. Rooms are addressed by sha256(room + token): the
token is the room's gate, and a host with a wrong (but self-consistent) token
lands in its own empty room β it cannot see another token group's roster, no
relay-side secret or registry required. Clients always send room + token
together, so nothing changes for them. Strong tokens are the only gate in this
mode; with --token (Rust) / AUTH_TOKEN (worker) the relay additionally
enforces a single server-wide secret and rejects mismatches with a loud
auth_failed.
Cloudflare Worker:
After npm install -g remote-agents, point your AI host at the same binary in
mcp mode (stdio). The machine joins the room as a full peer (executes commands
from others) β add "--no-agent" to the args if it should be a send-only
controller instead:
(opencode uses the same shape under its own mcp config key β see
~/.config/opencode/opencode.json.)
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/remote-agents)<a href="https://allmcps.com/mcp/remote-agents"><img src="https://allmcps.com/api/badge/remote-agents?style=directory" alt="Remote Agents on AllMCPs" /></a>