WinCommander
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., "@WinCommanderlist all open windows on my desktop"
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.
WinCommander
手机大脑 → Windows 四肢。把任意 Windows 设备变成远程可操控的 MCP 工具集。 手机 Termux 里的 Hermes 是唯一的 AI Agent,Windows 只管执行,无需 API Key。
架构
┌─────────────────────────────┐
│ 手机 (Termux + Hermes) │
│ 唯一 AI 大脑 │
│ │
│ "帮我在 Win 上打开浏览器 │
│ 搜索 Python 文档" │
│ │
│ Agent 调用工具: │
│ mcp_win_browser_navigate │
│ mcp_win_input_type │
│ mcp_win_cli_run │
└──────────┬──────────────────┘
│ LAN / Tailscale
▼
┌─────────────────────────────┐
│ Windows (WinCommander) │
│ 无脑执行器 │
│ │
│ ✅ CLI (CMD/PowerShell) │
│ ✅ GUI (UIA 桌面自动化) │
│ ✅ 浏览器 (Playwright) │
│ ✅ 键鼠 (pyautogui) │
│ ✅ USB 设备管理 │
│ ✅ 截图 / 剪贴板 │
│ ✅ 文件系统 │
│ ✅ 进程管理 │
│ │
│ 无需 API Key · 全离线 │
└─────────────────────────────┘Related MCP server: windows-computer-use-mcp
功能 (35+ 工具)
类别 | 工具 | 说明 |
CLI |
| 执行 CMD 命令 |
| 执行 PowerShell | |
GUI |
| 获取桌面 UI 元素树 |
| 点击元素 | |
| 双击元素 | |
| 向元素输入文本 | |
| 发送按键 | |
| 聚焦元素 | |
| 触发按钮 | |
| 列出所有窗口 | |
| 前置窗口 | |
| 关闭窗口 | |
输入 |
| 鼠标点击坐标 |
| 鼠标双击 | |
| 移动鼠标 | |
| 拖拽 | |
| 键盘输入文本 | |
| 组合键 (Ctrl+C, Win+R…) | |
| 滚轮 | |
浏览器 |
| 打开网页 |
| 点击元素 | |
| 输入框填字 | |
| 获取页面文本 | |
| 执行 JS | |
| 滚动页面 | |
| 关闭浏览器 | |
截图 |
| 全屏/区域截图 |
| 屏幕分辨率 | |
USB |
| 列出 USB 设备 |
| USB 详细信息 | |
系统 |
| 系统信息 |
| 进程列表 | |
| 终止进程 | |
文件 |
| 列目录 |
| 读文件 | |
| 写文件 | |
| 删文件 | |
| 检查存在 | |
剪贴板 |
| 读剪贴板 |
| 写剪贴板 | |
应用 |
| 启动应用 |
快速开始
1. Windows 端部署
git clone https://github.com/你的仓库/win-commander.git
cd win-commander
setup_win.bat脚本自动完成:
检测 Python 3.10+
创建 venv 并安装所有依赖
下载 Playwright Chromium 浏览器 (~150MB)
生成启动批处理
2. 启动
启动_WinCommander.bat # 无白名单限制
启动_WinCommander_安全模式.bat # 限制用户目录启动后终端显示:
╔══════════════════════════════════════════════════╗
║ WinCommander — Windows 远程控制 ║
╠══════════════════════════════════════════════════╣
║ 局域网 IP : 192.168.1.100 ║
║ 端口 : 9600 ║
║ MCP URL : http://192.168.1.100:9600/mcp ║
╠══════════════════════════════════════════════════╣
║ Termux 端配置: ║
║ hermes config set mcp_servers.win.url ║
║ "http://192.168.1.100:9600/mcp" ║
╚══════════════════════════════════════════════════╝3. 手机 (Termux) 端配置
# 方法 A: 自动配置 (在 Linux/Termux 上)
bash setup_termux.sh
# 方法 B: 手动配置
hermes config set mcp_servers.win.url "http://192.168.1.100:9600/mcp"
# 重启 Hermes
hermes gateway restart4. 开始使用
在手机 Hermes 中直接对话:
"看看 Windows 上有什么窗口"
"用 mcp_win_system_info 看看系统状态"
"在 Windows 上打开 Chrome 搜索 Python 文档"
"帮我在 Windows 桌面上建一个 test.txt 文件"所有工具以 mcp_win_ 为前缀。Hermes 会自动发现并调用。
安全
机制 | 说明 |
白名单 |
|
SSRF 防护 | 浏览器禁止访问 localhost/私有 IP/云元数据 |
Tailscale | 跨网络使用时走 WireGuard 加密隧道 |
HMAC |
|
可选依赖
库 | 用途 | 缺失影响 |
| GUI 自动化 | gui_* 工具不可用 |
| 键鼠模拟 | input_* 工具不可用 |
| 浏览器 | browser_* 工具不可用 |
| 剪贴板 | clipboard_* 工具不可用 |
| 截图 | screen_* 回退到 pyautogui |
| 系统信息 | 内存/磁盘信息缺失 |
与 Hermes-Desktop / remote-device-mcp 的关系
WinCommander 吸收了这两个项目的精华:
Hermes-Desktop 提供了 Windows GUI 自动化 (FlaUI.UIA3 → uiautomation) 和浏览器自动化 (Playwright) 的工具设计模式
hermes-remote-device-mcp 提供了 MCP Server 远程控制的架构思路,但修复了其 HMAC 认证缺失、shell 注入等问题
区别:
Hermes-Desktop | remote-device-mcp | WinCommander | |
平台 | Windows only | 跨平台 | Windows only |
AI 位置 | 本地 agent runtime | 远程 Hermes | 远程 Hermes (手机) |
API Key | 需要 | 不需要 | 不需要 |
GUI 自动化 | FlaUI.UIA3 (C#) | ❌ | uiautomation (Python) |
浏览器 | Playwright (已实现但未注册) | ❌ | Playwright |
键鼠 | 嵌入 UIA | ❌ | 独立 pyautogui 工具 |
USB | ❌ | ❌ | ✅ |
安全性 | HMAC + 白名单 | HMAC 假实现 | 真 HMAC + SSRF + 白名单 |
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Turns a phone into a camera+Bluetooth remote so AI assistants can see and control any PC.
Melaya is a remote MCP server. It gives an assistant hands on your own Android phone and browser: it reads the screen through the accessibility tree, then taps, types and navigates inside the apps and sites you allow-list, with no per-app API. It also builds, schedules and runs agent pipelines across 6k+ connected tools. OAuth 2.1, nothing to install.
Remote MCP server for AI.TV creators — delegate account operations to your AI agent over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform extensive Windows system administration, file operations, process management, network configuration, registry editing, GUI automation, and more through a comprehensive set of MCP tools.1MIT
- AlicenseNot gradedqualityCmaintenanceA local, dependency-free MCP server that gives AI agents controlled access to the active Windows desktop, enabling automated interaction with applications through screenshots, clicks, typing, and window management.76 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to seamlessly integrate with the Windows operating system, performing tasks such as file navigation, application control, UI interaction, and QA testing via the MCP protocol.-
- AlicenseAqualityBmaintenanceEnables AI assistants to control Windows PCs by executing shell commands, managing files, capturing screenshots, and monitoring system information through a comprehensive set of MCP tools.18MIT