Desktop Touch MCP logo

Desktop Touch MCP

by Harusame64

Automates Windows desktops through semantic UI discovery, verified actions, browser control, screenshots, terminals, and workspace tools.

Install Desktop Touch MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "harusame64-desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Harusame64/desktop-touch-mcp connects MCP clients to Windows 10/11 desktops for UI Automation, browser control, screenshots, keyboard and mouse input, clipboard access, terminal commands, and window management. Its discover-then-act workflow gives interactive entities short-lived leases, while perception checks verify the target window before input is sent. Reach for it when an agent must operate desktop applications such as Notepad, Excel, Chrome, Windows Terminal, or accessibility-blind interfaces. A limited four-tool macOS Apple Silicon preview is also available.

Use cases

  • Automate Windows application workflows through UI entities
  • Inspect and operate Chrome or Edge pages through CDP
  • Run terminal commands and read their output
  • Capture only changed or relevant screen regions
  • Execute Excel VBA macros through COM

Key features

  • Lease-based desktop discovery and verified actions
  • UIA, CDP, OCR, and Set-of-Marks inspection
  • Semantic action results with optional changed-region captures
  • Terminal, keyboard, mouse, clipboard, and window controls
  • Browser DOM, JavaScript, and application-state inspection
  • Encrypted credential autofill through Windows DPAPI

Tools23

What Desktop Touch MCP lets your agent do. Expand a tool for its parameters.

Self-reported~772 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @harusame64/desktop-touch-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars26Stargazers on the source repository.
npm downloads4.4kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Tools exposed23Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Desktop Touch MCP works

What Harusame64/desktop-touch-mcp does

Harusame64/desktop-touch-mcp exposes Windows desktop operations through MCP. It can inspect interactive controls, perform semantic actions such as clicking, typing, setting values, and selecting items, and report the resulting UI changes. The server also supports direct keyboard and mouse input, clipboard exchange, screenshots, scrolling, window focus and docking, application launch, terminal commands, browser automation, and Excel VBA execution.

The primary target is Windows 10 or 11 on 64-bit systems. A limited macOS 14+ Apple Silicon preview provides four tools, while the broader desktop automation feature set is designed for Windows.

How it works

desktop_discover observes the desktop and returns interactive entities associated with short-lived leases. desktop_act validates a lease before acting on the selected entity, then returns semantic changes such as new or removed elements, focus movement, modal state, and repaint information. If an action cannot safely reach its target, the server refuses it and reports the reason rather than claiming success.

UI Automation is the primary inspection path, with Chrome DevTools Protocol support for browser pages. OCR and Set-of-Marks visual detection provide fallbacks for interfaces without a usable accessibility tree, including games and remote desktop sessions. The native engine is implemented with Rust; PowerShell is used as a fallback when the native component is unavailable.

Perception guards can verify window identity and bounds before input is delivered. A registered perception lens can provide post-action feedback, reducing repeated screenshots and state checks. run_macro batches up to 50 operations into one MCP round trip.

Setup and configuration

Run the package with:

Terminal
npx -y @harusame64/desktop-touch-mcp

Add that command to an MCP client configuration. The launcher downloads and verifies the matching platform runtime, then caches it for later use. DESKTOP_TOUCH_MCP_HOME can change the cache directory.

Windows requires Node.js 20 or newer, PowerShell 5.1 or newer, and the .NET 10 Desktop Runtime for bundled OCR, Key Locker, and certain background console typing features. The Visual C++ Redistributable may be needed by native nut-js bindings. The claude command must also be available. Key Locker uses a local helper protected by Windows DPAPI and may trigger a SmartScreen or antivirus warning because the helper is unsigned.

Tools and capabilities

  • Inspect desktop state, workspace thumbnails, focus, active windows, cursor position, and attention signals.
  • Capture screenshots as UIA/OCR text, changed-frame diffs, native-resolution images, or background captures; saved images can be referenced through screenshot:// links.
  • Query and garbage-collect the on-disk screenshot cache.
  • Discover and act on UI entities, or use coordinate clicks and legacy UIA element clicks when needed.
  • Open browsers, interact with DOM elements, search page structure, execute JavaScript, and extract application state.
  • Run, read, and send terminal input with quiet, pattern, or exit-based completion modes.
  • Launch applications, focus or dock windows, send keyboard input, scroll, use the clipboard, and run Excel VBA.
  • Store credentials in the encrypted Key Locker for terminal autofill without exposing them to the assistant.

Limitations and notes

Visual and OCR fallbacks depend on the available .NET runtime. Windows Terminal background typing may require user elicitation through an MCP client, and some fallback input paths can lose repeated characters. Coordinate-based interaction remains available, but semantic discovery and lease validation are intended to reduce stale-coordinate and wrong-window failures. An emergency stop is triggered by holding the mouse within 10 pixels of the primary monitor's top-left corner for 500 milliseconds.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Desktop Touch MCP

Harusame64/desktop-touch-mcp is an MCP server that connects AI clients to Windows desktops and exposes tools for UI discovery, verified actions, screenshots, browser control, keyboard and mouse input, terminal commands, and window management. It uses UIA, CDP, OCR, and visual fallbacks to operate desktop applications.

Install it by adding `npx -y @harusame64/desktop-touch-mcp` to your MCP client configuration. The launcher downloads and verifies the matching runtime and caches it locally. Windows also needs Node.js 20+, PowerShell 5.1+, and the .NET 10 Desktop Runtime for several bundled features.

Yes, it works with Cursor through the standard MCP configuration. The package is launched with `npx -y @harusame64/desktop-touch-mcp`, allowing Cursor to use its desktop, browser, screenshot, terminal, and input tools.

Yes, it can use OCR and Set-of-Marks visual detection when UI Automation cannot expose an accessibility tree. The fallback returns spatial imagery and clickable elements with coordinates, supporting interfaces such as games and remote desktop sessions.

It checks the intended window's identity and bounds before delivering an action. Entity leases, perception guards, and optional lens-based post-action feedback help reject stale targets, blocked windows, and input that would not reach the requested field.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDesktop Touch MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/harusame64-desktop-touch-mcp?style=directory)](https://allmcps.com/mcp/harusame64-desktop-touch-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/harusame64-desktop-touch-mcp"><img src="https://allmcps.com/api/badge/harusame64-desktop-touch-mcp?style=directory" alt="Desktop Touch MCP on AllMCPs" /></a>