What mouse-mcp does
mouse-mcp gives AI agents access to a compatible uMouse device on Windows x64. The hardware performs mouse movement, clicking, scrolling, and dragging through USB HID, rather than emulating those actions through an ordinary software-only mouse interface. Actions use desktop physical-pixel coordinates and can support multi-monitor layouts, including negative coordinates, in the shared-v2 source implementation.
The server also supports voice dictation. Audio is captured, segmented with voice activity detection, sent to a configurable speech-recognition provider, and returned as preview and final transcript events. Recognized text can be typed into the window that currently has focus, as shown by the project’s agent-client and WeChat demonstrations.
A compatible uMouse device and firmware are mandatory. An ordinary USB mouse cannot substitute for the required hardware.
How it works
The shared-v2 source path uses this sequence: an MCP host calls the server, a shared daemon listens on port 47192, a C++ native host communicates with the uMouse through USB HID, and Windows receives the resulting input. One daemon is used per machine and can be shared by supported hosts; it is reclaimed when idle.
Mouse and keyboard access is serialized through a control task. An agent begins a task, performs its actions, and ends the task. Only one task can drive the mouse and keyboard at a time, while dead connections are cleaned up automatically. Read-only input sensors remain separate: they can report cursor position, live key state, and foreground-window identity without intercepting input.
The downloadable legacy ZIP and the shared-v2 source implementation are different paths. The ZIP contains the legacy server and production dependencies, while the shared-v2 native host and acceptance lab belong to the source implementation rather than that ZIP package.
Setup and configuration
Use Windows x64 with Node.js 22 x64 installed separately. Connect and power on compatible uMouse hardware before testing. The packaged ZIP includes Node dependencies, native SDK DLLs, the voice preview UI, and Visual C++ runtime libraries; it does not include Node.js and does not require a separate npm install or compilation for normal use.
For a packaged installation, extract the ZIP to a permanent location and run install-agents.cmd, or execute the installer script for Claude Desktop or Cursor. The installer adds or updates an umouse configuration entry and can copy the bundled trial ASR configuration into the local data directory. A manual mcpServers entry can instead launch mcp/dist/index.js with Node, but manual setup does not configure speech recognition.
The MCPB package can be imported into a client that supports MCPB Node extensions. Its data defaults to ~/.umouse-mcp-mcpb, and speech recognition defaults to disabled; windows-speech is an optional local provider. The source project uses UMSDK_ASR_PROVIDER to select an ASR provider, with sinicloud documented as a provider for the legacy ZIP and source on Windows.
Tools and capabilities
The documented shared-v2 tools include:
umouse_mouse_action for movement, clicks, scrolling, and dragging, with standard or high precision.
umouse_control for beginning and ending exclusive mouse-and-keyboard tasks.
umouse_input_status for cursor, key-state, and foreground-window information.
umouse_status for SDK and server health checks.
umouse_get_capabilities for reported device capabilities.
umouse_list_devices for enumerating available devices.
Voice dictation uses an independent lane and does not preempt mouse control. ASR providers implement lifecycle operations for starting input, receiving PCM audio, finishing or cancelling input, and emitting preview, final-segment, warning, and terminal events.
Limitations and notes
The server is Windows x64-only and depends on compatible uMouse hardware and firmware. A reported sdkVersion confirms SDK access but does not prove that physical hardware control works, so visible results should be checked after actions. The MIT license covers the server code; native SDK binaries have separate terms.
Source-development commands include npm ci, npm run build, and npm test, but they do not create a complete shared-v2 native bundle. The packaged ZIP also does not contain the shared-v2 native host or acceptance lab.