
Windows-MCP Server
Mouse, keyboard, apps, files and PowerShell on a Windows PC, driven by your assistant.
- Needs your setup first
- ★ 10.6K GitHub stars
- 23.1K downloads a week
- Last commit 27 Oct 2026
What is Windows-MCP?
Windows-MCP is an open source MCP server that lets AI assistants operate a Windows 10 or 11 PC: opening apps, clicking, typing, reading the screen and running PowerShell.
- Tools
- 21
- Runs on
- Your computer
- Licence
- MIT
- GitHub stars
- 10.6K
Good for
- Automating desktop apps that have no API
- Repetitive form filling and file shuffling on a Windows PC
- Letting an agent check what is actually on screen before it acts
You'll need
- Windows 10 or 11
- Python 3.14 or newer and uv (for uvx)
Needs your setup firstIt needs something our Linux test machine does not have (an account, a desktop app, a Mac or a running service), so on 27 Oct 2026 we read its tools from the source code instead of running this config. windows-mcp on PyPI links back to CursorTouch/Windows-MCP. Version 0.8 needs the serve subcommand, which the shared database config left out.
MCP Shelf take
Windows-MCP needs something our Linux test machine does not have (an account, an app or a service), so on 27 Oct 2026 we read its source and counted 21 tools. 7 of the 21 only read; the other 14 can change things. It sits 2nd of 5 in its category on our shelf by GitHub stars (10.6K, with 23.1K downloads a week).
What can Windows-MCP read and change?
It can read
- Everything visible on screen and the structure of open windows
- Files and folders your Windows account can open
- The clipboard, running processes and the registry
- Web pages it is asked to scrape
It can change
- Any app it clicks or types into
- Files it writes, moves or deletes
- Registry values
- Processes it ends
- Whatever a PowerShell command does
Safer setup: Start it with --exclude-tools PowerShell,Registry, use --control-policy strict so it waits until you stop using the computer, and try it in a Windows virtual machine before your main PC.
Windows-MCP in more detail
Windows-MCP reads the Windows accessibility tree to find buttons, fields and menus, then clicks, types, scrolls and switches windows like a person at the keyboard. It also reaches past the screen: PowerShell, the file system, the clipboard, running processes and the registry.
That reach is the reason to set it up with care. It runs as your user with no sandbox, so turn off the tools you do not need (PowerShell and Registry are the obvious ones) and keep it on a machine where a wrong click is cheap.
- Made by
- CursorTouch
- Latest version
- 0.8.8 (10 Oct 2026)
- PyPI package
- windows-mcp
- Downloads
- 23.1K a week
- Last commit
- 27 Oct 2026
- Setup checked
- 27 Oct 2026
- Page updated
- 27 Oct 2026
What's in the pod
What tools does Windows-MCP have?
We found 21 tools in its source code on 27 Oct 2026. 7 only read. The rest can change things, so keep your app's "ask before each tool call" setting on for them.
How we tested it: Read from the source of Windows-MCP 0.8.8. It installs only on Windows (it depends on pywin32), so our Linux machine could not start it.
Runs commands1 tool · Can start programs or run code.
| Tool | What it is for |
|---|---|
Process | Lists running processes or ends one by PID or name. |
Changes things13 tools · Can create, edit, send or delete.
| Tool | What it is for |
|---|---|
App | Launches an app by its Start menu name or executable path, and moves, resizes or switches between windows. |
Click | Clicks at screen coordinates or on an element from the last snapshot, with the left, right or middle button. |
Clipboard | Reads or replaces what is on the Windows clipboard. |
FileSystem | Reads, writes, copies, moves, deletes, lists and searches files and folders. |
Move | Moves the pointer, or drags from one point to another. |
MultiEdit | Fills several input fields in one call. |
MultiSelect | Selects several items (files, checkboxes, list rows) in one call, holding Ctrl if asked. |
Notification | Shows a Windows toast notification under a registered app ID. |
PowerShell | Runs a PowerShell command and returns the output. |
Registry | Reads, writes, deletes and lists Windows Registry keys and values. |
Scroll | Scrolls a window or a region up, down, left or right. |
Shortcut | Presses a key combination such as Ctrl+C or Alt+Tab. |
Type | Types text at a spot or into a labelled field, optionally clearing it first and pressing Enter after. |
Only reads7 tools · Looks things up and changes nothing.
| Tool | What it is for |
|---|---|
ControlStatus | Says whether the assistant or the person currently has control of the desktop, and how long until the assistant may act again. |
DisplayInventory | Reports the monitors, their layout, work areas and scaling. |
Scrape | Fetches a web page and returns a summary of it, or reads the page open in the active browser tab. |
Screenshot | A faster capture that returns an image plus the cursor position and window list, without walking the accessibility tree. |
Snapshot | Captures the desktop state: open and focused windows, every clickable element with coordinates, and scrollable areas. Optionally adds a screenshot. |
Wait | Pauses for a set number of seconds. |
WaitFor | Waits until some text, a window or an element appears on screen. |
Grouped and described by us. The README on GitHub lists the inputs each tool takes.
How do I install Windows-MCP?
Install steps from the Windows-MCP README
The project's own instructions, copied from its README on GitHub on 27 Oct 2026 under its MIT licence. They are the source of truth; the ready-made configs further down are built from them. The rest of the README is in the README tab.
🛠️Installation
Note: When you install this MCP server for the first time it may take a minute or two because of installing the dependencies in pyproject.toml. In the first run the server may timeout ignore it and restart it.
Prerequisites
- Python 3.14+
- UV (Package Manager) from Astra, install with
pip install uvorcurl -LsSf https://astral.sh/uv/install.sh | sh - The
Apptool resolves localized Start Menu display names as well as internal app names; an English Windows display language is not required.
Run at Login
Run the server directly when needed:
uvx windows-mcp serve
uvx windows-mcp serve --transport sse --host localhost --port 8000
uvx windows-mcp serve --transport streamable-http --host localhost --port 8000
Install it as a background task that starts now and at every login:
windows-mcp install
# Or choose the HTTP transport and bind address explicitly
windows-mcp install --transport sse --host 127.0.0.1 --port 8000
This creates a per-user Scheduled Task named windows-mcp-server and a wrapper script at
~/.windows-mcp/start-server.cmd. Use windows-mcp uninstall to remove it. Logs are written
to ~/.windows-mcp/server.log and ~/.windows-mcp/server.error.log.
Install in Claude Desktop
- Install Claude Desktop.
npm install -g @anthropic-ai/mcpb
- Configure the MCP server.
Option A: Install from PyPI (Recommended)
Use uvx to run the latest version directly from PyPI.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}
Option B: Install from Source
- Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
- Add this to your
claude_desktop_config.json:
{
"mcpServers": {
"windows-mcp": {
"command": "uv",
"args": [
"--directory",
"<path to the windows-mcp directory>",
"run",
"windows-mcp",
"serve"
]
}
}
}
- Fully restart Claude Desktop and verify the server appears in the MCP tools list.
Claude Desktop MSIX (Windows Store)
The MSIX-packaged Claude Desktop (Microsoft Store version) virtualizes %APPDATA%. This causes two main issues:
- The config file is located at:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json(not%APPDATA%\Claude\). - Automatic installation from the "Claude Directory" will fail because the
${__dirname}variable resolves to the incorrect (non-virtualized) path.
To configure Windows-MCP on the Windows Store version of Claude:
You must manually edit the configuration file. Note that Electron apps in the MSIX sandbox do not inherit the system PATH, so you must use the full absolute path to uvx.exe (or uv.exe).
Option A: Using pre-installed executable
- In a terminal, run
uv tool install windows-mcp. - Use the generated executable in your config:
{
"mcpServers": {
"windows-mcp": {
"command": "C:\\Users\\<user>\\.local\\bin\\windows-mcp.exe",
"args": ["serve"]
}
}
}
Option B: Using uvx
{
"mcpServers": {
"windows-mcp": {
"command": "C:\\Users\\<user>\\.local\\bin\\uvx.exe",
"args": ["windows-mcp", "serve"]
}
}
}
Option C: Install from Source
{
"mcpServers": {
"windows-mcp": {
"command": "C:\\Users\\<user>\\.local\\bin\\uv.exe",
"args": [
"--directory",
"C:\\path\\to\\Windows-MCP",
"run",
"windows-mcp",
"serve"
]
}
}
}
Replace <user> with your Windows username. To find the correct paths, run where uvx, where windows-mcp, or where uv. Fully quit Claude Desktop (Tray → Quit) and reopen after saving the config.
For additional Claude Desktop integration troubleshooting, see the MCP documentation.
Install in Perplexity Desktop
- Install Perplexity Desktop.
- Open Perplexity Desktop and go to
Settings -> Connectors -> Add Connector -> Advanced. - Enter the name as
Windows-MCP, then paste one of the following configs.
Option A: Install from PyPI (Recommended)
{
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
Option B: Install from Source
{
"command": "uv",
"args": [
"--directory",
"<path to the windows-mcp directory>",
"run",
"windows-mcp",
"serve"
]
}
- Click
Save, then restart Perplexity Desktop if needed.
For additional Claude Desktop integration troubleshooting, see the Perplexity MCP Support. The documentation includes helpful tips for checking logs and resolving common issues.
Install in Gemini CLI
- Install Gemini CLI.
npm install -g @google/gemini-cli
- Open
%USERPROFILE%/.gemini/settings.json. - Add the
windows-mcpconfig and save it.
{
"theme": "Default",
...
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}
Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].
- Restart Gemini CLI.
Install in Qwen Code
1. Install Qwen Code.npm install -g @qwen-code/qwen-code@latest
- Open
%USERPROFILE%/.qwen/settings.json. - Add the
windows-mcpconfig and save it.
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}
Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].
- Restart Qwen Code.
Install in Codex CLI
1. Install Codex CLI.npm install -g @openai/codex
- Open
%USERPROFILE%/.codex/config.toml. - Add the
windows-mcpconfig and save it.
[mcp_servers.windows-mcp]
command="uvx"
args=[
"windows-mcp",
"serve"
]
Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].
- Restart Codex CLI.
Install in Autohand Code
Add the published stdio server from a Windows terminal:
autohand mcp add windows-mcp uvx windows-mcp serve
Add --scope project after add to keep the server configuration in the current project. See Autohand Code for current installation and CLI details.
Install in Claude Code
- Install Claude Code:
npm install -g @anthropic-ai/claude-code
- Configure the server:
Option A: Install from PyPI (Recommended)
Use uvx to run the latest version directly from PyPI.
claude mcp add --transport stdio windows-mcp -- uvx windows-mcp serve
Option B: Install from Source
- Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
- Run the following command in your terminal:
claude mcp add --transport stdio windows-mcp -- uv --directory "<path>" run windows-mcp serve
Note: To make the server available across all projects, add --scope user to the command.
- Rerun Claude Code in terminal. Enjoy 🥳
Note: On Windows, if you encounter "Connection closed" errors, use the full path to uvx.exe:
claude mcp add --transport stdio windows-mcp -- C:\Users\<user>\.local\bin\uvx.exe windows-mcp serve
To verify the server is registered, run claude mcp list. Inside Claude Code, use /mcp to check server status.
WSL (Windows Subsystem for Linux)
If you run Claude Code from WSL, the MCP server must still execute on the Windows side (it needs Windows APIs for UI automation). Use powershell.exe as the command to bridge WSL and Windows:
- Install
uvon Windows (from a PowerShell terminal):
irm https://astral.sh/uv/install.ps1 | iex
- From your WSL terminal, register the server:
claude mcp add windows-mcp --transport stdio -s user -- powershell.exe -Command "C:\Users\<user>\.local\bin\uvx.exe windows-mcp serve"
Replace <user> with your Windows username. The -s user flag makes the server available across all projects.
- Restart Claude Code and verify with
/mcp.
What you need first
- Windows 10 or 11
- Python 3.14 or newer and uv (for uvx)
Add Windows-MCP to your app
Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.
Where it goes: Your terminal, in the project folder
claude mcp add --transport stdio windows-mcp -- uvx windows-mcp serveFrom WSL, the server must still run on the Windows side: claude mcp add windows-mcp --transport stdio -s user -- powershell.exe -Command "C:\Users\<user>\.local\bin\uvx.exe windows-mcp serve".
Where it goes: ~/.cursor/mcp.json, or .cursor/mcp.json in a project
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}Where it goes: claude_desktop_config.json (Settings → Developer → Edit Config)
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}Windows-MCP is also in Claude's extension directory. The Microsoft Store version of Claude keeps its config under %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude and does not see your PATH, so use the full path to uvx.exe (where uvx prints it).
Where it goes: .vscode/mcp.json in your project
{
"servers": {
"windows-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}Where it goes: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app
[mcp_servers.windows-mcp]
command = "uvx"
args = ["windows-mcp", "serve"]Or run: codex mcp add windows-mcp -- uvx windows-mcp serve
Where it goes: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}Where it goes: Not supported
Not as a local server. It can run over HTTP with an auth key, TLS and an IP allowlist, but exposing control of a PC to the internet is risky and ChatGPT cannot send the key.
Add "--exclude-tools", "PowerShell,Registry" after serve to start without its two most powerful tools. Set "ANONYMIZED_TELEMETRY": "false" in env to switch off its usage reporting.
Checked against the project's own install docs on 27 Oct 2026: CursorTouch/Windows-MCP README.
Did this work for you?
Projects change their install steps often. If Windows-MCP did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.
New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.
Windows-MCP not working? Common fixes
- The first start times out
- uvx is still downloading dependencies the first time. Wait a minute and restart the client; later starts are quick.
- Claude Desktop from the Microsoft Store does not see the server
- The Store version keeps its config under %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude, and it does not inherit PATH, so use the full path to uvx.exe as the command.
- Screenshots fail or are rejected as too large
- Set WINDOWS_MCP_SCREENSHOT_SCALE to 0.5, or switch WINDOWS_MCP_SCREENSHOT_BACKEND to mss or pillow if the default capture method fails on your graphics card.
- Snapshot hangs on one app
- Some apps answer accessibility queries very slowly. Name them in WINDOWS_MCP_EXCLUDE_PROCESSES.
- Running Claude Code inside WSL
- The server has to run on the Windows side. Register it with powershell.exe -Command and the Windows path to uvx.exe, as the project README shows.
How do I configure Windows-MCP?
Names are exactly as the project spells them. Required ones are marked.
| Setting | What it does |
|---|---|
--exclude-toolsCommand line flag | Starts the server without the tools you list. The obvious first candidates are PowerShell and Registry.--exclude-tools PowerShell,Registry |
--toolsCommand line flag | The opposite: only the tools you list are switched on.--tools Snapshot,Screenshot,Click,Type |
--control-policyCommand line flag | How strictly the assistant waits for you to stop using the mouse and keyboard before it acts: relaxed (default), balanced or strict.--control-policy strict |
WINDOWS_MCP_SCREENSHOT_SCALEEnvironment variable | Shrinks screenshots before they are sent, which helps on 1440p and 4K screens where images get too big for the client.0.5 |
WINDOWS_MCP_EXCLUDE_PROCESSESEnvironment variable | Apps whose windows it should not inspect, for programs that make the accessibility scan slow or hang.Code.exe,Cursor.exe |
ANONYMIZED_TELEMETRYEnvironment variable | Set to false to stop the anonymous usage reporting it sends by default.false |
--transportCommand line flag | Runs it over SSE or streamable HTTP instead of stdio, so another machine can connect. Pair it with --auth-key and an IP allowlist.--transport streamable-http --host localhost --port 8000 |
~/.windows-mcp/config.tomlConfig | Keeps the same options in a file instead of on the command line. Command-line flags win when both are set. |
Windows-MCP FAQ
How do I add Windows-MCP to Claude Code?
Run claude mcp add --transport stdio windows-mcp -- uvx windows-mcp serve on Windows. If you run Claude Code inside WSL, launch it through powershell.exe with the full path to uvx.exe, because the server needs Windows APIs.
How do I install Windows-MCP in Claude Desktop?
Install it from Claude's extension directory, or add an entry running uvx windows-mcp serve to claude_desktop_config.json and fully quit Claude from the tray before reopening it. The first start installs dependencies and may time out once.
What can Windows-MCP do on my PC?
It launches and switches apps, clicks, types, scrolls and drags, reads the accessibility tree and screenshots, uses the clipboard, and can run PowerShell and edit the registry, which are its two most powerful tools.
Is Windows-MCP safe?
It acts as you on your real desktop. Start it with --exclude-tools PowerShell,Registry, use --control-policy strict so it waits until you stop using the PC, and try it in a virtual machine before your main computer.
Is Windows-MCP free?
Yes. It is MIT licensed and runs locally with uvx. It sends anonymous usage telemetry by default; set ANONYMIZED_TELEMETRY to false to turn that off.
Does Windows-MCP need a vision model?
No. It reads the Windows accessibility tree, so a model can work from text alone. Screenshots are optional, and WINDOWS_MCP_SCREENSHOT_SCALE shrinks them on high-resolution screens.
Does Windows-MCP work on macOS or Linux?
No. It uses Windows-only automation APIs and needs Windows 10 or 11 with Python 3.14 or newer. On a Mac, Peekaboo does a similar job.
Why does Windows-MCP time out the first time?
The first run downloads and installs its Python dependencies, which can take a minute or two. Let it finish, then restart your app and it starts quickly from then on.
Windows-MCP README
This is the project's own README from CursorTouch/Windows-MCP, written by CursorTouch, and shared under its MIT licence. We copied it on 27 Oct 2026, so the version on GitHub may be newer.
🪟 Windows-MCP
Windows-MCP is a lightweight, open-source project that enables seamless integration between AI agents and the Windows operating system. Acting as an MCP server bridges the gap between LLMs and the Windows operating system, allowing agents to perform tasks such as file navigation, application control, UI interaction, QA testing, and more.
mcp-name: io.github.CursorTouch/Windows-MCP
Updates
- Windows-MCP reached
2M+ Usersin Claude Desktop Extensiosn. - Try out 🪟Windows-Use, an agent built using Windows-MCP.
- Windows-MCP is now available on PyPI (thus supports
uvx windows-mcp) - Windows-MCP is added to MCP Registry
Supported Operating Systems
- Windows 10
- Windows 11
The current package requires Python 3.14+, which supports Windows 10 and newer. Earlier Windows versions are not supported by the current installation.
🎥 Demos
https://github.com/user-attachments/assets/d0e7ed1d-6189-4de6-838a-5ef8e1cad54e
https://github.com/user-attachments/assets/d2b372dc-8d00-4d71-9677-4c64f5987485
✨ Key Features
Seamless Windows Integration
Interacts natively with Windows UI elements, opens apps, controls windows, simulates user input, and more.Use Any LLM (Vision Optional) Unlike many automation tools, Windows-MCP doesn't rely on any traditional computer vision techniques or specific fine-tuned models; it works with any LLMs, reducing complexity and setup time.
Rich Toolset for UI Automation
Includes tools for basic keyboard, mouse operation and capturing window/UI state.Lightweight & Open-Source
Minimal dependencies and easy setup with full source code available under MIT license.Customizable & Extendable
Easily adapt or extend tools to suit your unique automation or AI integration needs.Real-Time Interaction
Typical latency between actions (e.g., from one mouse click to the next) ranges from 0.2 to 0.5 secs, and may slightly vary based on the number of active applications and system load, also the inferencing speed of the llm.DOM Mode for Browser Automation
Specialuse_dom=Truemode for State-Tool that focuses exclusively on web page content, filtering out browser UI elements for cleaner, more efficient web automation. Supports Chrome, Edge, and Firefox (Firefox uses an IAccessible2 fallback since it doesn't exposeRootWebAreavia UIA).
🛠️Installation
Note: When you install this MCP server for the first time it may take a minute or two because of installing the dependencies in pyproject.toml. In the first run the server may timeout ignore it and restart it.
Prerequisites
- Python 3.14+
- UV (Package Manager) from Astra, install with
pip install uvorcurl -LsSf https://astral.sh/uv/install.sh | sh - The
Apptool resolves localized Start Menu display names as well as internal app names; an English Windows display language is not required.
Run at Login
Run the server directly when needed:
uvx windows-mcp serve
uvx windows-mcp serve --transport sse --host localhost --port 8000
uvx windows-mcp serve --transport streamable-http --host localhost --port 8000
Install it as a background task that starts now and at every login:
windows-mcp install
# Or choose the HTTP transport and bind address explicitly
windows-mcp install --transport sse --host 127.0.0.1 --port 8000
This creates a per-user Scheduled Task named windows-mcp-server and a wrapper script at
~/.windows-mcp/start-server.cmd. Use windows-mcp uninstall to remove it. Logs are written
to ~/.windows-mcp/server.log and ~/.windows-mcp/server.error.log.
Install in Claude Desktop
- Install Claude Desktop.
npm install -g @anthropic-ai/mcpb
- Configure the MCP server.
Option A: Install from PyPI (Recommended)
Use uvx to run the latest version directly from PyPI.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}
Option B: Install from Source
- Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
- Add this to your
claude_desktop_config.json:
{
"mcpServers": {
"windows-mcp": {
"command": "uv",
"args": [
"--directory",
"<path to the windows-mcp directory>",
"run",
"windows-mcp",
"serve"
]
}
}
}
- Fully restart Claude Desktop and verify the server appears in the MCP tools list.
Claude Desktop MSIX (Windows Store)
The MSIX-packaged Claude Desktop (Microsoft Store version) virtualizes %APPDATA%. This causes two main issues:
- The config file is located at:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json(not%APPDATA%\Claude\). - Automatic installation from the "Claude Directory" will fail because the
${__dirname}variable resolves to the incorrect (non-virtualized) path.
To configure Windows-MCP on the Windows Store version of Claude:
You must manually edit the configuration file. Note that Electron apps in the MSIX sandbox do not inherit the system PATH, so you must use the full absolute path to uvx.exe (or uv.exe).
Option A: Using pre-installed executable
- In a terminal, run
uv tool install windows-mcp. - Use the generated executable in your config:
{
"mcpServers": {
"windows-mcp": {
"command": "C:\\Users\\<user>\\.local\\bin\\windows-mcp.exe",
"args": ["serve"]
}
}
}
Option B: Using uvx
{
"mcpServers": {
"windows-mcp": {
"command": "C:\\Users\\<user>\\.local\\bin\\uvx.exe",
"args": ["windows-mcp", "serve"]
}
}
}
Option C: Install from Source
{
"mcpServers": {
"windows-mcp": {
"command": "C:\\Users\\<user>\\.local\\bin\\uv.exe",
"args": [
"--directory",
"C:\\path\\to\\Windows-MCP",
"run",
"windows-mcp",
"serve"
]
}
}
}
Replace <user> with your Windows username. To find the correct paths, run where uvx, where windows-mcp, or where uv. Fully quit Claude Desktop (Tray → Quit) and reopen after saving the config.
For additional Claude Desktop integration troubleshooting, see the MCP documentation.
Install in Perplexity Desktop
- Install Perplexity Desktop.
- Open Perplexity Desktop and go to
Settings -> Connectors -> Add Connector -> Advanced. - Enter the name as
Windows-MCP, then paste one of the following configs.
Option A: Install from PyPI (Recommended)
{
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
Option B: Install from Source
{
"command": "uv",
"args": [
"--directory",
"<path to the windows-mcp directory>",
"run",
"windows-mcp",
"serve"
]
}
- Click
Save, then restart Perplexity Desktop if needed.
For additional Claude Desktop integration troubleshooting, see the Perplexity MCP Support. The documentation includes helpful tips for checking logs and resolving common issues.
Install in Gemini CLI
- Install Gemini CLI.
npm install -g @google/gemini-cli
- Open
%USERPROFILE%/.gemini/settings.json. - Add the
windows-mcpconfig and save it.
{
"theme": "Default",
...
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}
Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].
- Restart Gemini CLI.
Install in Qwen Code
1. Install Qwen Code.npm install -g @qwen-code/qwen-code@latest
- Open
%USERPROFILE%/.qwen/settings.json. - Add the
windows-mcpconfig and save it.
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
]
}
}
}
Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].
- Restart Qwen Code.
Install in Codex CLI
1. Install Codex CLI.npm install -g @openai/codex
- Open
%USERPROFILE%/.codex/config.toml. - Add the
windows-mcpconfig and save it.
[mcp_servers.windows-mcp]
command="uvx"
args=[
"windows-mcp",
"serve"
]
Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].
- Restart Codex CLI.
Install in Autohand Code
Add the published stdio server from a Windows terminal:
autohand mcp add windows-mcp uvx windows-mcp serve
Add --scope project after add to keep the server configuration in the current project. See Autohand Code for current installation and CLI details.
Install in Claude Code
- Install Claude Code:
npm install -g @anthropic-ai/claude-code
- Configure the server:
Option A: Install from PyPI (Recommended)
Use uvx to run the latest version directly from PyPI.
claude mcp add --transport stdio windows-mcp -- uvx windows-mcp serve
Option B: Install from Source
- Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
- Run the following command in your terminal:
claude mcp add --transport stdio windows-mcp -- uv --directory "<path>" run windows-mcp serve
Note: To make the server available across all projects, add --scope user to the command.
- Rerun Claude Code in terminal. Enjoy 🥳
Note: On Windows, if you encounter "Connection closed" errors, use the full path to uvx.exe:
claude mcp add --transport stdio windows-mcp -- C:\Users\<user>\.local\bin\uvx.exe windows-mcp serve
To verify the server is registered, run claude mcp list. Inside Claude Code, use /mcp to check server status.
WSL (Windows Subsystem for Linux)
If you run Claude Code from WSL, the MCP server must still execute on the Windows side (it needs Windows APIs for UI automation). Use powershell.exe as the command to bridge WSL and Windows:
- Install
uvon Windows (from a PowerShell terminal):
irm https://astral.sh/uv/install.ps1 | iex
- From your WSL terminal, register the server:
claude mcp add windows-mcp --transport stdio -s user -- powershell.exe -Command "C:\Users\<user>\.local\bin\uvx.exe windows-mcp serve"
Replace <user> with your Windows username. The -s user flag makes the server available across all projects.
- Restart Claude Code and verify with
/mcp.
🖥️ Running Windows-MCP
Windows-MCP runs directly on your Windows machine and exposes its tools to the connected MCP client.
# Runs with stdio transport (default)
uvx windows-mcp serve
# Or with SSE/Streamable HTTP for network access
uvx windows-mcp serve --transport sse --host localhost --port 8000
uvx windows-mcp serve --transport streamable-http --host localhost --port 8000
Optional environment variables can be set to customize behavior — see Environment Variables below.
Security for Remote Access
For network access, enable authentication and TLS:
windows-mcp serve --transport sse --host 0.0.0.0 \
--auth-key "your_secret_token" \
--ip-allowlist "203.0.113.0/24" \
--ssl-certfile cert.pem --ssl-keyfile key.pem
See 🔐 Security & Access Control for all options.
Transport Options
| Transport | Command | Use Case |
|---|---|---|
stdio (default) |
serve --transport stdio |
Direct connection from MCP clients like Claude Desktop, Cursor, etc. |
sse |
serve --transport sse --host HOST --port PORT |
Network-accessible via Server-Sent Events |
streamable-http |
serve --transport streamable-http --host HOST --port PORT |
Network-accessible via HTTP streaming (recommended for production) |
🔐 Security & Access Control
Authentication
windows-mcp serve --transport sse --host 0.0.0.0 --auth-key "your_token"
Requires Authorization: Bearer your_token header on all requests.
IP Allowlist
windows-mcp serve --auth-key "token" --ip-allowlist "203.0.113.0/24,198.51.100.5"
Restricts connections to specified CIDR ranges. Blocks private/loopback IPs by default.
CORS Origins
By default, no CORS headers are emitted. Browsers block cross-origin requests via their own Same-Origin Policy, which means arbitrary websites cannot reach the MCP control plane even if the server is on localhost. Host-header validation (DNS rebinding protection) is also applied automatically based on the bind address.
If you need a browser-based MCP client to reach the server, opt in with an explicit origin allowlist:
windows-mcp serve --cors-origins "https://my-client.example.com,https://other.example.com"
Only the listed origins receive Access-Control-Allow-Origin headers; all other cross-origin requests are rejected by the browser. The equivalent environment variable is WINDOWS_MCP_CORS_ORIGINS.
Tool Selection
All tools are enabled by default. Use --tools to whitelist specific tools, or --exclude-tools to block specific ones.
windows-mcp serve --tools "Screenshot,Click,Snapshot" # Enable only these tools
windows-mcp serve --exclude-tools "PowerShell,Registry" # Disable specific tools
TLS/HTTPS
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
windows-mcp serve --ssl-certfile cert.pem --ssl-keyfile key.pem
OAuth 2.0 + PKCE
For MCP clients that use OAuth (e.g. Claude Desktop) instead of a static API key:
windows-mcp serve --transport streamable-http --host 0.0.0.0 \
--ssl-certfile ~/.windows-mcp/cert.pem \
--ssl-keyfile ~/.windows-mcp/key.pem \
--oauth-client-id my-client \
--oauth-client-secret my-secret
Claude Desktop config:
{
"mcpServers": {
"windows-mcp": {
"type": "http",
"url": "https://<host>:8000/mcp/",
"oauth": {
"clientId": "my-client",
"clientSecret": "my-secret"
}
}
}
}
The OAuth server exposes:
GET /.well-known/oauth-authorization-server— server metadata (RFC 8414)GET /oauth/authorize— Authorization Code + PKCE (S256required)POST /oauth/token— token exchange (client secret required)POST /oauth/register— disabled; clients must be pre-provisioned
Dynamic client registration is disabled. Redirect URIs must be loopback http(s) only.
Auth key and OAuth can coexist — both are accepted as valid Bearer tokens.
Config File (~/.windows-mcp/config.toml)
Instead of passing flags every time, store your configuration in ~/.windows-mcp/config.toml. CLI flags always override config file values.
Search order:
--config /path/to/config.toml~/.windows-mcp/config.toml
stdio — local only, no security needed:
[server]
transport = "stdio"
SSE — network access with auth and IP restriction:
[server]
transport = "sse"
host = "0.0.0.0"
port = 8000
auth_key = "your-secret-key"
[security]
ip_allowlist = ["192.168.1.0/24"]
Streamable HTTP — with auth, TLS, and tool exclusions:
[server]
transport = "streamable-http"
host = "0.0.0.0"
port = 8000
auth_key = "your-secret-key"
ssl_certfile = "cert.pem" # resolved relative to ~/.windows-mcp/
ssl_keyfile = "key.pem"
[security]
ip_allowlist = ["192.168.1.0/24"]
cors_origins = ["https://my-client.example.com"] # optional — browser CORS opt-in
oauth_client_id = "my-client" # optional — enables OAuth 2.0 + PKCE
oauth_client_secret = "my-secret"
[tools]
exclude = ["PowerShell", "Registry"] # disable specific tools
Place cert and key files in the same directory:
~/.windows-mcp/
├── config.toml
├── cert.pem
└── key.pem
Generate a self-signed cert directly into that directory:
mkdir -p ~/.windows-mcp
openssl req -x509 -newkey rsa:4096 \
-keyout ~/.windows-mcp/key.pem \
-out ~/.windows-mcp/cert.pem \
-days 365 -nodes
Desktop control
Desktop control is enabled by default with the relaxed policy: direct desktop
actions are gated, while background tools can run as you use the computer.
Configure it in ~/.windows-mcp/config.toml (or disable it entirely with enabled = false):
[control]
enabled = true
policy = "relaxed"
idle_timeout_seconds = 10.0
Or override it for one MCP server launch:
windows-mcp serve --no-control
windows-mcp serve --control --control-idle-timeout 3
windows-mcp serve --control-policy strict
In your MCP client's launch arguments, put these options after serve.
The priority is CLI > environment variable > TOML > default. --control can
explicitly override enabled = false. The timeout accepts finite positive seconds
(including fractions); zero does not disable control. The default remains 10 seconds.
Restart the Windows-MCP server process after changing these settings. There is no
hot reload or AI configuration tool. ControlStatus reports the effective enabled
policy, and idle_timeout_seconds values, with state disabled when control is off.
Disabling control turns off ownership gating, physical input protection, takeover monitoring, and the control indicator. Tools remain available and serialized, with injected key/button cleanup retained. AI desktop actions can then interfere with your own input; PowerShell scripts can also operate the UI. The separate screenshot flash setting is unchanged. When control is enabled, the idle timer restarts with physical input, so shortening it does not allow gated calls while you keep using the computer.
During AI control, small mouse movements remain blocked without pausing the current
tool. Mouse takeover adds up the length of each relative raw-input movement,
including back-and-forth movement, until it reaches 500 device units by default.
A gap of 0.5 seconds without movement starts a new segment; switching devices or
starting a new control period also clears the total. Set control.mouse_takeover_units
in TOML to change the threshold (40–2000), then restart the server. These are device
units, not screen pixels. Devices that do not provide identifiable relative raw
input, including some touchpads and remote-input devices, must use
Ctrl+Alt+Shift+Backspace to take over. The legacy mouse_takeover_pixels setting
is still accepted for compatibility but no longer affects takeover.
Desktop gate policies
| Policy | Operations that require desktop ownership |
|---|---|
relaxed (A, default) |
Direct input: Click, Type, Scroll, Move, Shortcut, MultiSelect, MultiEdit; App switch and resize. |
balanced (B) |
Everything in A, plus PowerShell, Notification, App launch/launch_executable, Process kill, and Clipboard set. |
strict (C) |
All tools except ControlStatus, matching the previous gate behavior. |
FileSystem, Registry, Snapshot, Screenshot, Scrape, Wait, WaitFor, DisplayInventory,
Process list, and Clipboard get bypass ownership in A and B. This classification
concerns desktop interference, not permissions or data safety. PowerShell can still
operate the UI, and file/registry operations can have other side effects.
Ungated calls do not acquire or extend the desktop lease, activate its indicator,
or wait for its tool lock. Existing resource constraints still apply: UI Automation
operations share a dedicated worker, so a long WaitFor can delay other UIA work.
The separate screenshot flash is unchanged. --no-control retains its existing
all-tools serialization and overrides the policy's ownership checks.
In relaxed mode, agents should prefer background work and coordinate known desktop interference with the user. Obtain permission before knowingly disrupting a user's process or taking focus, reusing existing authorization. These are tool-use guidelines, not server-enforced approval or process ownership tracking. Clipboard continues to use the real Windows clipboard; no virtual clipboard is introduced.
For contributors: tool categories and the few mode-specific exceptions live in
src/windows_mcp/tools/control_policy.py. Update that table when adding tools or modes;
registration coverage tests detect omissions. Unknown extensions conservatively
use the gate. Keep policy decisions out of individual tool implementations.
auth Helper
Generate an auth key and save a working config to ~/.windows-mcp/config.toml:
windows-mcp auth
Generate auth plus a self-signed TLS certificate:
windows-mcp auth --transport streamable-http --host 0.0.0.0 --port 8000 --with-tls
This command writes the auth key into the config file, can generate cert.pem and key.pem, and prints an example MCP client configuration for the selected transport.
SSRF Protection
Scrape tool blocks: private IPs, loopback, link-local, credentials-in-URLs, non-HTTP schemes.
⚙️ Environment Variables
All variables are optional unless noted. Set them via the env key in claude_desktop_config.json (or your MCP client's equivalent config).
Screenshot & Snapshot
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_SCREENSHOT_SCALE |
1.0 |
Scale factor applied to screenshots before encoding. Accepts a float in the range 0.1–1.0. Useful on high-resolution displays (1440p, 4K) where the default produces images that exceed Claude Desktop's 1 MB tool-result limit. Set to 0.5 to halve both dimensions (quarter the file size). |
WINDOWS_MCP_SCREENSHOT_BACKEND |
auto |
Screenshot capture backend. Accepted values: auto (tries dxcam → mss → pillow in order), dxcam, mss, pillow. Use mss or pillow if dxcam is unavailable or causes issues on your GPU. |
WINDOWS_MCP_PROFILE_SNAPSHOT |
(disabled) | Set to 1, true, yes, or on to emit per-stage timing logs for Screenshot/Snapshot calls. Useful for diagnosing slow captures. |
WINDOWS_MCP_DISABLE_FLASH |
(disabled) | Set to 1, true, yes, or on to suppress the orange-red glowing border that briefly highlights the captured area after every screenshot. The flash is rendered on a transparent always-on-top window after capture so it never appears in the captured image. |
Excluding processes from UI Automation traversal
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_EXCLUDE_PROCESSES |
(none) | Comma-separated process basenames whose windows are excluded from UI Automation tree traversal, e.g. Code.exe,Cursor.exe. Matching is case-insensitive and exact — no wildcards or regular expressions. Unset or empty preserves current behaviour. |
Some applications expose accessibility trees that can become slow or unresponsive during UI Automation traversal. Snapshot and WaitFor may traverse the active window and other top-level handles selected for tree capture, so one pathological accessibility provider can stall the capture.
Set:
WINDOWS_MCP_EXCLUDE_PROCESSES=Code.exe,Cursor.exe
Process names are comma-separated executable basenames. They are matched case-insensitively after surrounding whitespace is stripped; empty entries are ignored and duplicates are harmless.
A window is excluded before any UI Automation call is made against it, so its accessibility provider is never entered. Excluded applications may still appear in the window list, but Windows-MCP will not traverse their accessibility trees, and they are not reported as failed captures. If the owning process of a window cannot be resolved, the window is traversed as usual.
This is an exclusion mechanism — a mitigation, not a complete fix for every form of #383. It only skips the processes you name; a pathological window you have not listed can still stall a capture.
UI Automation timeouts
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_UIA_CONNECTION_TIMEOUT_MS |
2000 |
Milliseconds UI Automation waits to connect to a window's accessibility provider before failing that window. Positive integer; anything else uses the default. |
WINDOWS_MCP_UIA_TRANSACTION_TIMEOUT_MS |
5000 |
Milliseconds a single UI Automation call into a provider may take before it fails. Positive integer; anything else uses the default. |
When a window stops answering UI Automation (its UI thread is busy, deadlocked, or still starting up), Snapshot, WaitFor and other UI-tree tools now skip that window after one timeout. The window is reported as a failed capture, and the rest of the desktop is still returned. Previously the call waited until the window recovered, and every later tool call queued behind it. Raise these values only if an application legitimately needs longer for a single accessibility call. To stop traversing an application at all, use WINDOWS_MCP_EXCLUDE_PROCESSES.
Desktop control settings
If a physical key/button release event is missed, the input monitor checks residual
holds after the configured idle wait. Five consecutive all-released samples, at
least 100 ms apart, clear the stale records. New physical input or a reported held
key/button resets confirmation. This is best-effort: a zero GetAsyncKeyState
result counts as released even when Windows cannot provide the state; repeated
sampling filters transient readings but cannot distinguish persistent query failure.
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_CONTROL |
true |
Enable desktop control coordination. Set to false to disable. Equivalent to --control/--no-control; restart required. |
WINDOWS_MCP_CONTROL_POLICY |
relaxed |
Gate policy: relaxed, balanced, or strict. Equivalent to --control-policy; restart required. |
WINDOWS_MCP_CONTROL_IDLE_TIMEOUT |
10.0 |
Finite positive idle wait in seconds. Equivalent to --control-idle-timeout; restart required. |
Security
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_AUTH_KEY |
(none) | Bearer token required on all HTTP requests. Alternative to --auth-key CLI flag. |
WINDOWS_MCP_IP_ALLOWLIST |
(none) | Comma-separated list of allowed client IPs or CIDR ranges (e.g., 203.0.113.0/24,198.51.100.5). Alternative to --ip-allowlist CLI flag. |
WINDOWS_MCP_CORS_ORIGINS |
(none) | Comma-separated list of origins permitted to make cross-origin browser requests (e.g., https://my-client.example.com). No CORS headers are emitted when unset. Alternative to --cors-origins CLI flag. |
WINDOWS_MCP_TOOLS |
(all enabled) | Comma-separated explicit list of tools to enable (e.g., Screenshot,Click,Snapshot). Alternative to --tools CLI flag. |
WINDOWS_MCP_EXCLUDE_TOOLS |
(none) | Comma-separated list of tools to disable (e.g., PowerShell,Registry). Alternative to --exclude-tools CLI flag. |
WINDOWS_MCP_SSL_CERTFILE |
(none) | Path to TLS certificate file (.pem) for HTTPS. Must be provided with WINDOWS_MCP_SSL_KEYFILE. |
WINDOWS_MCP_SSL_KEYFILE |
(none) | Path to TLS private key file (.pem) for HTTPS. Must be provided with WINDOWS_MCP_SSL_CERTFILE. |
WINDOWS_MCP_OAUTH_CLIENT_ID |
(none) | OAuth client ID for HTTP transports. Must be provided with WINDOWS_MCP_OAUTH_CLIENT_SECRET. |
WINDOWS_MCP_OAUTH_CLIENT_SECRET |
(none) | OAuth client secret for HTTP transports. Must be provided with WINDOWS_MCP_OAUTH_CLIENT_ID. |
WINDOWS_MCP_STATELESS_HTTP |
false |
Set to 1, true, yes, or on to run streamable-http without Mcp-Session-Id connection state. Useful for reconnects after restarts and for horizontally scaled deployments. |
Telemetry
| Variable | Default | Description |
|---|---|---|
ANONYMIZED_TELEMETRY |
true |
Set to false to disable anonymous usage telemetry. No personal data, tool arguments, or outputs are ever collected regardless of this setting. |
POSTHOG_API_KEY |
Project default | Override the PostHog project write key used for anonymous telemetry. Set to an empty string to skip PostHog client initialization. |
POSTHOG_HOST |
https://us.i.posthog.com |
Override the PostHog host for anonymous telemetry, such as for a self-hosted PostHog deployment. |
Debug
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_DEBUG |
false |
Set to 1, true, yes, or on to enable debug mode, which sets the log level to DEBUG for verbose output. Also available as the --debug CLI flag. |
WatchDog
| Variable | Default | Description |
|---|---|---|
WINDOWS_MCP_WATCHDOG |
false |
Set to on, 1, true, yes, or enabled (case-insensitive) to run the UIA focus watchdog. It is off by default because its only remaining effect is debug logging of focus changes, while it costs a background thread and a long-lived UIA event subscription that can crash the server on unstable UIA environments after long uptime (e.g. across a sleep/resume or session change). The accessibility tree is built on demand for every tool call either way, so tool behaviour is unaffected. |
Example claude_desktop_config.json:
Local (no security):
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": ["windows-mcp", "serve"],
"env": { "WINDOWS_MCP_SCREENSHOT_SCALE": "0.5" }
}
}
}
Remote (with auth + IP allowlist + TLS):
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": ["windows-mcp", "serve", "--transport", "sse", "--host", "0.0.0.0"],
"env": {
"WINDOWS_MCP_AUTH_KEY": "your_token",
"WINDOWS_MCP_IP_ALLOWLIST": "203.0.113.0/24",
"WINDOWS_MCP_SSL_CERTFILE": "/path/to/cert.pem",
"WINDOWS_MCP_SSL_KEYFILE": "/path/to/key.pem"
}
}
}
}
🔨MCP Tools
MCP Client can access the following tools to interact with Windows:
Click: Click on the screen at the given coordinates.Type: Type text on an element (optionally clears existing text).Scroll: Scroll vertically or horizontally on the window or specific regions.Move: Move mouse pointer or drag (set drag=True) to coordinates. For deterministic drag, setfrom_loc=[x, y]withdrag=Trueto press at an explicit start point and release atlocin one tool call. Optionaldurationadds bounded intermediate movement.Shortcut: Press keyboard shortcuts (Ctrl+c,Alt+Tab, etc).Wait: Pause for a defined duration.WaitFor: Wait until text, an active window, an element, or a focused element appears by polling UI state inside one tool call.ControlStatus: Read the desktop control owner and remaining user-idle wait. It stays available when user takeover blocks new tool calls. During AI control, a visible edge and cursor glow indicate ownership; moving the physical mouse substantially or pressingCtrl+Alt+Shift+Backspacereturns control to the user until 10 seconds of inactivity. During screenshot capture, the indicator is temporarily hidden and physical input is released; any physical input during this interval preempts AI control, althoughControlStatuscan briefly still reportaiuntil that event is processed. Stepwise desktop input stops at its next checkpoint, but an already-running external command (for examplePowerShellor anApplaunch) may continue after takeover; this control gate does not cancel processes or undo completed side effects. On a detected hook fault, injected keys and mouse buttons are released asynchronously, so physical input can briefly overlap a still-held AI key or button. Windows may also silently remove a low-level hook without notifying this process; periodic hook replacement reduces but does not eliminate that undetected window. User takeover is therefore best-effort, not a security boundary or a guarantee of exclusive control. Sessionless MCP 2026-07-28 clients cannot receive unsolicited control-state logs; they should queryControlStatuswhen they need the current owner.DisplayInventory: Read display layout, work areas, effective DPI, and scale metadata.Screenshot: Fast screenshot-first desktop capture with cursor position, active/open windows, and an image. Skips UI tree extraction for speed and should be the default first call when you mainly need visual context. Supportsdisplay=[0]ordisplay=[0,1]using zero-based active Windows display indices, andregion=[left, top, right, bottom](virtual-desktop pixel coordinates) to capture just that rectangle instead of the whole screen — cheaper on tokens when you already know which area matters.regiontakes precedence overdisplaywhen both are given; an invalid or out-of-bounds region raises an error. After capture, a brief orange-red glowing border is drawn inside the captured area as a visual confirmation (setWINDOWS_MCP_DISABLE_FLASH=1to disable).Snapshot: Full desktop state capture for workflows that need interactive element ids, scrollable regions, oruse_dom=Truebrowser extraction. Supportsuse_vision=Truefor including screenshots,display=[0]ordisplay=[0,1]using zero-based active Windows display indices, andregion=[left, top, right, bottom](virtual-desktop pixel coordinates) to inspect just that rectangle instead of the whole screen;regiontakes precedence overdisplaywhen both are given, and an invalid or out-of-bounds region raises an error.App: Launch an application by Start Menu name or strictly by executable path with separated argv and optional cwd; resize, move, and switch between windows.PowerShell: To execute PowerShell commands.FileSystem: Read, write, copy, move, delete, list, search, and inspect files and directories.Scrape: To scrape the entire webpage for information.MultiSelect: Select multiple items (files, folders, checkboxes) with optional Ctrl key. Uses bulk label-to-coordinate resolution when labels are provided.MultiEdit: Enter text into multiple input fields at specified coordinates. Uses bulk label-to-coordinate resolution when labels are provided.Clipboard: Read or set Windows clipboard content.Process: List running processes or terminate them by PID or name.Notification: Send a Windows toast notification withtitle,message, and a requiredapp_id(registered Windows AppUserModelID). See the example below.Registry: Read, write, delete, or list Windows Registry values and keys.
Toast notifications
Notification requires a registered Windows AppUserModelID in app_id, in addition
to title and message. Windows attributes the toast to that app. To find IDs
registered on the target machine, run this in PowerShell (or via the PowerShell tool):
Get-StartApps | Select-Object Name, AppID
Use the AppID value, not the app's display name. For example, if the list includes
Microsoft.Windows.Explorer, an MCP tool call is:
{
"name": "Notification",
"arguments": {
"title": "Windows-MCP",
"message": "Task complete",
"app_id": "Microsoft.Windows.Explorer"
}
}
🤝 Connect with Us
Stay updated and join our community:
📢 Follow us on X for the latest news and updates
💬 Join our Discord Community
Star History
👥 Contributors
Thanks to all the amazing people who have contributed to Windows-MCP! 🎉
We appreciate every contribution, whether it's code, documentation, bug reports, or feature suggestions. Want to contribute? Check out our Contributing Guidelines!
🔒 Security
Important: Windows-MCP operates with full system access and can perform irreversible operations. Please review our comprehensive security guidelines before deployment.
For detailed security information, including:
- Tool-specific risk assessments
- Deployment recommendations
- Vulnerability reporting procedures
- Compliance and auditing guidelines
Please read our Security Policy.
📊 Telemetry
Windows-MCP collects usage data to help improve the MCP server. No personal information, no tool arguments, no outputs are tracked.
To disable telemetry, set ANONYMIZED_TELEMETRY to false in your MCP client configuration:
{
"mcpServers": {
"windows-mcp": {
"command": "uvx",
"args": [
"windows-mcp",
"serve"
],
"env": {
"ANONYMIZED_TELEMETRY": "false"
}
}
}
}
See the Environment Variables section for the full list of configurable options.
For detailed information on what data is collected and how it is handled, please refer to the Telemetry and Data Privacy section in our Security Policy.
📝 Limitations
- Selecting specific sections of the text in a paragraph, as the MCP is relying on a11y tree. (⌛ Working on it.)
Type-Toolis meant for typing text, not programming in IDE because of it types program as a whole in a file. (⌛ Working on it.)- This MCP server can't be used to play video games 🎮.
🪪 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgements
Windows-MCP makes use of several excellent open-source projects that power its Windows automation features:
Huge thanks to the maintainers and contributors of these libraries for their outstanding work and open-source spirit.
🤝Contributing
Contributions are welcome! Please see CONTRIBUTING for setup instructions and development guidelines.
Made with ❤️ by CursorTouch
Citation
@software{
author = {CursorTouch},
title = {Windows-MCP: Lightweight open-source project for integrating LLM agents with Windows},
year = {2024},
publisher = {GitHub},
url={https://github.com/CursorTouch/Windows-MCP}
}
Two peas, one chat
Chat with AI about Windows-MCP
Opens a chat primed with Windows-MCP’s README and setup docs from this page, or add it in Cursor to use its tools.
The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.
Peas in a pod
What are the alternatives to Windows-MCP?
How Windows-MCP lines up against its neighbours on the shelf. See every agent helpers and desktop control server.

Windows-MCPThis pea
Mouse, keyboard, apps, files and PowerShell on a Windows PC, driven by your assistant.
- Tools
- 21
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 10.6K

Tap, swipe, type and read the screen on iOS and Android, real or simulated.
- Tools
- 34
- Runs on
- Your computer
- Licence
- Apache-2.0
- Stars
- 10.1K

Each coding agent gets its own container and git branch, so several can work at once.
- Tools
- 15
- Runs on
- Your computer
- Licence
- Apache-2.0
- Stars
- 4.1K

Lets an assistant explore and command a ROS or ROS 2 robot through rosbridge.
- Tools
- 31
- Runs on
- Your computer
- Licence
- Apache-2.0
- Stars
- 1.5K

A numbered scratchpad the model fills in, revises and branches while it works.
- Tools
- 1
- Runs on
- Your computer
- Licence
- MIT / Apache-2.0
- Stars
- 91.6K
Something wrong on this page? Tell us.
For bots & AI agents
Machine-readable versions of Windows-MCP and MCP Shelf. Fetch these instead of parsing this page.
This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs