Terminator MCP Agent is a Model Context Protocol (MCP) server designed to provide desktop GUI automation capabilities for large language models (LLMs) and agent clients. Built on the Terminator library, it interacts with Windows applications through structured accessibility APIs without relying on vision models or screenshots, thereby achieving efficient and reliable automation operations.
Purpose
This tool is mainly used to enable LLMs and agents to programmatically control Windows desktop applications, performing operations such as clicking, typing, and reading UI elements. It is suitable for scenarios such as automated workflows, CI/CD pipelines, scalable automation on cloud platforms, and containerized automation workloads.
Key Capabilities
- Desktop GUI Automation: Interacts with applications through the Windows UI Automation API, supporting operations such as element clicking, text input, and retrieving the UI tree.
- MCP Protocol Support: As an MCP server, it can be integrated into MCP-compatible clients (such as Cursor and VS Code), making it convenient for LLMs to call.
- HTTP Endpoints: Provides /health, /status, and /mcp endpoints, supporting health checks, load balancing probes, and MCP execution.
- Command-Line Interface (CLI): Supports executing workflows directly from the command line, facilitating automation scripts and CI/CD integration.
- Workflow Engine: Supports JavaScript and Python code execution, can pass data between workflow steps, and supports conditional jumps, error handling, and state persistence.
- Virtual Display Support: Can run on headless virtual machines (such as Azure, AWS, GCP), automatically detecting headless environments and initializing a virtual display context.
- Real-Time Events: Subscribe to workflow events through the SSE endpoint for real-time monitoring.
- Performance Optimization: Provides various parameters to optimize the extraction of large UI trees and JavaScript execution performance.
Usage
- Installation: Can be done through one-click install buttons (for editors such as VS Code and Cursor) or manual configuration. For manual configuration, add the command in the MCP client settings
npx -y terminator-mcp-agent. - Command-Line Execution: Use the Terminator CLI to execute workflow files (supporting YAML and JSON formats).
- Workflow Definition: Workflows support the direct format, the format with conditional jumps, and the tool-call wrapper format. In engine mode, custom JavaScript or Python code can be executed, and data is automatically passed between steps.
- HTTP Mode: Use
-t httpStart an HTTP server with parameters, execute requests via POST /mcp, with concurrency controlled by the MCP_MAX_CONCURRENT environment variable (default 1). - State persistence: When using file:// URLs, workflow state is automatically saved to the .mediar folder, supporting starting or ending execution from a specific step.
Use cases
- Automating repetitive desktop tasks, such as data entry and report generation.
- Integrating desktop automation testing into CI/CD pipelines.
- Deploying scalable automation agents on cloud platforms without RDP connections.
- Containerized automation workloads.
- Agent applications that require LLM-driven desktop operations.
Limitations
- Primarily targeting the Windows platform, relying on the Windows UI Automation API.
- Requires a Node.js environment (v16+ recommended).
- On macOS and Linux, additional accessibility permissions and dependency packages may be required.
- Concurrent requests are limited to 1 by default and can be adjusted via environment variables.
- Workflow steps are recommended to be fewer than 100; complex tasks need to be split into multiple sequences.
- Data passing is only valid in engine mode (JavaScript/Python) and does not support shell commands.
- Some features (such as virtual display) require specific environment variables or runtime conditions.