MousePilot

BeepBoopBit/MousePilot Checked 2 days ago

Control Windows and macOS desktops with AI agents through MCP or the command line.

Desktop control for your AI agents. Use MCP or the CLI to control Windows and macOS 14+. Recorded on QA Practice Hub: scrolling, typing, keyboard shortcuts, clicks, and dragging. Silent, with pauses trimmed. Install uv and download or clone this repository. Run the backend on the computer you want to control, while logged in and unlocked.

Summary extracted from the README.

MousePilot


Contents · Demos · Install · Use

Demos

Windows · Edge InPrivate

MousePilot on Windows

Watch the full Windows demo

macOS · Safari Private Browsing

MousePilot on macOS

Watch the full macOS demo

Recorded on QA Practice Hub: scrolling, typing, keyboard shortcuts, clicks, and dragging. Silent, with pauses trimmed.

Install

Install uv and download or clone this repository. Run the backend on the computer you want to control, while logged in and unlocked.

Windows

From the project folder in PowerShell:

uv sync --locked --no-dev
.\.venv\Scripts\mousepilot-server.exe --tray

To build a standalone executable instead:

.\scripts\build-windows.ps1
.\dist\mousepilot-server.exe --tray

macOS

From the project folder on the Mac:

./scripts/build-macos.sh
mkdir -p ~/Applications
ditto dist/MousePilot.app ~/Applications/MousePilot.app
open ~/Applications/MousePilot.app

In the MousePilot menu, choose Grant permissions…. Enable Accessibility, Input Monitoring, and Screen Recording in Privacy & Security.

Use

On the computer running your agent (Linux, macOS, or Windows):

uv sync --locked

Follow configuration to connect your device over SSH and add MousePilot to your MCP client.

Ask your agent to take a screenshot, then click, type, scroll, or drag. Mouse coordinates use the returned image's pixels and its screenshot_id. type_text does not press Enter.

For manual control after configuring a device:

uv run mousepilot --device windows screen
uv run mousepilot --device windows click 640 400 --frame SCREENSHOT_ID
uv run mousepilot --device windows type 'hello'

Use --device mac for the Mac profile. More commands are in usage.

Emergency stop: Ctrl+Alt+Shift+F11 on Windows; Ctrl+Option+Shift+F11 on macOS. Resume explicitly through MCP or the tray/menu.

AI-assisted development

AI tools have been used during development. Contributors remain responsible for reviewing changes and identifying third-party sources. See Contributing.

Updates and contributions

MousePilot is an independent personal project. Updates follow my needs as I use it. There is no fixed release schedule. Use the repository's Issues tab to report a bug or request a feature. Describe the problem and the result you need. You can also fork the project and submit a pull request. Feature requests and pull requests do not guarantee an update or acceptance.

See Contributing for setup and checks.