跳到正文
FunCoding

Ghost

官方 MCP Registry 已收录

Verified desktop control for agents on Windows and Linux: apps with no API, windows, shell, browser.

Star
30
分类
浏览器
版本
v0.24.8
许可证
MIT
最近提交
2026年11月29日
Ghost: AI agents use the apps on your computer, in the background. Every action verified.

Quick start

Install · Connect · Try it · Safety · Docs

CI Release License: MIT

The result first: an invoice-approval app whose Status field reads Approved for invoice INV-2041, and ghost_assert returning passed: true, value: Approved, with the user's foreground window recording 0 changes. Then the run from the start: Ghost opens the app on its hidden desktop, types INV-2041 into the Invoice field and clicks Approve, each action returning verified: true with focus and cursor preserved.

An agent approved invoice INV-2041 in a desktop app and proved it, while the app stayed on Ghost's hidden desktop, never on your screen. Recorded with Ghost 0.24.8, not drawn: recording script.

Ghost is an MCP server, a CLI and a local REST API. It gives an agent the operating system's own control surface: the windows and controls of any app, including the ones with no API, plus the shell and the browser you are already signed into.

It reads apps through the OS accessibility layer (UI Automation on Windows, AT-SPI2 on Linux), so the agent gets real buttons and fields with names, not pixels to guess at.

Two promises, measured

It does not take your screen. Agents click, type and scroll inside apps while you keep working in another window. Apps Ghost starts run on a hidden desktop you never see, and the focus policy is locked so an agent cannot decide to take your mouse; only you can unlock it, in the server's config.

Every action is verified. After acting, Ghost re-reads the control or the screen and returns verified: true only when the change really happened; a call it cannot complete fails with an error that says why.

Measured: 1 in about 2,950 keystrokes a person typed during six agent runs left their window. 0 focus losses in a 160-action soak, and 0 unverified results in that soak. 14 of 14 benchmark tasks passed when scored by re-observing the app.

How these were measured: background mode (including the one keystroke that strayed) and benchmarks. To check both claims on your own hardware, run the ghost verify command from step 3; it exits non-zero if a claim does not hold. And you stay in charge: see the safety model.

Quick start

Three steps: install, connect your client, try it.

1. Install

Runs on Windows 10 (build 19041+) and 11, and Linux x86_64 (X11 verified, Wayland not yet). No macOS yet: see platform support.

Pick one route: Claude Desktop (no terminal), Windows or Linux.

Claude Desktop

One click: from the latest release, download the bundle for your system and open it in Settings > Extensions > Install from file. Done; skip to step 3.

  • Windows: ghost-windows-x64.mcpb
  • Linux: ghost-linux-x86_64.mcpb
Windows

In PowerShell:

$raw = "https://raw.githubusercontent.com" +
  "/NORTHTEKDevs/ghost/main/scripts"
irm "$raw/install-windows.ps1" | iex
Linux

On x86_64:

repo=https://github.com/NORTHTEKDevs/ghost
dl=$repo/releases/latest/download
mkdir -p ghost && cd ghost
curl -L $dl/ghost-linux-x86_64.tar.gz |
  tar -xz && ./install.sh

Open a new terminal afterwards so ghost is found. On Wayland, read platform support first.

What the installers do

With no administrator rights, both installers:

  • copy the three programs into place: on Windows into %LOCALAPPDATA%\Programs\ghost, added to your PATH, after checking the download's SHA-256 (read the script); on Linux into ~/.local/bin, turning on the desktop accessibility setting;
  • register Ghost with Claude Code, if the claude CLI is installed;
  • finish with ghost doctor, which reports PASS, WARN or FAIL for everything Ghost needs.
Other ways to install

By hand on Windows, which is what the installer does minus the checksum and the Claude Code registration:

$dir = "$env:LOCALAPPDATA\Programs\ghost"
$dl = "https://github.com/NORTHTEKDevs" +
  "/ghost/releases/latest/download"
