Skip to content
MCP server

Desktop Touch MCP

Windows desktop control for MCP clients: UI Automation, screenshots, Chrome CDP and input

Runs locally

Desktop Touch MCP is an open-source MCP server for browser automation. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
Windows, macOS, CLI
Runs
Locally
What it can do
Can change data (1 tool)
Version
2.4.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "desktop-touch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@harusame64/desktop-touch-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DESKTOP_TOUCH_AUTO_GUARDSet to '0' to disable automatic action guards (reverts to v0.11.12 behavior).
  • DESKTOP_TOUCH_PERCEPTION_RESOURCESSet to '1' to enable MCP perception resources.
  • DESKTOP_TOUCH_PERCEPTION_IDLE_MSIdle ms before the WinEvent sidecar enters dormancy (default 60000).
  • DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLESet to '1' to keep the WinEvent sidecar always running (no auto-dormancy).
  • DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLESet to '1' to disable the JSONL diagnostic event log (issue #365 Phase 2).
  • DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATHOverride path for the diagnostic event log.
  • DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTESSize in bytes at which the diagnostic event log rolls over to diagnostic.log.1 (default 67108864 = 64 MiB). Two rolled generations are kept. Values below 1 MiB are raised to 1 MiB and values above 1 GiB are lowered to 1 GiB; anything that is not a positive whole number falls back to the default, so a typo cannot disable rotation in either direction.
  • DESKTOP_TOUCH_RESOLVE_LOG_RAWSet to '1' to record window titles and title queries in clear in the diagnostic event log. Off by default: titles are recorded as a short hash plus their length, because a title can contain a file name, a mail subject, or a browser page title.

About Desktop Touch MCP

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.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

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_macroName 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

What it does

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

Pricing

Open source

MIT licensed; free

Desktop Touch MCP 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.

How AIPoweredBot checks servers