Claude KVM

io.github.ARAS-Workspace由 GitHub 帳號 ARAS-Workspace 發布v2.0.12更新於 Oct 27, 2026

MCP server — control remote desktops via VNC with a native Swift daemon and Apple Vision OCR

發布方自己的服務:Claude Platform Docs

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

讓助理透過 VNC 操控遠端桌面:擷取畫面、以 OCR 辨識文字,並送出滑鼠與鍵盤輸入。

可以做什麼
  • 擷取全螢幕 PNG、游標周邊裁切圖,或與已儲存的基準畫面比對以偵測變化
  • 以滑鼠點擊、雙擊、移動、懸停、微調、拖曳與捲動
  • 按下單一按鍵、執行組合鍵、逐字輸入文字,或透過剪貼簿貼上
  • 以裝置端 OCR 偵測畫面上的文字與邊界框,方便精準點擊
  • 在執行時調整時序與顯示縮放,等待、查看連線狀態,或關閉守護程序
適用情境
適合助理需要操作無法透過 API 存取的圖形桌面時,例如遠端 Mac 或實驗機,且需要看畫面、點擊或輸入。OCR 與畫面差異偵測可降低逐步操作 GUI 時的 token 消耗。
執行需求
在 Apple Silicon 的 macOS 上本機執行,需要 Node.js LTS,並另外安裝 claude-kvm-daemon 二進位檔(Homebrew tap)。需要可連線的 VNC 伺服器以及 VNC_HOST、VNC_PORT、CLAUDE_KVM_DAEMON_PATH 設定;使用密碼或 Apple 遠端桌面驗證時還需 VNC_USERNAME 與 VNC_PASSWORD。僅支援桌面端。
安裝前請注意
此伺服器持有 VNC 憑證(VNC_USERNAME、VNC_PASSWORD),並能對遠端機器送出真實的滑鼠與鍵盤輸入,因此助理的操作會實際發生,包括在已登入的工作階段中輸入內容。該桌面的截圖與 OCR 文字會傳給模型。只連線你有權控制的機器,並優先使用通道或隔離網路。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Claude KVM,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Claude KVM]

Claude KVM

Remote Access, Artificial Intelligence

claude-kvm.ai

Claude KVM is an MCP tool that controls remote desktop environments over VNC. It consists of a thin JS proxy layer (MCP server) and a platform-native Swift VNC daemon running on your macOS system.

[Claude KVM Demo] [Claude KVM Demo Mac]

[!TIP] Phantom-WG could be a great alternative for you. Isolate your VNC server within your own network while enjoying self-hosted VPN performance with the extra privacy features you gain along the way.

Live Test Runs

[!NOTE] Tests are conducted transparently on GitHub Actions — each step is visible in the CI environment. At the end of every test, whether the integration passes or fails, you'll find screenshots of each step the agent took during the session, along with an .mp4 video recording that captures the entire session. By reviewing these recordings and screenshots, you can observe how the agent progressed through each stage, how long the task took, and what decisions were made based on the system prompt. You can use these examples as a reference when crafting your own system prompts or instructions for the MCP server in your own environment.

[!WARNING] Artifacts attached to these runs may have expired due to GitHub's artifact retention policy. Persistent copies are prepared via the Persist Artifacts workflow and can always be accessed by run ID from the artifacts/ directory on the press-kit branch.

Architecture