iwr "$dl/ghost-windows-x64.zip" `
  -OutFile ghost.zip
Expand-Archive ghost.zip $dir -Force
Get-ChildItem $dir | Unblock-File
& "$dir\ghost.exe" doctor

Then add $dir to your user PATH. Checksums, provenance, SmartScreen and building from source: install guide.

2. Connect your client

Claude Code is already connected if the claude CLI was installed when you ran the installer. To check, or to add it yourself:

claude mcp list

Windows (PowerShell):

$exe = "$env:LOCALAPPDATA\Programs" +
  "\ghost\ghost-mcp.exe"
claude mcp add ghost -s user -- $exe

Linux:

claude mcp add ghost -s user \
  -- "$HOME/.local/bin/ghost-mcp"
Other clients: Claude Desktop, Cursor, VS Code, Codex CLI, Windsurf, Cline

They take the full path to ghost-mcp in a JSON or TOML file. The examples use the Windows path; on Linux it is /home/YOU/.local/bin/ghost-mcp. Replace YOU, or print the exact path with the last item.

Claude Desktop (without the bundle)

Add to %APPDATA%\Claude\claude_desktop_config.json, then restart Claude Desktop:

{
  "mcpServers": {
    "ghost": { "command": "C:/Users/YOU/AppData/Local/Programs/ghost/ghost-mcp.exe" }
  }
}
Cursor

Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "ghost": { "command": "C:/Users/YOU/AppData/Local/Programs/ghost/ghost-mcp.exe" }
  }
}
VS Code (Copilot agent mode)

Add to .vscode/mcp.json:

{
  "servers": {
    "ghost": { "type": "stdio", "command": "C:/Users/YOU/AppData/Local/Programs/ghost/ghost-mcp.exe" }
  }
}
Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.ghost]
command = "C:/Users/YOU/AppData/Local/Programs/ghost/ghost-mcp.exe"
Windsurf, Cline, or any other MCP client

Register ghost-mcp as a stdio server with no arguments. Most clients take this shape:

{
  "mcpServers": {
    "ghost": { "command": "C:/Users/YOU/AppData/Local/Programs/ghost/ghost-mcp.exe" }
  }
}

Registry-aware clients can also install io.github.NORTHTEKDevs/ghost from the MCP registry.

Print the path to paste

Windows (PowerShell):

$exe = "$env:LOCALAPPDATA\Programs" +
  "\ghost\ghost-mcp.exe"
$exe.Replace('\', '/')

Linux: readlink -f ~/.local/bin/ghost-mcp

3. Try it

Restart your client so it picks up the server. Its tool list should now show the ghost_* tools (54 on Windows); if it does not, see troubleshooting. Then ask your agent something like:

Use Ghost to list my open windows, then read the text of the one I'm working in and summarise it.

To check the whole background-and-verify loop on your machine:

ghost verify

How an agent uses it

The loop: look with ghost_see, which reads every control's name, role and state; act with ghost_act, which clicks and types in the background; confirm with verified: true, returned only when the change shows. Then back to look.

The loop is look, act, confirm:

  1. ghost_see window="Invoice Editor" returns every control in the window with its name, role, state and position. mode=text returns the readable text instead, about ten times cheaper than an image.
  2. ghost_act name="Save" action="click" drives the control in the background and returns verified: true only when the change shows.
  3. ghost_screenshot returns pixels when a chart or canvas needs the model's own eyes.

Around that loop: ghost_window launches, lists and closes windows (on the hidden desktop by default), ghost_wait and ghost_assert turn "did it work" into a check, ghost_shell runs builds, git and scripts, and the ghost_browser_* / ghost_tab_* tools drive browser tabs over the DevTools protocol. All 54 tools with every parameter: tool reference.

Not using an agent? The same engine is a CLI and a local REST API:

ghost list-windows
ghost click --name "Save"
ghost-http --addr 127.0.0.1:7878
curl http://127.0.0.1:7878/list-windows

Window anchoring, what every response promises, intents (JSON flows with retries and conditions), the HTTP API and the Rust SDK: using Ghost. Runnable scripts: examples.

Safety model

Anything that can reach a Ghost server can control the desktop as you, so Ghost is built around who can reach it, what an agent may do, and how you take control back.

You keep control. Stop: Ctrl+Alt+G halts every acting call, everywhere. Resume: ghost reset, and only you can; an agent's reset is refused. Your mouse: locked, agents stay in the background.

  • Emergency stop. Ctrl+Alt+G halts every acting call in every Ghost process, releases held keys and ends programs Ghost's shells started. Read-only calls keep answering.
  • Human-only resume. Only you can lift a stop you raised: type ghost reset in a terminal, or press Ctrl+Alt+Shift+G on the real keyboard. An agent's ghost_reset is refused.
  • Background lock. The focus policy is locked to background, so an agent cannot take your mouse, keyboard or foreground window. Only the operator unlocks it, with GHOST_FOCUS_LOCK=off.
  • Shell switch. ghost_shell is on by default and has your account's rights. GHOST_SHELL=off refuses it and blocks launching shells and script hosts; GHOST_LAUNCH_ALLOW turns launching into an allowlist.
  • SSRF guard. ghost_http_get and ghost_http_post resolve the host first, refuse loopback, private, link-local and reserved addresses, and ignore proxy settings. Browser tabs accept http(s) only.
  • Stop scopes. ghost_stop scope=process stops one server; everywhere (the default) stops them all. An unknown scope is rejected.
  • Local transports only. ghost-mcp speaks stdio and opens no port. ghost-http binds loopback only and refuses requests from web pages.
  • Nothing leaves your machine. No telemetry and no vision API key: your agent's own model reads what Ghost returns. The only outbound traffic is the optional vision tier, to an endpoint you configure.

Details and limits: security model. How background control works and what was measured: background mode.

Platform support

PlatformStatus
WindowsFull and verified on 10 (build 19041+) and 11. UI Automation, posted window messages, hidden desktops, DXGI/GDI capture.
Linux X11Functional, verified by live CI tests against a real GTK app. AT-SPI2, XTEST, X11 capture.
Linux WaylandImplemented, not yet verified on hardware. Same AT-SPI2 layer; input and capture through portals or uinput. Run ghost doctor first and please file what you find.
macOSNot yet. A compiling scaffold with an implementation map.

The focus policy and hidden desktops are Windows features. The browser tools need a Chromium-family browser (Chrome, Edge, Brave or Comet). Full matrix: cross-platform; Linux setup: Fedora and other distros.

Troubleshooting

Windows shows Windows protected your PC

The binaries are not code-signed yet. Choose More info, then Run anyway, or verify the download first.

The shell says ghost: command not found

Open a new terminal after installing. On Linux, add ~/.local/bin to your PATH; the installer prints the line to add.

No ghost_* tools appear in the client

Use an absolute path to ghost-mcp and restart the client. To check the binary itself:

ghost-mcp --version
A call fails with element not found

The error lists the closest names in that window. ghost_see with window= set shows every control and its name.

A call fails with focus policy is locked

By design: that action would take your screen. Let Ghost start the app (ghost_window op=launch) or the browser (ghost_browser_launch) and drive it there.

A call fails with the human stopped Ghost

Someone pressed the emergency stop. Resume with Ctrl+Alt+Shift+G, or in a terminal:

ghost reset
Linux windows show no elements

Turn on the accessibility bus (step 1) and restart the apps. ghost doctor checks this.

An antivirus quarantined Ghost

See the antivirus notes.

Still stuck? Run ghost doctor and open an issue with its output.

FAQ

Which apps can it drive? Anything that exposes accessibility: native Win32, WinForms, WPF, UWP/WinUI, Electron, Chromium, Qt and GTK. Canvas-only apps (games, remote desktops) expose little, so the agent relies on screenshots there.

How is this different from Playwright or Computer Use? Playwright drives web pages; Ghost drives the desktop (and tabs too). Screenshot-based computer use guesses coordinates from pixels and takes your screen; Ghost acts on named controls in the background and verifies each action. See the comparison.

Can several agents use it at once? Yes. Calls run in parallel, and a second Ghost process runs alongside the first without contending for the mouse.

How do I update? Quit your MCP client, then run the installer from step 1 again. To remove Ghost, see uninstall.

More

Pull requests: CONTRIBUTING.md. Vulnerabilities go through SECURITY.md, not public issues. MIT, copyright 2026 Northtek.

Ghost is a general-purpose automation tool. Use it on systems you own or are authorized to automate, and within the terms of the software you drive.

同类 MCP Server

browser-use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

BRbrowser-use/browser-use122k近 7 天新增 560 个 star

精选

Chrome DevTools MCP

检查页面、分析性能,查看网络请求和控制台。

CHChromeDevTools/chrome-devtools-mcp60k近 7 天新增 932 个 star

PostHog MCP Server

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

POPostHog/posthog41k近 7 天新增 202 个 star

官方

playwright-mcp

Playwright Tools for MCP

MImicrosoft/playwright-mcp40k近 7 天新增 290 个 star

Skyvern

AI-powered browser automation — navigate, click, fill forms, and extract data from any website.

SKSkyvern-AI/skyvern24k近 7 天新增 74 个 star

SeleniumBase

📊 Python APIs for Web Automation, Testing, and Scraping. CDP Mode launches a stealth browser that bypasses bot-detection/CAPTCHAs. Has a stealth mode for Playwright. Includes an MCP server for AI agents.

SEseleniumbase/SeleniumBase13k近 7 天新增 19 个 star