Skip to main content
Glama
Stillhand
by hanyi-code

Stillhand

Background desktop automation for Windows, macOS and Linux, over MCP.

简体中文 · API reference · Contributing

Stillhand lets an MCP client discover application windows, inspect controls, click, fill fields, scroll and send window-directed keyboard input. It uses native operating-system adapters and keeps observation, target resolution, input and readback together in one queued step.

Background by default

  • Mouse actions use targeted background routes without moving the system pointer.

  • Default keyboard input stays in the background. Foreground input must be explicitly selected within the authorized task; it is never an automatic fallback.

  • Hidden or minimized windows are not automatically shown or restored to expose a target.

  • Task authorization is delegated to the trusted MCP host, without extra application/action prompts by default. Unavailable background routes stop with a reason; uncertain input is never automatically replayed.

Control availability depends on the application, desktop session and OS permissions. Support for an operating system does not imply compatibility with every application. See platform compatibility.

Related MCP server: Desktop Pilot MCP

Getting started

Requires Node.js 22+, an interactive desktop session and a trusted MCP client supporting stdio.

Platform

Native prerequisites

Windows

System .NET Framework 4 compiler/runtime; UI Automation

macOS

Xcode Command Line Tools; Accessibility and event-posting permission

Linux

Python 3, PyGObject and AT-SPI 2; Xlib for supported X11 keyboard routes

Windows and macOS helpers are compiled from the included source on first use and cached locally. Linux uses system accessibility bindings. Stillhand does not install system prerequisites automatically.

git clone https://github.com/hanyi-code/stillhand.git
cd stillhand

Add the service to your MCP client's configuration, replacing the script path with your actual location:

{
  "mcpServers": {
    "stillhand": {
      "command": "node",
      "args": ["/absolute/path/to/stillhand/server.mjs"]
    }
  }
}

Use your client's configuration format and restart or reload its MCP connection. Start with devices, then windows and observe. Run only tasks you have authorized through that client. Set STILLHAND_APPROVAL_POLICY=prompt for additional application and foreground-operation prompts; this optional mode requires MCP elicitation support.

The optional Stillhand skill describes the agent workflow. The native adapter guide covers prerequisites, permissions and custom executor configuration.

Tools

Tool

Purpose

devices

Check configured devices and native readiness

windows

Discover live application windows

observe

Read controls and state from an exact window

click

Invoke a selected control through an admitted background route

fill

Replace a field value and verify the observed value

scroll

Scroll a selected surface through an admitted background route

perform

Observe, locate, act and read back in one queued step

keyboard

Send keys, shortcuts or text to an exact window

For concurrent workflows, use perform with an exact window and a unique selector taken from observed UI. One desktop serializes complete steps; distinct physical devices have independent queues. Workflows sharing an application or dialog still need a single owner.

A verified result confirms a specific check, not an entire business task. After an uncertain outcome, inspect current state before sending further input. See the API reference for targeting, keyboard policies, outcomes and cancellation.

Contribute

Bug reports, documentation improvements and focused pull requests are welcome. Read CONTRIBUTING.md before opening a PR. Report security vulnerabilities through the security policy.

Changelog · Maintainer guide · MIT license · Third-party notices

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients on Windows 10/11 to control an interactive desktop through screenshots, mouse and keyboard actions, window management, UI Automation, clipboard access, and multi-display switching. Supports batched actions, application access controls, and visual or text-based desktop interaction.
      33 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to inspect and automate Windows applications in the background by reading UIA accessibility trees, capturing screenshots, and performing clicks or typing without moving the real cursor or stealing focus. It also supports a hidden sandbox desktop with a corner projection window and message-injected input for isolated, visible automation.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to inspect Windows UI Automation controls, click, type, send keys, scroll, launch apps/URLs/files, list and switch windows, capture screenshots for vision models, and wait, so agents can operate the Windows desktop.
      84 PyPI
      MIT