Skip to main content
Glama

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.

Related MCP server: mcp-macos-cua

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables LLM agents to capture screenshots, control mouse/keyboard, and manage windows on desktop platforms, primarily Windows, via an MCP server.
      16
      16 PyPI
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.
      11
      12 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to control remote desktops through screen capture, mouse movement, and keyboard input.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to capture multi-monitor screenshots with coordinate grids and perform mouse, keyboard, scrolling, dragging, and window-management actions on Windows via MCP tools or CLI. It provides pixel-accurate desktop automation for computer-use agents.
      MIT