mermaid
graph TB    subgraph MCP["MCP Client (Claude)"]        AI["Claude"]    end
    subgraph Proxy["claude-kvm · MCP Proxy (stdio)"]        direction TB        Server["MCP Server<br/><code>index.js</code>"]        Tools["Tool Definitions<br/><code>tools/index.js</code>"]        Server --> Tools    end
    subgraph Daemon["claude-kvm-daemon · Native VNC Client (stdin/stdout)"]        direction TB        CMD["Command Handler<br/><i>PC Dispatch</i>"]        Scale["Display Scaling<br/><i>Scaled ↔ Native</i>"]
        subgraph Screen["Screen"]            Capture["Frame Capture<br/><i>PNG · Crop · Diff</i>"]            OCR["OCR Detection<br/><i>Apple Vision</i>"]        end
        subgraph InputGroup["Input"]            Mouse["Mouse<br/><i>Click · Drag · Move · Scroll</i>"]            KB["Keyboard<br/><i>Tap · Combo · Type · Paste</i>"]        end
        VNC["VNC Bridge<br/><i>LibVNCClient 0.9.15</i>"]
        CMD --> Scale        Scale --> Capture        Scale --> Mouse        Scale --> KB        Capture -.->|"framebuffer"| VNC        Mouse -->|"pointer events"| VNC        KB -->|"key events"| VNC    end
    subgraph Target["Target Machine"]        VNC_Server["VNC Server<br/><i>:5900</i>"]        Desktop["Desktop Environment"]        VNC_Server --> Desktop    end
    AI <-->|"stdio<br/>JSON-RPC"| Server    Server <-->|"stdin/stdout<br/>PC (NDJSON)"| CMD    VNC <-->|"RFB Protocol<br/>TCP :5900"| VNC_Server
    classDef proxy fill:#1a1a2e,stroke:#16213e,color:#e5e5e5    classDef daemon fill:#0f3460,stroke:#533483,color:#e5e5e5    classDef target fill:#1a1a2e,stroke:#e94560,color:#e5e5e5
    class Server,Tools proxy    class CMD,Scale,VNC,Capture,Mouse,KB daemon    class VNC_Server,Desktop target

Layers

LayerLanguageRoleCommunication
MCP ProxyJavaScript (Node.js)Communicates with Claude over MCP protocol, manages daemon lifecyclestdio JSON-RPC
VNC DaemonSwift/C (Apple Silicon)VNC connection, screen capture, mouse/keyboard input injectionstdin/stdout PC (NDJSON)

PC (Procedure Call) Protocol

Communication between the proxy and daemon uses the PC protocol over NDJSON:

Request:      {"method":"<name>","params":{...},"id":<int|string>}Response:     {"result":{...},"id":<int|string>}Error:        {"error":{"code":<int>,"message":"..."},"id":<int|string>}Notification: {"method":"<name>","params":{...}}

Coordinate Scaling

The VNC server's native resolution is scaled down to fit within --max-dimension (default: 1280px). Claude works more consistently with scaled coordinates — the daemon handles the conversion in the background:

Native:  4220 x 2568  (VNC server framebuffer)Scaled:  1280 x 779   (what Claude sees and targets)
mouse_click(640, 400) → VNC receives (2110, 1284)

Screen Strategy

Claude minimizes token cost with a progressive verification approach:

diff_check       →  changeDetected: true/false     ~5ms    (text only, no image)detect_elements  →  OCR text + bounding boxes      ~50ms   (text only, no image)cursor_crop      →  crop around cursor              ~50ms   (small image)screenshot       →  full screen capture             ~200ms  (full image)

detect_elements uses Apple Vision framework for on-device OCR. Returns text content with bounding box coordinates in scaled space — enables precise click targeting without consuming vision tokens.


Installation

Requirements

  • macOS (Apple Silicon / aarch64)
  • Node.js (LTS)

Daemon

bash
brew tap ARAS-Workspace/tapbrew install claude-kvm-daemon

[!NOTE] claude-kvm-daemon is compiled and code-signed via CI (GitHub Actions). The build output is packaged in two formats: a .tar.gz archive for Homebrew distribution and a .dmg disk image for notarization. The DMG is submitted to Apple servers for notarization within the same workflow — the process can be tracked from CI logs. The notarized DMG is available as a CI Artifact; the archived .tar.gz is also published as a release on the repository. Homebrew installation tracks this release.

MCP Configuration

Create a .mcp.json file in your project directory:

