SwiftAutoGUI Control
STDIOMCP server for controlling Mac OS X through SwiftAutoGUI with mouse and keyboard automation.
MCP server for controlling Mac OS X through SwiftAutoGUI with mouse and keyboard automation.
A Model Context Protocol (MCP) server that allows controlling Mac OS X through SwiftAutoGUI. This server provides tools for programmatically controlling the mouse and keyboard through MCP clients.
git clone https://github.com/NakaokaRei/swift-mcp-gui.git cd swift-mcp-gui
swift package experimental-install
{ "mcpServers" : { "swift-mcp-gui" : { "command" : "/Users/USERNAME/.swiftpm/bin/swift-mcp-gui" } } }
The server provides the following tools for controlling macOS:
moveMouse
x
: double (x-coordinate)y
: double (y-coordinate)mouseClick
button
: String ("left" or "right")sendKeys
keys
: Array of strings (key names)scroll
direction
: String ("up", "down", "left", "right")clicks
: Integer (number of scroll clicks)This server has full control over your mouse and keyboard. Be careful when running it and only connect trusted MCP clients.
MIT License