on-panda/pyautogui_mcp_server
MCP server for simplest GUI agent đšī¸đ¤
Platform-specific configuration:
{
"mcpServers": {
"pyautogui_mcp_server": {
"command": "npx",
"args": [
"-y",
"pyautogui_mcp_server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
pyautogui_mcp_server packages a Streamable HTTP MCP server for running Python code with pyautogui instrumentation.
It is designed for GUI automation workflows where plain pyautogui execution is not enough. The package adds MCP-friendly output handling, richer screenshots, and a small macOS display wake helper.
Compared with running raw pyautogui calls directly, this library adds extra effort in the following areas:
stdout, stderr, and final expression results in one MCP response stream.<stdout>
Cut the right rope by dragging left to right through it.
</stdout>
<pyautogui-mcp.dragTo x=860 y=430 duration=0.2 button='left'
time_offset="T+1.1s" pyautogui.size=(1440, 900)></pyautogui-mcp.dragTo>pip install pyautogui_mcp_serverFor local development:
pip install -e .[dev]Use the module entrypoint:
python -m pyautogui_mcp_server --host 127.0.0.1 --port 9300Or use the installed console script:
pyautogui-mcp-server --port 9300Show CLI help:
python -m pyautogui_mcp_server --helpThe server exposes a run_python_with_pyautogui MCP tool that executes Python in a fresh interpreter state with instrumented pyautogui behavior.
Loading reviews...