json
{  "mcpServers": {    "claude-kvm": {      "command": "npx",      "args": ["-y", "claude-kvm"],      "env": {        "VNC_HOST": "192.168.1.100",        "VNC_PORT": "5900",        "VNC_USERNAME": "user",        "VNC_PASSWORD": "pass",        "CLAUDE_KVM_DAEMON_PATH": "/opt/homebrew/bin/claude-kvm-daemon",        "CLAUDE_KVM_DAEMON_PARAMETERS": "-v"      }    }  }}

[!NOTE] The tool is end-to-end tested via CI — Claude executes tasks over VNC while an independent vision model observes and verifies the results. See the Integration Test for live workflow runs, system prompts, and demo recordings.

Configuration

MCP Proxy (ENV)
ParameterDefaultDescription
VNC_HOST127.0.0.1VNC server address
VNC_PORT5900VNC port number
VNC_USERNAMEUsername (required for ARD)
VNC_PASSWORDPassword
CLAUDE_KVM_DAEMON_PATHclaude-kvm-daemonDaemon binary path (not needed if already in PATH)
CLAUDE_KVM_DAEMON_PARAMETERSAdditional CLI arguments for the daemon
Daemon Parameters (CLI)

Additional arguments passed to the daemon via CLAUDE_KVM_DAEMON_PARAMETERS:

"CLAUDE_KVM_DAEMON_PARAMETERS": "--max-dimension 800 -v"
ParameterDefaultDescription
--max-dimension1280Maximum display scaling dimension (px)
--connect-timeoutVNC connection timeout (seconds)
--bits-per-sampleBits per pixel sample
--no-reconnectDisable automatic reconnection
-v, --verboseVerbose logging (stderr)
Runtime Configuration (PC)

All timing and display parameters are configurable at runtime via the configure method. Use get_timing to inspect current values.

Set timing:

json
{"method":"configure","params":{"click_hold_ms":80,"key_hold_ms":50}}
json
{"result":{"detail":"OK — changed: click_hold_ms, key_hold_ms"}}

Change display scaling:

json
{"method":"configure","params":{"max_dimension":960}}
json
{"result":{"detail":"OK — changed: max_dimension","scaledWidth":960,"scaledHeight":584}}

Reset to defaults:

json
{"method":"configure","params":{"reset":true}}
json
{"result":{"detail":"OK — reset to defaults","timing":{"click_hold_ms":50,"combo_mod_ms":10,"cursor_crop_radius":150,"double_click_gap_ms":50,"drag_min_steps":10,"drag_pixels_per_step":20,"drag_position_ms":30,"drag_press_ms":50,"drag_settle_ms":30,"drag_step_ms":5,"hover_settle_ms":400,"key_hold_ms":30,"max_dimension":1280,"paste_settle_ms":30,"scroll_press_ms":10,"scroll_tick_ms":20,"type_inter_key_ms":20,"type_key_ms":20,"type_shift_ms":10},"scaledWidth":1280,"scaledHeight":779}}

Get current values:

json
{"method":"get_timing"}
json
{"result":{"timing":{"click_hold_ms":80,"combo_mod_ms":10,"cursor_crop_radius":150,"double_click_gap_ms":50,"drag_min_steps":10,"drag_pixels_per_step":20,"drag_position_ms":30,"drag_press_ms":50,"drag_settle_ms":30,"drag_step_ms":5,"hover_settle_ms":400,"key_hold_ms":50,"max_dimension":1280,"paste_settle_ms":30,"scroll_press_ms":10,"scroll_tick_ms":20,"type_inter_key_ms":20,"type_key_ms":20,"type_shift_ms":10},"scaledWidth":1280,"scaledHeight":779}}
ParameterDefaultDescription
max_dimension1280Max screenshot dimension
cursor_crop_radius150Cursor crop radius (px)
click_hold_ms50Click hold duration
double_click_gap_ms50Double-click gap delay
hover_settle_ms400Hover settle wait
drag_position_ms30Pre-drag position wait
drag_press_ms50Drag press hold threshold
drag_step_ms5Between interpolation pts
drag_settle_ms30Settle before release
drag_pixels_per_step20Point density per pixel
drag_min_steps10Min interpolation steps
scroll_press_ms10Scroll press-release gap
scroll_tick_ms20Inter-tick delay
key_hold_ms30Key hold duration
combo_mod_ms10Modifier settle delay
type_key_ms20Key hold during typing
type_inter_key_ms20Inter-character delay
type_shift_ms10Shift key settle
paste_settle_ms30Post-clipboard write wait

