MCP Windows Desktop Automation
Automatización del escritorio de Windows MCP
Un servidor de Protocolo de Contexto de Modelo (MCP) para la automatización del escritorio de Windows mediante AutoIt.
Descripción general
Este proyecto proporciona un servidor MCP de TypeScript que envuelve el paquete node-autoit-koffi , lo que permite que las aplicaciones LLM automaticen las tareas del escritorio de Windows a través del protocolo MCP.
El servidor expone:
Herramientas : Todas las funciones de AutoIt son herramientas MCP
Recursos : Acceso a archivos y capacidades de captura de pantalla
Indicaciones : Plantillas para tareas de automatización comunes
Related MCP server: Bridge MCP
Características
Envoltura completa de todas las funciones de AutoIt como herramientas MCP
Soporte para transportes stdio y WebSocket
Recursos de acceso a archivos para leer archivos y directorios
Recursos de captura de pantalla para capturar la pantalla o ventanas específicas
Plantillas de indicaciones para tareas de automatización comunes
Tipado estricto de TypeScript en todo momento
Instalación
# Clone the repository
git clone https://github.com/yourusername/mcp-windows-desktop-automation.git
cd mcp-windows-desktop-automation
# Install dependencies
npm install
# Build the project
npm run buildUso
Iniciando el servidor
# Start with stdio transport (default)
npm start
# Start with WebSocket transport
npm start -- --transport=websocket --port=3000
# Enable verbose logging
npm start -- --verboseOpciones de línea de comandos
--transport=stdio|websocket: especifica el protocolo de transporte (predeterminado: stdio)--port=<number>: especifica el puerto para el transporte de WebSocket (predeterminado: 3000)--verbose: Habilitar el registro detallado
Herramientas
El servidor proporciona herramientas para:
Operaciones del mouse : mover, hacer clic, arrastrar, etc.
Operaciones del teclado : enviar pulsaciones de teclas, operaciones del portapapeles, etc.
Gestión de ventanas : buscar, activar, cerrar, redimensionar ventanas, etc.
Manipulación de controles : interactúe con controles de UI, botones, campos de texto, etc.
Gestión de procesos : iniciar, detener y supervisar procesos
Operaciones del sistema : Apagado, suspensión, etc.
Recursos
El servidor proporciona recursos para:
Acceso a archivos : leer archivos y listar directorios
Capturas de pantalla : captura la pantalla o ventanas específicas
Indicaciones
El servidor proporciona plantillas de indicaciones para:
Interacción con ventanas : Busque e interactúe con ventanas
Relleno de formularios : automatiza las tareas de llenado de formularios
Tareas de automatización : crear scripts para tareas repetitivas
Monitoreo : Esperar condiciones específicas
Desarrollo
# Run in development mode
npm run dev
# Lint the code
npm run lint
# Run tests
npm run testLicencia
Instituto Tecnológico de Massachusetts (MIT)
Available Tools
51 toolsautoItSetOptionCDestructive
Windows AutoIt autoItSetOption. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: value (required), option (required).
clipGetCRead-onlyIdempotent
Windows AutoIt clipGet. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: bufSize.
clipPutCDestructive
Windows AutoIt clipPut. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: text (required).
controlClickCDestructive
Windows AutoIt controlClick. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), x, y, +3 more.
controlClickByHandleCDestructive
Windows AutoIt controlClickByHandle. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: windowHandle (required), controlHandle (required), x, y, +2 more.
controlCommandCDestructive
Windows AutoIt controlCommand. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), command (required), control (required), text, +2 more.
controlFocusCDestructive
Windows AutoIt controlFocus. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), text.
controlGetHandleCRead-onlyIdempotent
Windows AutoIt controlGetHandle. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: control (required), windowHandle (required).
controlGetPosCRead-onlyIdempotent
Windows AutoIt controlGetPos. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), text.
controlGetTextCRead-onlyIdempotent
Windows AutoIt controlGetText. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), text, bufSize.
controlHideCDestructive
Windows AutoIt controlHide. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), text.
controlMoveCDestructive
Windows AutoIt controlMove. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: x (required), y (required), title (required), control (required), +3 more.
controlSendCDestructive
Windows AutoIt controlSend. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), sendText (required), mode, +1 more.
controlSetTextBDestructive
Windows AutoIt controlSetText. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), controlText (required), text.
controlShowCDestructive
Windows AutoIt controlShow. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), control (required), text.
mouseClickCDestructive
Windows AutoIt mouseClick. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: x, y, speed, button, +1 more.
mouseClickDragCDestructive
Windows AutoIt mouseClickDrag. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +2 more.
mouseDownCDestructive
Windows AutoIt mouseDown. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: button.
mouseGetCursorCRead-onlyIdempotent
Windows AutoIt mouseGetCursor. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: no named parameters.
mouseGetPosCRead-onlyIdempotent
Windows AutoIt mouseGetPos. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: no named parameters.
mouseMoveADestructive
Windows AutoIt mouseMove. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: x (required), y (required), speed.
mouseUpCDestructive
Windows AutoIt mouseUp. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: button.
mouseWheelCDestructive
Windows AutoIt mouseWheel. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: clicks (required), direction (required).
optCDestructive
Windows AutoIt opt. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: value (required), option (required).
processCloseCDestructive
Windows AutoIt processClose. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: process (required).
processExistsCRead-onlyIdempotent
Windows AutoIt processExists. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: process (required).
processSetPriorityCDestructive
Windows AutoIt processSetPriority. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: process (required), priority (required).
processWaitCRead-onlyIdempotent
Windows AutoIt processWait. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: process (required), timeout.
processWaitCloseCRead-onlyIdempotent
Windows AutoIt processWaitClose. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: process (required), timeout.
runBDestructive
Windows AutoIt run. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: program (required), showFlag, workingDir.
runAsCDestructive
Windows AutoIt runAs. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: user (required), domain (required), program (required), password (required), +3 more.
runAsWaitCDestructive
Windows AutoIt runAsWait. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: user (required), domain (required), program (required), password (required), +3 more.
runWaitCDestructive
Windows AutoIt runWait. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: program (required), showFlag, workingDir.
sendBDestructive
Windows AutoIt send. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: text (required), mode.
shutdownBDestructive
Windows AutoIt shutdown. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: flags (required).
takeScreenshotCRead-onlyIdempotent
Windows AutoIt takeScreenshot. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: x, y, width, height, +2 more.
toolTipBDestructive
Windows AutoIt toolTip. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: text (required), x, y.
winActivateCDestructive
Windows AutoIt winActivate. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text.
winActivateByHandleCDestructive
Windows AutoIt winActivateByHandle. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: handle (required).
winActiveCRead-onlyIdempotent
Windows AutoIt winActive. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: text (required), title (required).
winCloseCDestructive
Windows AutoIt winClose. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text.
winExistsCRead-onlyIdempotent
Windows AutoIt winExists. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text.
winGetHandleCRead-onlyIdempotent
Windows AutoIt winGetHandle. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text.
winGetPosCRead-onlyIdempotent
Windows AutoIt winGetPos. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text.
winGetTextCRead-onlyIdempotent
Windows AutoIt winGetText. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text, bufSize.
winGetTitleCRead-onlyIdempotent
Windows AutoIt winGetTitle. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text, bufSize.
winMoveCDestructive
Windows AutoIt winMove. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: x (required), y (required), title (required), text, +2 more.
winSetStateCDestructive
Windows AutoIt winSetState. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: flags (required), title (required), text.
winWaitCRead-onlyIdempotent
Windows AutoIt winWait. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text, timeout.
winWaitActiveCRead-onlyIdempotent
Windows AutoIt winWaitActive. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text, timeout.
winWaitCloseCRead-onlyIdempotent
Windows AutoIt winWaitClose. Requires a trusted owner and an interactive Windows x64 desktop.
Inputs: title (required), text, timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 51 tools
Most tools map to distinct AutoIt functions, but autoItSetOption and opt appear to overlap, and boilerplate descriptions offer no differentiation between similar operations like run/runWait/runAs/runAsWait or processWait/processWaitClose. An agent must rely on AutoIt domain knowledge to select correctly.
All tools use lowerCamelCase, and most follow a noun+verb pattern (e.g., mouseGetPos, winActivate, controlClick). Minor deviations exist such as takeScreenshot (verb+noun) and bare verbs (send, run, shutdown), but casing is consistent throughout.
With 51 tools, the surface is far beyond the typical 3-15 well-scoped range and approaches the rubric's extreme mismatch threshold. Many wrappers are granular (mouseDown/mouseUp, winWait variants, processWait variants), forcing agents to sort through a large set for basic automation.
Core areas like mouse, keyboard, window, control, process, run, clipboard, and screenshot are covered, enabling many direct automation workflows. However, discovery/enumeration tools (e.g., listing windows, processes, or controls) and pixel/image search are absent, leaving notable dead ends when target identifiers are unknown.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA lean local Windows automation server providing tools for mouse and keyboard control, screenshot capture, and process management. It enables programmatic interaction with the Windows desktop environment through the Model Context Protocol.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that gives any AI full control over a Windows PC, enabling application control, mouse/keyboard automation, screen capture, browser automation, and more.92 PyPI6MIT
- FlicenseNot gradedqualityDmaintenanceWindows GUI automation MCP server for Claude Code, enabling deterministic desktop app control via 32 tools including window management, input, pixel search, and file verification, leveraging the AutoIt backend.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that gives AI assistants full control over native Windows applications — launch, inspect, click, type, screenshot, and test any WinUI3, WPF, WinForms, UWP, or Win32 app.103 npm45MIT