MCP server that can execute commands such as keyboard input and mouse movement on macOS
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"swift-mcp-gui": {
"command": "/Users/USERNAME/.swiftpm/bin/swift-mcp-gui"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that allows controlling macOS through SwiftAutoGUI. This server provides tools for programmatically controlling the mouse and keyboard through MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in productivity
Persistent memory using a knowledge graph
Dynamic problem-solving through sequential thought chains
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
MCP Security Weekly
Get CVE alerts and security updates for Swift Mcp Gui and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that allows controlling macOS through SwiftAutoGUI. This server provides tools for programmatically controlling the mouse and keyboard through MCP clients.
Install via the NakaokaRei/tap:
brew install NakaokaRei/tap/swift-mcp-gui
Then point your MCP client at the installed binary:
{
"mcpServers": {
"swift-mcp-gui": {
"command": "/opt/homebrew/bin/swift-mcp-gui"
}
}
}
On Intel Macs the path is /usr/local/bin/swift-mcp-gui. To upgrade later, run
brew upgrade swift-mcp-gui.
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:
moveMousex: number (x-coordinate) - accepts integers, doubles, or string representationsy: number (y-coordinate) - accepts integers, doubles, or string representationsmouseClickbutton: string ("left" or "right")sendKeyskeys: array of strings (key names)scrolldirection: string ("up", "down", "left", "right")clicks: number (number of scroll clicks)getScreenSizegetPixelColorx: number (x-coordinate) - accepts integers, doubles, or string representationsy: number (y-coordinate) - accepts integers, doubles, or string representationscaptureScreenquality: number (optional, 0.0-1.0, default: 0.5) - JPEG compression qualityscale: number (optional, 0.1-1.0, default: 0.25) - Scale factor for image sizeoutput: string (optional, "path" or "image", default: "path") - Output formatoutput: "path" (default): Saves to a temporary file and returns the file path with dimensions. Reduces token consumption.output: "image": Returns inline image content for AI vision (e.g. Claude)captureRegionx: number (x-coordinate of the region)y: number (y-coordinate of the region)width: number (width of the region)height: number (height of the region)quality: number (optional, 0.0-1.0, default: 0.5) - JPEG compression qualityscale: number (optional, 0.1-1.0, default: 0.25) - Scale factor for image sizeoutput: string (optional, "path" or "image", default: "path") - Output formatoutput: "path" (default): Saves to a temporary file and returns the file path with dimensions. Reduces token consumption.output: "image": Returns inline image content for AI vision (e.g. Claude)saveScreenshotfilename: string (path to save the screenshot)x: number (optional, x-coordinate of the region)y: number (optional, y-coordinate of the region)width: number (opt