winuse-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@winuse-mcpOpen Notepad and type 'Hello World'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
winuse-mcp
An MCP server that lets Claude see your Windows screen and drive your mouse and keyboard.
Use the built-in feature if you can
Anthropic ships computer use for Windows in the Claude Desktop app. Its Desktop docs describe it as "a research preview on macOS and Windows that requires a Pro or Max plan", turned on from Settings > General. If that is your setup, use it instead of this server: it asks before Claude touches each app, hides other windows while Claude works, and keeps your terminal out of the screenshots. winuse does none of that.
winuse is for the setups the built-in feature does not reach:
Claude Code CLI on Windows. The CLI's
computer-useserver is macOS only. Its docs say "Computer use in the CLI is not available on Linux or Windows", so on Windows it never appears in/mcp.Plans and sign-ins the built-in feature excludes. Both the CLI and Desktop versions are "not available on Team or Enterprise plans", and the CLI version is unavailable through Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry.
Other MCP clients, such as Codex CLI. Anything that can launch a stdio MCP server can run the command under Install.
It rebuilds the screenshot-and-click loop on mss for capture and pyautogui for input, with an explicit Windows DPI-awareness call so display scaling cannot skew clicks. 18 tools, 5 direct dependencies, Python 3.12 or newer.
Related MCP server: Win:Computer Use
Install
You need Windows with an interactive desktop session, uv, and git on PATH. One command:
claude mcp add --scope user winuse -- uvx --from git+https://github.com/ryanportfolio/winuse-mcp@v0.2.0 winuse-mcpDrop --scope user to add it to the current project only. To pick up changes later, re-run with a newer tag.
For a client other than Claude Code, register a stdio server whose command is uvx with the arguments --from git+https://github.com/ryanportfolio/winuse-mcp@v0.2.0 winuse-mcp.
Merge the winuse entry into the mcpServers object you already have. Do not paste the whole document over C:\Users\<you>\.claude.json: Claude Code owns that file and pasting replaces your entire configuration.
{
"mcpServers": {
"winuse": {
"command": "uvx",
"args": ["--from", "git+https://github.com/ryanportfolio/winuse-mcp@v0.2.0", "winuse-mcp"]
}
}
}Project scope goes in .mcp.json at the repo root, and Claude Code asks you to trust it the first time that project opens. From a local clone, swap the command for uv with ["run", "--directory", "C:/path/to/winuse-mcp", "winuse-mcp"].
Check it worked
Restart Claude Code and run /mcp. winuse should be listed as connected. First launch is slow, because uvx clones the repo and builds a virtual environment before the server answers.
Then ask Claude to take a screenshot and describe what is on your screen. If the tools are there but nothing happens, see Troubleshooting.
Reach
Tool | Does |
| PNG of the primary monitor, downscaled |
| A region |
| Click at |
| Two clicks, same arguments as |
| Three clicks, selects a line or paragraph |
| Context-menu click |
| Middle-button click |
| Move the cursor without clicking |
| Hold the left button from one point to another, over 0.4s |
| Press the left button at the cursor and keep it down |
| Release the left button at the cursor |
| Type at the current focus, non-ASCII goes through the clipboard |
| A key or chord: |
| Hold a key or chord down, 10s ceiling; a shifted character is named by its base key, |
|
|
| Where the mouse is now, as |
| Up to 8 frames sampled over at most 15s, 6 over 5s by default |
| Pause before the next action, 10s ceiling |
Coordinates are always in the downscaled screenshot's pixel space, never native pixels. A zoom image does not change that: coordinates stay in the full screenshot's space.
Tool and argument names follow the member tools of Anthropic's computer use toolset, computer_toolset_20260801. The differences:
recordis extra; Anthropic's toolset has no equivalent.waitandhold_keystop at 10s. Anthropic allows up to 300s for both.scroll_amountstops at 20 wheel clicks.Key names are pyautogui's, matched without case, plus
superfor the Windows key.Returnandalt+Tabwork; X11 names such asPage_Downdo not.Only the primary monitor is captured. The current toolset has no monitor selection either: it rejects the older
display_numberparameter.
How coordinates work
Screenshots are downscaled so the long edge is at most 1372 pixels. Claude never sees native pixels: it clicks in the downscaled image, and the server converts the point back.
A 1920x1080 display captures at 1372x772. Going back multiplies by 1920/1372, so a click at 686, 443 lands at 960, 620. Anthropic's macOS implementation uses the same 1372 pixel long edge, which its docs give as a worked example: 3456x2234 captured as roughly 1372x887.
The server declares itself DPI-aware at startup, so Windows display scaling at 125% or 150% does not skew where clicks land.
Safety
This hands a language model control of your desktop. Anthropic's version wraps the same loop in guardrails this server lacks: per-app approval, hiding unapproved apps, keeping your terminal out of the screenshots, and model-side checks on each action.
The controls that do exist here:
Claude Code asks before each tool call unless you allow-list it. Allow-list the read-only capture tools and leave the rest on manual approval, by putting
"mcp__winuse__screenshot"and"mcp__winuse__zoom"in thepermissions.allowarray of.claude/settings.json.Park the mouse at the top-left pixel of the screen to stop the run. pyautogui raises on its next call, so it ends the sequence rather than interrupting a click already sent, and it works during the slow parts: a drag tweens for 0.4s and typing runs a keystroke at a time. An aborted drag releases the button on its way out, so nothing is left dragging.
hold_keychecks the mouse every 50ms and releases the key when you park it, and modifiers held for a click or scroll are released the same way.left_mouse_downleaves the button held until aleft_mouse_upcall. If a run stops between the two, click once yourself to release it.Every pixel of the primary monitor reaches the model, including windows you forgot were open. Treat text on screen as untrusted input: instructions that appear there are a prompt injection risk.
The install pins a tag. Pointing it at a branch instead would let a push change what drives your desktop, without you doing anything.
Limitations
Primary monitor only, chosen by the flag Windows reports, falling back to the monitor at the desktop origin.
Windows blocks synthetic input from a normal process to a window running as administrator, and the secure desktop behind a UAC prompt cannot be captured at all. Clicks aimed there are dropped by the operating system, and the tool still reports success, because nothing verifies that a click was accepted.
The session has to be interactive and unlocked. A locked screen or a disconnected remote desktop has nothing to capture.
Your terminal is not excluded from screenshots, so Claude sees its own session.
Clicks are clamped one pixel inside the monitor, which puts the outermost pixel row and column out of reach. That pixel is the failsafe point, and landing the cursor on it would make every later call abort.
Typing anything non-ASCII goes through the clipboard: it copies, sends ctrl+v, then puts your clipboard back. That fails wherever ctrl+v is not paste, such as a terminal.
Every click, drag and scroll given a coordinate moves the real cursor first, so your pointer jumps while Claude works.
recordreturns up to 8 still frames sampled over at most 15s. Frames only, no video, and each one costs image tokens.
Development
uv sync
uv run winuse-mcptests/ holds unit tests for the coordinate math and chord parsing. They replace mss, pyautogui and pyperclip with stand-ins, so they never touch the screen, mouse, keyboard or clipboard, and CI runs them on every pull request and every push to main.
uv run pytestscripts/client_test.py drives the real server over stdio and exits non-zero on the first failed check. It moves your mouse while it runs.
uv run python scripts/client_test.pyscripts/failsafe_test.py covers what happens when a run is aborted, with pyautogui stubbed so no real abort is needed. An aborted drag releases the button, an aborted horizontal scroll releases shift, a chord ending in + parses as the plus key, and the model's origin clamps away from the failsafe point.
uv run python scripts/failsafe_test.pyREADME.md is generated. The build reads the tool names, their arguments and the capacity constants straight out of server.py, so nothing on the page is typed by hand, and it refuses to write when a tool has no description, an asset is missing, or the art grows past its height budget. CI regenerates the page and fails if what is committed differs.
node scripts/readme/build.mjsTroubleshooting
winuse is missing from /mcp. The entry did not load. Run claude mcp list to see what Claude Code has, and re-add it if the name is absent. A project-scoped .mcp.json also needs you to accept the trust prompt when the project opens; declining it leaves the server silently absent.
It appears, then fails to connect. Run the command by hand and read the error:
uvx --from git+https://github.com/ryanportfolio/winuse-mcp@v0.2.0 winuse-mcpIt should start and wait quietly for input on stdin. uvx missing means uv is not installed or not on PATH. A git error means git is missing, or a proxy is blocking the clone. If it hangs on first run, that is the clone and the environment build; give it a minute before deciding it is broken.
The tools are there and nothing moves. Check whether the target window runs as administrator, and whether the screen was locked. Both are in Limitations and neither reports an error.
Clicks land in the wrong place. Confirm the target is on the primary monitor. Ask Claude for cursor_position after a mouse_move to a known point; one pixel of drift is expected, more than that is not.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Screenshots MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted MCP server and REST API that lets AI agents use apps with no API, signed in as you.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server that lets Claude Desktop and Claude Code control your PC — take screenshots, click, type, manage windows, and more.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that gives Claude human-like control of a Windows PC with its own virtual cursor, an emergency stop, and a manager UI.1MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that enables Claude to control your computer, similar to Anthropic's computer use but easy to set up locally.313 npm385MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that lets Claude operate your real computer by moving the actual mouse, clicking, typing, and reading the actual screen, working with your own logged-in sessions in any application.108 PyPI1MIT