Tools

All operations are performed through a single vnc_command tool:

Screen

ActionParametersDescription
screenshotFull screen PNG capture
cursor_cropCrop around cursor with crosshair overlay
diff_checkDetect screen changes against baseline
set_baselineSave current screen as diff reference

Mouse

ActionParametersDescription
mouse_clickx, y, button?Click (left|right|middle)
mouse_double_clickx, yDouble click
mouse_movex, yMove cursor
hoverx, yMove + settle wait
nudgedx, dyRelative cursor movement
mouse_dragx, y, toX, toYDrag from start to end
scrollx, y, direction, amount?Scroll (up|down|left|right)

Keyboard

ActionParametersDescription
key_tapkeySingle key press (enter|escape|tab|space|...)
key_combokey or keysModifier combo ("cmd+c" or ["cmd","shift","3"])
key_typetextType text character by character
pastetextPaste text via clipboard

Detection

ActionParametersDescription
detect_elementsOCR text detection with bounding boxes (Apple Vision)

Returns text elements with bounding box coordinates in scaled space:

json
{"method":"detect_elements"}
json
{"result":{"detail":"13 elements","elements":[{"confidence":1,"h":9,"text":"Finder","w":32,"x":37,"y":6},{"confidence":1,"h":9,"text":"File","w":15,"x":84,"y":6},{"confidence":1,"h":9,"text":"Edit","w":19,"x":112,"y":6},{"confidence":1,"h":9,"text":"View","w":22,"x":143,"y":6},{"confidence":1,"h":11,"text":"Go","w":15,"x":179,"y":6},{"confidence":1,"h":9,"text":"Window","w":35,"x":207,"y":6},{"confidence":1,"h":11,"text":"Help","w":22,"x":255,"y":6},{"confidence":1,"h":11,"text":"8•","w":26,"x":1161,"y":6},{"confidence":1,"h":9,"text":"Fri Feb 20 22:19","w":80,"x":1189,"y":6},{"confidence":1,"h":9,"text":"Assets","w":32,"x":1202,"y":97},{"confidence":1,"h":9,"text":"Passwords.kdbx","w":74,"x":1181,"y":168},{"confidence":1,"h":93,"text":"PHANTOM","w":633,"x":322,"y":477},{"confidence":1,"h":32,"text":"YOUR SERVER, YOUR NETWORK, YOUR PRIVACY","w":629,"x":325,"y":568}],"scaledHeight":717,"scaledWidth":1280}}

Configuration

ActionParametersDescription
configure{<params>}Set timing/display params at runtime
configure{reset: true}Reset all params to defaults
get_timingGet current timing + display params

Control

ActionParametersDescription
waitms?Wait (default 500ms)
healthConnection status + display info
shutdownGraceful daemon shutdown

Authentication

Supported VNC authentication methods:

  • VNC Auth — password-based challenge-response (DES)
  • ARD — Apple Remote Desktop (Diffie-Hellman + AES-128-ECB)

macOS is auto-detected via the ARD auth type 30 credential request. When detected, Meta keys are remapped to Super (Command key compatibility).


[MCP Badge]

[!NOTE] Running on a bare-metal Mac? See the Mac M1 Preparation Tricks for VNC hardening, SSH tunneling, and session stability tips.


"Claude" is a trademark of Anthropic, PBC. This project is not affiliated with or endorsed by Anthropic.

Copyright (c) 2026 Riza Emre ARAS — MIT License

來源:README.md,提交 0b4669e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.0.12最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Claude 整合