
向 Claude Code 或任何 MCP 客户端曝光 PC 功能的 MCP 服务器( shell, 文件系统, GPU, 截图, 背景进程)
概览
将任何PC的能力—— shell,文件系统,背景进程,系统数据,截图,UI控制,以及文件传输——曝光到(Claude Desktop, Claude Code, Cursor, Cline, Creep, Windsurf,自定义代理——任何说出"模型上下文协议")上流的HTTP. 将其丢入任何您想要远程驱动的机器上: 家用服务器, 桌面, 构建/ CI 框, 媒体服务器, 工作站, 拉斯伯里 Pi。 从单独的机器上, 您所选择的 AI 代理可以运行其中的命令, 管理文件, 启动并监视背景任务, 接受截图, 并驱动桌面 UI 。 传输是mcp SDK的可流 HTTP(无状态 http=True),因此服务器重启不会中断已经连接的客户端. 每项请求都是自成一体的——没有内在会议可暂停。 ⚠️ 无记名符是根等同的证书. 打开服务器前请查看安全系统 。 - Python 3号.
概述(AI 翻译)
向 ** 任何 MCP 客户端显示任何 PC 的能力—— shell, file system, 背景过程, 系统统计, 截图, UI 控制和文件传输** (Claude Desktop, Claude Code, Cursor, Cline, Creep, Windsurf,自定义代理 – 任何能说出"模型背景协议") 超过可流的 HTTP.
将其丢入任何您想要远程驱动的机器上: 家用服务器, 桌面, 构建/ CI 框, 媒体服务器, 工作站, 拉斯伯里 Pi。 从单独的机器上, 您所选择的 AI 代理可以运行其中的命令, 管理文件, 启动并监视背景任务, 接受截图, 并驱动桌面 UI 。
传输是mcpSDK可流的HTTP([T1]),因此服务器重启不会中断已经连接的客户端. 每项请求都是自成一体的——没有内在会议可暂停。
QQ **
shell_exec作为启动服务器的用户在主机上运行任意命令. ** 无记名符是根等同的证书. 打开服务器前请查看安全系统 。
□ 工具
- 工具 * * 描述 * * |-|-|-. QQ[ [T3]] 运行任何 shell 命令——返回 stdout, stderr, 退出代码QQ
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
remote-pc-mcp
Expose any PC’s capabilities — shell, filesystem, background processes, system stats, screenshots, UI control, and file transfer — to any MCP client (Claude Desktop, Claude Code, Cursor, Cline, Continue, Windsurf, custom agents — anything that speaks the Model Context Protocol) over streamable HTTP.
Drop it on any machine you want to drive remotely: a home server, a desktop, a build/CI box, a media server, a workstation, a Raspberry Pi. From a separate machine, your AI agent of choice can run commands on it, manage files, launch and monitor background jobs, take screenshots, and drive the desktop UI.
The transport is the mcp SDK’s streamable HTTP (stateless_http=True), so a server restart does not break already-connected clients. Each request is self-contained — there is no in-memory session to go stale.
⚠️
shell_execruns arbitrary commands on the host as the user that started the server. The bearer token is a root-equivalent credential. See Security before exposing the server.
Tools
| Tool | Description |
|---|---|
shell_exec |
Run any shell command — returns stdout, stderr, exit code |
read_file |
Read a file as text or base64 (binary fallback) |
write_file |
Write text or binary content to a file |
list_directory |
List files and directories, optionally recursive |
system_info |
OS, CPU, RAM, and GPU stats (NVIDIA GPUs via nvidia-smi; absent on non-GPU hosts) |
start_process |
Start a long-running command in the background — returns a PID |
get_process_output |
Poll stdout/stderr of a background process by PID, plus its exit code once it ends |
kill_process |
Terminate a process by PID |
download_file |
Download a URL directly to this machine |
take_screenshot |
Capture the whole desktop, every monitor, as an image sized for a vision model (screen coordinates) |
click |
Click at (x, y) in the screenshot — left / right / middle, single or multi-click |
move_mouse |
Move cursor to (x, y) in the screenshot, optionally animated |
type_text |
Type a string into the focused window |
press_key |
Press a single key or hotkey combo (e.g. enter, f11, ctrl+c, win+d) |
scroll |
Scroll the mouse wheel up or down, optionally at a specific point |
Requirements
- Python 3.10+
- Windows 10/11, or Linux with systemd (for autostart)
Install
On the machine you want to control:
git clone https://github.com/raghibrm/remote-pc-mcp
cd remote-pc-mcp
cp .env.example .env
Set a strong token in .env:
REMOTE_PC_MCP_TOKEN=your-long-random-token-here
Generate one:
# Windows
python -c "import secrets; print(secrets.token_hex(32))"
# Linux / macOS
openssl rand -hex 32
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"remote-pc": {
"type": "http",
"url": "http://YOUR_PC_IP_OR_HOSTNAME:8765/mcp",
"headers": {
"Authorization": "Bearer your-long-random-token-here"
}
}
}
}