# Desktop Touch MCP

> Desktop Touch MCP is an open-source MCP server for browser automation. Windows desktop control for MCP clients: UI Automation, screenshots, Chrome CDP and input. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Windows, macOS, CLI
- **Repository:** https://github.com/harusame64/desktop-touch-mcp
- **MCP Registry name:** io.github.Harusame64/desktop-touch-mcp
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Instead of guessing pixel coordinates, the agent first calls desktop_discover, which returns interactive elements with short-lived leases, then desktop_act operates on what was meant. Before input lands, per-action perception guards check the target window's identity and bounds, so typing into the wrong window or clicking stale coordinates is caught. An action that cannot be done is refused with a reason and a next step rather than reported as done, and an action aimed by window handle never reaches another window with the same title.

UI Automation is read through a native Rust addon, with a PowerShell fallback. Where the accessibility tree is blind, such as games or remote sessions, it falls back to OCR and numbered Set-of-Marks overlays. Chrome pages are reachable through CDP. Screenshot modes trade detail for tokens, run_macro batches operations in one call, and a key locker fills SSH and sudo passwords from a DPAPI-encrypted store without showing them to the assistant.

It targets Windows 10 and 11 and needs a .NET 10 desktop runtime for OCR and the key locker helpers. macOS on Apple Silicon is a limited preview with four tools. Moving the mouse to the top-left corner for half a second triggers an emergency stop.

## Features

- **Discover then act:** Targets elements through leases instead of raw coordinates.
- **Perception guards:** Verifies the window before each input to stop wrong-window typing.
- **OCR fallback:** Uses Set-of-Marks overlays when UI Automation cannot see an app.
- **Key locker:** Autofills SSH and sudo passwords from an encrypted local store.
- **Token-saving screenshots:** Offers image, text and diff modes to cut token use.
- **Failsafe stop:** Parking the mouse in the top-left corner halts actions.

## Good for

- Let an assistant drive Notepad, Excel or Windows Terminal
- Automate a Chrome page through CDP and UI Automation
- Operate games or remote sessions with no accessibility tree
- Batch several GUI steps into one macro call
- Type into Word's body from an agent

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add desktop-touch-mcp -- npx -y @harusame64/desktop-touch-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add desktop-touch-mcp -- npx -y @harusame64/desktop-touch-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.desktop-touch-mcp]
command = "npx"
args = ["-y", "@harusame64/desktop-touch-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user desktop-touch-mcp npx -- -y @harusame64/desktop-touch-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools changes data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `desktop_discover`: Returns interactive entities with short-lived leases
- `desktop_act`: Acts on a discovered target and reports what changed
- `run_macro` (name suggests: changes): Batches multiple operations into one call
- `mouse_click`: Clicks at coordinates, with origin and scale conversion
- `key_locker`: Saves credentials and launches a console that autofills them
- `window_dock`: Docks a window to a screen corner

## FAQ

### Which platforms does Desktop Touch MCP support?

Windows 10 and 11 fully; macOS 14 on Apple Silicon is a limited preview with four tools.

### How is Desktop Touch MCP run?

With npx -y @harusame64/desktop-touch-mcp, as a stdio server.

### What does Desktop Touch MCP need besides Node?

The .NET 10 Desktop Runtime for OCR and the key locker; PowerShell 5.1 is the fallback engine.

### What licence is Desktop Touch MCP under?

The README says MIT.

### Is Desktop Touch MCP free?

Yes. Desktop Touch MCP is open source, so you can use and self-host it for free.

### How do I add Desktop Touch MCP to Claude Code?

Run this command in your terminal: claude mcp add desktop-touch-mcp -- npx -y @harusame64/desktop-touch-mcp

### What are the best alternatives to Desktop Touch MCP?

The closest alternatives to Desktop Touch MCP are REA, Browser Use, Scrapling MCP Server, Context7 and Chrome DevTools MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser Use is a freemium MCP server for browser automation.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/desktop-touch-mcp
