drio
Open app

Swift MCP GUI Server

Source

MCP server that can execute commands such as keyboard input and mouse movement on macOS

Catalog onlyCatalog onlySTDIO

Overview

Swift MCP GUI Server is a Model Context Protocol (MCP) server that allows users to control macOS through programmatic commands for mouse and keyboard actions.

To use the server, clone the repository, install the necessary packages, and configure your MCP client to connect to the server.

  • Control mouse movement and clicks programmatically. - Send keyboard inputs and shortcuts. - Perform scrolling actions in various directions. - Full control over macOS through MCP clients.
  1. Automating repetitive tasks on macOS.
  2. Creating custom scripts for GUI interactions.
  3. Remote control of macOS systems.

Add to your AI client

Use these steps to connect Swift MCP GUI Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "swift-mcp-gui-nakaokarei": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-swift-mcp-gui-nakaokarei"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "swift-mcp-gui-nakaokarei": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-swift-mcp-gui-nakaokarei"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "swift-mcp-gui-nakaokarei": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-swift-mcp-gui-nakaokarei"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "swift-mcp-gui-nakaokarei": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-swift-mcp-gui-nakaokarei"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "swift-mcp-gui-nakaokarei": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-swift-mcp-gui-nakaokarei"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "swift-mcp-gui-nakaokarei": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-swift-mcp-gui-nakaokarei"
      ]
    }
  }
}

FAQ

Is Swift MCP GUI Server safe to use?

Yes, but it has full control over your mouse and keyboard, so only connect trusted MCP clients.

What are the system requirements?

Requires macOS 15.0 or later, Swift 6.0 or later, and Xcode 16.0 or later.

Is there a license for this project?

Yes, it is licensed under the MIT License.