ApplicationController
Exposes GUI automation tools to control mouse, keyboard, and screen of the local machine via PyAutoGUI.
README
ApplicationController
An MCP server that exposes GUI automation tools to any MCP-compatible client (e.g. GitHub Copilot desktop app). It uses PyAutoGUI to control the mouse, keyboard, and screen of the local machine.
Tools
Screenshot & observation
| Tool | Description |
|---|---|
take_screenshot |
Captures a full screenshot (optional scale to reduce size) |
capture_region |
Captures a region by coordinates or automation_id bounding box |
get_screen_size |
Returns the screen resolution |
get_mouse_position |
Returns current cursor position |
list_windows |
Lists visible top-level windows (hwnd, title, pid, rect, isForeground) |
Mouse & keyboard
| Tool | Description |
|---|---|
click |
Left/right/middle click at (x, y) or by automation_id |
double_click |
Double-click at (x, y) |
move_mouse |
Move cursor without clicking |
drag |
Click and drag between two points |
scroll |
Scroll up or down at (x, y) |
type_text |
Type ASCII text (use clipboard + press_key for Unicode) |
press_key |
Press a key or hotkey combination (e.g. ['ctrl', 'c']) |
UIAutomation (Tier 1 — preferred over pixel clicks)
| Tool | Description |
|---|---|
ua_dump_tree |
Dump the full control tree of a window as JSON |
ua_find |
Find controls by automationId, name, or type |
ua_invoke |
Invoke (click) a control by automationId — works off-screen |
ua_set_value |
Set TextBox/ComboBox value via ValuePattern |
ua_get_value |
Read a control's current value |
Eventful waiting (Tier 2 — replace fixed sleeps)
| Tool | Description |
|---|---|
wait_for_window |
Block until a window appears or disappears |
wait_for_element |
Block until a control becomes visible/enabled/exists |
wait_input_idle |
Block until a process finishes rendering |
Window management (Tier 3)
| Tool | Description |
|---|---|
focus_window |
Bring a window to the foreground / restore if minimised |
Quality-of-life (Tier 4)
| Tool | Description |
|---|---|
launch_app |
Launch an .exe by path |
sleep |
Pause for N seconds |
find_image_on_screen |
Locate a template image on screen (requires opencv-python) |
auto_dismiss_dialog |
Find a dialog by title and click a button to dismiss it |
batch |
Execute multiple tool calls in one round-trip |
Setup
1. Install dependencies
pip install -r requirements.txt
To enable the find_image_on_screen tool, also install OpenCV:
pip install opencv-python
Or install everything at once via the package extras:
pip install ".[image-search]"
Note:
pywinautoandpywin32are included inrequirements.txt. They enable all UIAutomation tools (ua_*), window management (list_windows,focus_window,wait_for_window), andwait_input_idle. The server starts and the basic mouse/keyboard tools work without them — those tools will return a clear error message if called when the packages are absent.
2. Add to GitHub Copilot desktop app
In your Copilot settings, add an MCP server entry pointing to this server:
{
"mcpServers": {
"application-controller": {
"command": "python",
"args": ["C:\\path\\to\\ApplicationController\\server.py"]
}
}
}
Replace C:\\path\\to\\ApplicationController with the actual path where you cloned this repo.
3. Safety note
PyAutoGUI's failsafe is enabled — move your mouse to the top-left corner of the screen at any time to abort an automation sequence.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.