PyAutoGUI-MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PyAutoGUI-MCPtake a screenshot and save it to desktop.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PyAutoGUI-MCP exposes MCP tools dynamically from the PyAutoGUI API.
It does not manually reimplement or wrap each function: it auto-registers the available API.
Install with pip
pip install pyautogui-mcpRun the server:
pyautogui-mcp --transport stdio
pyautogui-mcp --transport http --host 127.0.0.1 --port 8000MCP client config example:
{
"mcpServers": {
"pyautogui-mcp": {
"command": "pyautogui-mcp",
"args": ["--transport", "stdio"]
}
}
}Related MCP server: computer-control-mcp-lands
Run with uv
Dependencies are declared in pyproject.toml, so uv can resolve and run directly:
{
"mcpServers": {
"pyautogui-mcp": {
"command": "uv",
"args": [
"--directory",
"/full/path/to/pyautogui-mcp",
"run",
"python",
"-m",
"pyautogui_mcp"
]
}
}
}You can also launch manually:
uv run python -m pyautogui_mcp --transport stdio
uv run python -m pyautogui_mcp --transport http --host 127.0.0.1 --port 8000Use in your own project
Import only what you need and run it under your own server lifecycle:
from pyautogui_mcp import mcp, register_pyautogui_api
register_pyautogui_api(prefix="pyautogui_")
mcp.run() # or mcp.run(transport="http", host="127.0.0.1", port=8000)Other exports:
from pyautogui_mcp import pyautogui_diagnose, pyautogui_toolsDesktop control notes
The server runs actions on the machine where it is launched (current desktop/display).
PyAutoGUI requires a real GUI session; headless environments will fail.
Safety: moving the mouse to a corner triggers the PyAutoGUI failsafe.
Optional pause between actions via
PYAUTOGUI_PAUSE=0.1.
Tool examples
Tool names are exposed with the default pyautogui_ prefix (configurable with --prefix).
Tool | Inputs (common) | Output |
|
| MCP image content (PNG bytes) |
|
| MCP image content (PNG/JPEG bytes) |
| none | cursor coordinates |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| none | tool list |
| none |
|
Use pyautogui_tools to list the exact tool set for your environment and PyAutoGUI version.
This server cannot be deployed
Maintenance
Related MCP Connectors
All public upAPI operations as MCP tools: web scraping, search, screenshots, PDF, OCR and more.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Web and URL utilities over MCP: shorten URLs, screenshot pages, read page metadata, encode URLs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP and HTTP server wrapper for PyAutoGUI that enables LLMs to control mouse and keyboard operations across local or remote distributed environments. It provides comprehensive tools for screen interaction, including clicking, typing, and capturing screenshots.19MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive computer control capabilities including mouse and keyboard automation, screen capture, OCR text recognition, and window management through MCP protocol.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables automation of native Windows desktop applications through screen capture, mouse/keyboard control, and waiting for UI changes, exposing them as MCP tools.1-
- FlicenseNot gradedqualityBmaintenanceExposes GUI automation tools to control mouse, keyboard, and screen of the local machine via PyAutoGUI.-