agent-node
Click on "Install 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., "@agent-nodeList online agents, then run 'ipconfig' on the dev machine and show me the output."
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.
Agent Node
LAN multi-machine agent collaboration node. Deploy one on each computer to form a "multi-machine multi-agent collaboration team": automatic LAN peer discovery, symmetric controlled/remote command execution, system tray status visibility, cross-node file send/receive, and a built-in MCP Server for AI clients to call.
A minimal standalone project extracted from the
agent-busrepository. Runs from source; no packaged distribution.
1. Capabilities
Capability | Description |
Symmetric control node | Every computer runs the same program with equivalent functionality, and they can remotely execute commands on each other |
Automatic LAN discovery | UDP broadcast beacon (like LocalSend); after startup, a node automatically discovers other nodes on the same subnet |
Controlled capability | Receives |
Remote control capability | Issues "execute command on this computer" to any discovered node and retrieves the result |
Status visibility | Tray icon changes color (green when nodes are online, gray when not), and the title shows the number of discovered nodes in real time |
Node naming | Defaults to hostname; can be renamed anytime in the Web panel for human-friendly identification |
Cross-node file send/receive |
|
Built-in MCP Server | 10 standard MCP tools for AI clients such as Claude Desktop / Cursor to connect |
Hub role | Additionally starts an MQTT broker + Web panel + file service to become the team hub |
Port fallback | Port pools for MQTT / HTTP / discovery; automatically falls back when a port is occupied |
2. Use Cases
Multi-machine multi-agent collaboration: An AI client wraps the capabilities of multiple computers as tools via MCP and orchestrates them across machines.
LAN remote operations / debugging: Issue commands from any node to other nodes and retrieve results.
Cross-machine file transfer: Send and receive single files / directories (automatically zipped) in both directions.
AI client integration: Wrap "send task / check inbox / execute command / read & write files / upload & download" into standard tools for Claude / Cursor to call.
3. Technical Architecture
┌──────────── 中心节点 (一台, --role hub) ────────────┐
│ mosquitto (MQTT broker) │
│ bus_server (FastAPI + SQLite, Web 面板 + 文件服务) │
│ 自身控制节点 (带全部功能) │
└────────────────────────────────────────────────────┘
▲ MQTT / HTTP ▲ UDP beacon 发现
│ │
┌─────────┴─────────┐ ┌─────────┴─────────┐
│ worker (对称控制节点) │ ... │ worker (对称控制节点) │
│ 连总线 + 受控/遥控 │ │ 连总线 + 受控/遥控 │
└───────────────────┘ └───────────────────┘Communication layer: MQTT (mosquitto), messages routed by topic (
agent/<id>/inbox,bus/register,bus/heartbeat/), QoS 1, retain registration + last will for offline detection.Discovery layer: UDP broadcast beacon (
255.255.255.255:41830), symmetric with no master/slave; on startup, workers automatically scan foris_masternodes to obtain the real broker address (no manual configuration needed).File layer: HTTP (bus_server, FastAPI), Claim-Check upload/download, automatic directory zipping / safe extraction (prevents path traversal + zip-slip).
Hub: The hub role starts mosquitto inline (reuses an existing local install, otherwise extracts from
build/mosquitto.zipon first start) + bus_server + Web panel.MCP: FastMCP over stdio transport, decoupled from GUI mode and can be started independently.
MCP tools (10): list_online_agents · send_task · check_inbox · run_command · read_file · upload_file · download_file · fetch_file · post_file · reply_task
4. Installation
4.1 Prerequisites
Python 3.10+ (all machines)
LAN connectivity + firewall rules (inbound on the hub side):
TCP
1883(MQTT, port pool may fall back to1884/1885/8883/18830)TCP
8000(HTTP panel/files, pool fallback8001/8002/8010/8088)UDP
41830(discovery broadcast)
4.2 Hub host (one machine)
Requires the full project directory + mosquitto.
# 1. 获取代码(git clone 或拷贝整个 agent-node 文件夹)
git clone <本仓库地址>
# 2. 安装依赖
cd agent-node
pip install -r requirements.txt
# 3. 启动中心节点(起 broker + Web 面板 + 自身控制节点 + 托盘)
python executor/control_app.py --role hubmosquitto: Automatically reused if already installed (
shutil.which("mosquitto")orC:\Program Files\mosquitto); otherwise, it is automatically extracted frombuild/mosquitto.ziptodata/runtime/mosquittoon first start, sobuild/must be kept.Web panel: After startup, open
http://127.0.0.1:8000/in a browser (if the port pool falls back, check the startup log for the actual port).On first start, the hub creates
data/(bus.db, files, broker.log, node_config.json); no pre-provisioning needed.
4.3 Worker (other machines)
Only a minimal subset is needed: the agent_bus/ package + executor/control_app.py + requirements.txt (none of server/, build/, scripts/ are needed).
# 1. 拷贝精简子集到目标机器(或 git clone 后仅运行,多余的目录会被自动忽略)
# agent_bus/ executor/control_app.py requirements.txt
# 2. 安装依赖
pip install -r requirements.txt
# 3. 启动 worker(无参数,自动扫描局域网中心)
python executor/control_app.pyNo broker address configuration needed: without
--broker-host, the worker automatically scans the LAN foris_masternodes to obtain the real address (all three: host / MQTT port / HTTP port).Manually specify the hub (cross-subnet / when auto-discovery fails):
python executor/control_app.py --broker-host 192.168.1.10The inbox is automatically placed in
Downloads/agent-node/inbox, and thedata/config directory is auto-generated; no pre-provisioning needed.
4.4 Minimal File Manifest
File/Directory | hub | worker | Description |
| ✅ | ✅ | Communication SDK |
| ✅ | ✅ | Single entry point |
| ✅ | ✅ | Install dependencies |
| ✅ | ❌ | Web panel, hub only |
| ✅ | ❌ | Portable broker package, hub only |
| Optional | ❌ | Packaging tools, not needed at runtime |
| Auto-generated | Auto-generated | Runtime artifacts |
5. Command-Line Arguments
Argument | Description | Default |
| Node role | worker |
| Node ID (addressing identity) |
|
| Display name | Same as agent-id |
| External hub broker address (for workers; auto-discovered by default) | Empty |
| MQTT port | Auto-selected from pool |
| HTTP port | Auto-selected from pool |
| Discovery port | Auto-selected from pool |
| Disable controlled capability at startup | false |
| No tray icon (background/testing) | false |
| MCP Server mode (stdio) | false |
Port pools
MQTT:
1883 → 1884 → 1885 → 8883 → 18830HTTP:
8000 → 8001 → 8002 → 8010 → 8088Discovery:
41830 → 41831 → 41832 → 41840 → 41850
6. MCP Configuration (for AI clients)
--mcp uses stdin/stdout so that Claude Desktop / Cursor etc. can launch it as an MCP Client via JSON configuration.
{
"mcpServers": {
"agent-node": {
"command": "python",
"args": [
"C:/path/to/agent-node/executor/control_app.py",
"--mcp", "--role", "worker", "--agent-id", "my-agent"
],
"env": { "BUS_BROKER_HOST": "192.168.1.10" }
}
}
}
BUS_BROKER_HOSTis optional — workers will auto-discover the hub; specify it explicitly when crossing subnets or when discovery fails.
7. Directory Structure
agent-node/
├── executor/
│ └── control_app.py # 节点主入口(对称 + 托盘 + MCP + 中心角色)
├── agent_bus/ # 通信 SDK(client/config/discovery/provision/files/schema...)
├── server/
│ ├── bus_server.py # 中心 HTTP + 消息服务(可编程 serve_bus_server 内联启动)
│ └── static/index.html # Web 面板
├── scripts/
│ └── build_mosquitto_zip.py # 重建 mosquitto 便携包
├── build/
│ └── mosquitto.zip # 便携 mosquitto(hub 首启自解压)
├── docs/
│ ├── 需求与设计.md
│ └── BUGFIX_LOG_20260819.md
└── requirements.txt8. Security Model
This project is designed for trusted LANs: the broker uses allow_anonymous, control messages travel in plaintext over MQTT, and only a sender_id prefix allowlist is enforced (the control plane only accepts hub-* identities). It does not provide HMAC signing / encryption / node allowlisting — harden it yourself when crossing untrusted networks.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/weifeng-work/agent-node'
If you have feedback or need assistance with the MCP directory API, please join our Discord server