SuperAPI AI Directory

nutjs-windows-control

MCPControl is a Model Context Protocol (MCP) server for the Windows operating system that provides AI models with programmatic system control capabilities. It can control mouse movement and clicks, keyboard input and shortcuts, window management (list windows, get the active window, focus, resize and reposition), screen capture and analysis, and clipboard operations. The project currently supports Windows only, connects to MCP clients such as Claude via SSE transport, and is suitable for use in virtual machines at a 1280x720 resolution environment. Installation requires first configuring Visual Studio Build Tools (including the VC++ workload), Python 3.12, and Node.js, then installing mcp-control globally via npm. The official documentation explicitly states that this software is an experimental tool, that giving AI direct control of a computer carries risks, and that users must bear the consequences of use in a controlled environment at their own risk.

Open website

About this tool

MCPControl is an automation MCP (Model Context Protocol) server for the Windows operating system, used to establish a programmatic control channel between AI models and the desktop system. According to official materials, it provides programmatic control over system operations, covering mouse, keyboard, window management, and screen capture functions. The project currently supports Windows only.

Purpose

MCPControl is positioned to connect AI models with the desktop environment to achieve programmatic control over the following: mouse movement and clicks, keyboard input and shortcuts, window management, screen capture and analysis, and clipboard operations. The official documentation calls it a "Windows control server for the Model Context Protocol."

Main capabilities

  • Window management: list all windows, get active window information, focus, resize, and reposition.
  • Mouse control: precise movement, click and drag operations, scrolling, and position tracking.
  • Keyboard control: text input and key combinations, key press/release control, and key-hold functionality.
  • Screen operations: high-quality screenshots, screen size detection, and active window capture.
  • Clipboard operations.

Automation Providers: MCPControl supports multiple automation providers, including keysender (default, native Windows automation, high reliability), powershell (based on Windows PowerShell, suitable for simpler operations), and autohotkey (AutoHotkey v2 scripts, suitable for advanced automation needs). Providers can be configured via environment variables, or modular configuration can be used for specific operations.

Usage

Installation steps (as listed officially):

  1. Install Build Tools as administrator (including the VC++ workload), command:winget install Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended".
  2. Install Python (if not installed):winget install Python.Python.3.12.
  3. Install Node.js:winget install OpenJS.NodeJS(install the latest LTS version).
  4. Install the MCPControl package:npm install -g mcp-control.

Configure the Claude client to connect to MCPControl via SSE transport. When connecting to an MCPControl server running on a virtual machine or remote machine, replace the 192.168.1.100:3232 in the example with the server's actual IP address and port. Start the server (on the virtual machine or locally): the server will display the available network interfaces and their IP addresses, the port number (default 3232), and connection status messages.

Virtual machine setup example:

  1. Start a Windows virtual machine at 1280x720 resolution.
  2. Install on the virtual machine:npm install -g mcp-control.
  3. Run the server with SSE transport:mcp-control --sse.
  4. Note the virtual machine IP address (for example, 192.168.1.100).
  5. Configure Claude with the SSE URL:{ "mcpServers": { "MCPControl": { "transport": "sse", "url": "http://192.168.1.100:3232/mcp" } } }.
  6. Restart Claude, and MCPControl will appear in the MCP menu.

Command-line arguments:

  • --sse: enable SSE (Server-Sent Events) transport for network access.
  • --port [number]: Specify a custom port (default 3232).
  • --https: Enable HTTPS/TLS (required for remote deployment per the MCP specification).
  • --cert [path]: Path to the TLS certificate file (required when using --https).
  • --key [path]: Path to the TLS private key file (required when using --https).

Officially stated: According to the MCP specification, all HTTP-based transports in production environments must use HTTPS. When deploying MCPControl for remote access, you should always use the --https flag and configure a valid TLS certificate.

Use Cases

Popular use cases officially listed include:

  • Assisted automation: application testing (delegate repetitive UI testing to Claude, letting the AI browse the application and report issues), workflow automation, form filling.
  • AI experimentation: AI playing games (learning to play simple games through visual feedback), visual reasoning (testing Claude's ability to navigate visual interfaces and solve visual puzzles), human-AI collaboration.
  • Development and testing: cross-application integration, UI testing frameworks, demo creation.

Limitations and Risks

  • Windows only.
  • Officially strongly stated: This software is experimental and potentially dangerous. By using it, you acknowledge: letting AI directly control a computer through this tool is inherently risky; the software can control the mouse, keyboard, and other system functions, which may lead to unintended consequences; you use it entirely at your own risk; the project creators and contributors are not responsible for any damages, data loss, or other consequences; this tool should only be used in a controlled environment with appropriate security measures.
  • Known limitations: window minimize/restore operations are currently not supported; multi-monitor functionality may not work as expected in some environments; theget_screenshot tool is incompatible with the VS Code extension Cline (see GitHub issue #1865); some operations may require elevated privileges (depending on the target application); Windows only.
  • Officially recommended to use in a virtual machine at 1280x720 resolution with a single monitor; click precision is optimized for that resolution, and it is stated that offset/scaling defects are being addressed, seeking testers or assistance in creating testing tools.

Development and Project Information

Development requirements: Windows operating system (required by the keysender dependency), Node.js 18 or higher (use the official Windows installer that includes build tools), npm package manager, native build tools (npm install -g node-gyp、npm install -g cmake-js). The keysender dependency relies on Windows-specific native modules and requires these build tools. Project structure: /src contains /handlers (request handling and tool management), /tools (core functionality implementation), /types (TypeScript type definitions), and index.ts (main application entry point). Repository branches: main (main development branch containing the latest features), release (stable release branch, mirroring the latest stable tag, currently v0.2.0). Specific versions can be installed via npm. Dependencies include: @modelcontextprotocol/sdk, keysender, clipboardy, sharp, uuid. License: MIT License.