Skip to main content
Glama

Winsight

A local MCP server for Windows desktop automation through compact text observations.

Windows 10/11 Python 3.10+ MIT License

Winsight is a local Model Context Protocol (MCP) server. It lets an AI agent inspect and operate Windows apps through Windows UI Automation, the accessibility interface used by screen readers. Instead of identifying every button from an image, the agent receives controls it can address directly:

w1 "Calculator" CalculatorApp.exe
e1 button "Clear"
e2 button "Seven"
e3 text "Display is 0"

After an action, Winsight returns changed elements. For longer tasks, the agent can submit several steps in one call and check the resulting UI state. Screenshots and OCR are available when an app's accessibility tree is insufficient.

Installation

You need Windows 10/11, Python 3.10+ and an MCP client that can launch a local process. Use a normal signed-in desktop account.

git clone https://github.com/hegdeadithyak/winsight-mcp.git
cd winsight-mcp
py -3 scripts/setup_agent.py --client codex

The setup command installs into an isolated environment, runs machine checks and prints configuration for your client. It does not edit client settings. Merge the printed configuration, restart the MCP connection and give your agent AGENTS.md and the skill.

Substitute claude-code, claude-desktop, cursor, vscode or json for codex as needed. Installation and troubleshooting.

Try this first:

Use Winsight to list my open windows and inspect Calculator. Describe its controls without clicking or typing.

Related MCP server: Netwright

How it works

  1. list_windows identifies an app window.

  2. snapshot returns visible controls, stable element ids and state flags.

  3. run executes a flow using selectors such as button "Save".

  4. expect checks the resulting visible state; the reply reports completion, changes and failures.

{
  "window": "Calculator",
  "steps": [
    {"click": "button \"Clear\""},
    {"click": "button \"Three\""},
    {"click": "button \"Plus\""},
    {"click": "button \"Seven\""},
    {"click": "button \"Equals\"", "expect": "text \"Display is 10\""}
  ]
}

Labels depend on the app version and language. Inspect the actual controls before choosing selectors. Usage guide.

Features

  • Contextual targets: scope a selector within a named document or container.

  • Stale-element recovery: check identity and ancestor context before reusing a target.

  • Verified outcomes: distinguish input delivery from an observed result.

  • Timeout isolation: quarantine unfinished worker calls and block later input dispatch after cancellation.

  • Compact observations: deduplicate runtime identities, return changes and batch workflows to reduce repeated context.

Architecture and failure handling explains the tradeoffs. These mechanisms reduce risk; they do not make arbitrary app actions transactional.

Evidence and limitations

Published evidence includes a GPT Calculator pilot, ten complex multi-app tasks, an earlier ten-task Claude session, engine CPU profiles and token-size measurements. Results include failures and tasks where screenshots were faster. Permissions, versions and timing methods differ between studies; actual billed token usage was unavailable. See the task tables, token measurements and limitations.

UI Automation coverage varies. Canvas apps, games and remote desktops may need screenshots. Physical input may require foreground focus. A signed-in interactive desktop is required. Elevation and some protected windows impose additional restrictions. An already dispatched action cannot be recalled when a timeout occurs.

Privacy and control

The server runs locally, but observations returned to your AI client can be sent to that client's model provider. Treat desktop text as sensitive. Debug traces and learned workflow examples may retain app content locally. Debugging cannot expose a model's private reasoning. Review logs before sharing. Privacy guide.

Contribute

Report a reproducible issue using scratch data, improve client setup, or add regression coverage for an accessibility failure. Contributing includes development commands and reporting guidance.

Documentation

Guide

Contents

Installation

Requirements, client configuration, updates and troubleshooting

Agent instructions

Setup and operating conventions for AI agents

Usage

Observations, selectors, workflows and recovery

Architecture

Target identity, caching, execution and timeout handling

Privacy

Data flow, local traces and tool approvals

Benchmarks

Complex tasks, pilots, token measurements and limitations

Source: hegdeadithyak/winsight. Licensed under MIT.

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 AI coding agents to automate Windows desktop applications through semantic UI Automation instead of brittle coordinate clicks, with tools for discovering windows, finding controls by stable identifiers, and verifying actions.
      30 PyPI
      6
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to launch, inspect, and operate WPF, WinForms, and WinUI desktop applications through UI Automation, with compact snapshots, background actions, state verification, and export to regression tests.
      25
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to inspect and operate Windows applications through structured UI Automation maps, humanized mouse and keyboard input, and on-demand screenshots or OCR via MCP. It supports locating elements by role, name, or query; clicking, typing, scrolling, window management, event watching, and chained multi-step actions without relying on image analysis.
      MIT