Windows

Social media

An MCP Server for computer-use in Windows OS.

Your AI app calls the Windows MCP server, which does the social media work and sends the result back to the chat.

About Windows

Windows is a community MCP server from CursorTouch, filed in our directory under social media. An MCP Server for computer-use in Windows OS.

Windows runs on your own machine: your AI app starts it with the command uvx windows-mcp==0.8.1 and talks to it over standard input and output.

The README for Windows lists tools such as Click, Type, Scroll and Move, which your AI app can call once the server is connected.

Windows is listed in the official MCP registry as io.github.CursorTouch/Windows-MCP, version 1.0.1.

At a glance

Publisher
CursorTouch (community)
Runs
Locally on your machine
Install from
Python package on PyPI: windows-mcp
Written in
Python
License
MIT
GitHub stars
12,419
Official MCP registry
io.github.CursorTouch/Windows-MCP

Tools Windows gives your AI app

  • ClickClick on the screen at the given coordinates.
  • TypeType text on an element (optionally clears existing text).
  • ScrollScroll vertically or horizontally on the window or specific regions.
  • MoveMove mouse pointer or drag (set drag=True) to coordinates. For deterministic.
  • ShortcutPress keyboard shortcuts (Ctrl+c, Alt+Tab, etc).
  • WaitPause for a defined duration.
  • WaitForWait until text, an active window, an element, or a focused element appears by polling UI state inside one tool call.
  • ControlStatusRead the desktop control owner and remaining user-idle wait; release=true ends AI control. It stays available when user takeover blocks new tool calls. AI contr
  • DisplayInventoryRead display layout, work areas, effective DPI, and scale metadata.
  • ScreenshotFast screenshot-first desktop capture with cursor position, active/open windows, and an image. Skips UI tree extraction for speed and should be the default firs
  • SnapshotFull desktop state capture for workflows that need interactive element ids, scrollable regions, or usedom=True browser extraction. Supports usevision=True for i
  • AppLaunch an application by Start Menu name or strictly by executable path with separated argv and optional cwd; resize, move, and switch between windows.
  • PowerShellTo execute PowerShell commands.
  • FileSystemRead, write, copy, move, delete, list, search, and inspect files and directories.
  • ScrapeTo scrape the entire webpage for information.
  • MultiSelectSelect multiple items (files, folders, checkboxes) with optional Ctrl key. Uses bulk label-to-coordinate resolution when labels are provided.
  • MultiEditEnter text into multiple input fields at specified coordinates. Uses bulk label-to-coordinate resolution when labels are provided.
  • ClipboardRead or set Windows clipboard content.
  • ProcessList running processes or terminate them by PID or name.
  • NotificationSend a Windows toast notification with title and message, and an optional appid (Windows AppUserModelID) to attribute it to another app. See below.
  • RegistryRead, write, delete, or list Windows Registry values and keys.

Tool names as the Windows README lists them. Your AI app shows the live list once Windows is connected.

How to set up Windows

  1. Install uv on the machine that runs your AI app, because Windows starts with uvx and fetches its Python package on first run.
  2. Check the Windows README for keys or settings; the registry lists none that Windows requires.
  3. Add Windows to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Windows tools to confirm the connection.
  5. Run one read-only task with Windows first, such as a call to Click, before you allow anything that writes or sends.

Windows compared with similar servers

  • Openshorts by mutonby has fewer GitHub stars than Windows (10.2k against 12.4k); both are community servers, and Openshorts runs as a remote server and Windows runs on your own machine.
  • Xiaohongshu by xpzouying has more GitHub stars than Windows (17.4k against 12.4k); both are community servers, and both run locally.
  • LinkedIn by stickerdaniel has fewer GitHub stars than Windows (4.4k against 12.4k); both are community servers, and both run locally.

Before you connect Windows

  • Give Windows its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Windows tool call until you trust what it does with them.
  • Treat text that Windows fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Windows on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Windows

How marketing and sales teams put Windows to work, by company size. Pick the size closest to yours and start Windows on one use case.

Small business

  • A solo marketer can use Windows to draft a week of posts from one idea and check what performed last month before planning the next.
  • Local businesses can ask Windows which posts drove comments and follows, then do more of what worked instead of posting on guesswork.
  • Windows runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Social teams can connect Windows to pull engagement across accounts into one weekly summary their leads actually read.
  • Demand gen teams can use Windows to spot posts that earned replies from target accounts and hand those names to sales.
  • Start with Click and Type, the tools Windows lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise brands can route Windows drafts through legal and brand review, with publishing kept to approved people and every post logged.
  • Large social teams can use Windows for listening across regions, surfacing complaints and trends to the right owner without a manual sweep.
  • Windows is a community server, so have security review the code and pin a version before Windows touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Windows README

From CursorTouch/Windows-MCP on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

🪟 Windows-MCP

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Português (Brasil) | Deutsch | Français | Русский


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

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
    Special use_dom=True mode 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 expose RootWebArea via 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 Astral, install with pip install uv or curl -LsSf https://astral.sh/uv/install.sh | sh
  • The App tool 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
  1. Install Claude Desktop.
npm install -g @anthropic-ai/mcpb
  1. 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

  1. Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
  1. 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"
      ]
    }
  }
}
  1. 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:

  1. The config file is located at: %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json (not %APPDATA%\Claude\).
  2. 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

  1. In a terminal, run uv tool install windows-mcp.
  2. 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
  1. Install Perplexity Desktop.
  2. Open Perplexity Desktop and go to Settings -> Connectors -> Add Connector -> Advanced.
  3. 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"
  ]
}
  1. Click Save, then restart Perplexity Desktop if needed.

For additional Perplexity Desktop integration troubleshooting, see the Perplexity MCP Support. The documentation includes helpful tips for checking logs and resolving common issues.

Install in Gemini CLI
  1. Install Gemini CLI.
npm install -g @google/gemini-cli
  1. Open %USERPROFILE%/.gemini/settings.json.
  2. Add the windows-mcp config 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"].

  1. Restart Gemini CLI.
Install in Qwen Code 1. Install Qwen Code.
npm install -g @qwen-code/qwen-code@latest
  1. Open %USERPROFILE%/.qwen/settings.json.
  2. Add the windows-mcp config 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"].

  1. Restart Qwen Code.
Install in Codex (CLI and desktop app) 1. Install Codex CLI, or skip this step if you use the Codex desktop app.
npm install -g @openai/codex
  1. Open %USERPROFILE%/.codex/config.toml.
  2. Add the windows-mcp config and save it.
[mcp_servers.windows-mcp]
command="uvx"
args=[
  "windows-mcp",
  "serve"
]
startup_timeout_sec=60

Note: To run from source, replace the command with uv and args with ["--directory", "<path>", "run", "windows-mcp", "serve"].

Note: The Codex CLI, desktop app and IDE extension share this configuration, so one setup covers all of them. Codex waits only 10 seconds for a server to start by default, and the first uvx launch downloads dependencies, so keep startup_timeout_sec.

  1. Restart Codex CLI or the desktop app.
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
  1. Install Claude Code:
npm install -g @anthropic-ai/claude-code
  1. 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

  1. Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
  1. 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.

  1. 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.

Startup timeout. Claude Code waits 30 seconds for an MCP server to start (MCP_TIMEOUT). The first uvx launch downloads and installs dependencies, and on a busy or antivirus-scanned machine even a warm start can take 15-30 seconds, so the server may show as failed in /mcp. Either pre-install it with uv tool install windows-mcp and register windows-mcp.exe serve, or raise the timeout before starting Claude Code:

$env:MCP_TIMEOUT = "120000"; claude

Environment variables. Pass settings with --env, for example to turn off telemetry:

claude mcp add --transport stdio --env ANONYMIZED_TELEMETRY=false windows-mcp -- uvx windows-mcp serve

Large results. Claude Code warns when a tool result passes 10,000 tokens and caps it at 25,000 (MAX_MCP_OUTPUT_TOKENS); text over 50,000 characters is saved to a file instead, except Snapshot, which allows up to 100,000 characters inline. Prefer Screenshot over Snapshot when you only need to see the screen, pass region or display to capture less, and lower WINDOWS_MCP_MAX_TREE_ELEMENTS if UI trees are too large.

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:

  1. Install uv on Windows (from a PowerShell terminal):
irm https://astral.sh/uv/install.ps1 | iex
  1. 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.

  1. 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

Tool names are not case-sensitive. A name that matches no tool stops the server with an error that lists the tool names.

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 (S256 required)
  • 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:

  1. --config /path/to/config.toml
  2. ~/.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
Tool description language

The server instructions, tool descriptions and the two on-screen prompts (the "AI is controlling this computer" notice and the takeover dialog) are in English by default. Set language to auto to follow the Windows display language when a translation for it ships with Windows-MCP, or to a tag such as zh-CN; anything not translated stays in English. Window titles, buttons and other screen text always come from Windows in its own language.

[server]
language = "auto"   # default is "en"; "auto" follows the Windows display language, or use a tag such as "zh-CN"

Also available as the WINDOWS_MCP_LANGUAGE environment variable, the --language flag, and the "Tool Description Language" setting of the Claude Desktop extension. The flag wins over the variable, and the variable over config.toml; an empty variable counts as unset. English stays the default until the translations have been reviewed by native speakers (only Chinese has been so far).

Translations live in src/windows_mcp/language/, one JSON file per language named by the language part of the tag (en.json, zh.json). Each file lists variants; a variant names the Windows tags it serves and holds instructions, tools (a tool's description, and params for parameter descriptions) and, optionally, the on-screen prompts (the takeover notice and dialog; anything it leaves out stays in English). "*" serves every tag of the language that no variant lists, so en.json covers en-US, en-GB and the rest:

{
  "language": "zh",
  "variants": [
    {"tags": ["zh-CN", "zh-SG"], "instructions": "…", "tools": {"Click": {"description": "…"}}},
    {"tags": ["zh-TW", "zh-HK", "zh-MO"], "instructions": "…", "tools": {"Click": {"description": "…"}}}
  ]
}

A variant may translate only part of the text: the rest comes from the file's "*" variant, then from en.json. A file without "*" (Chinese, whose variants are different scripts) sends tags it does not list straight to English. en.json is the English the code registers, and a test fails if the two differ, so update it with any change to a tool description or the server instructions. Translations are not checked against later English changes, so update them in the same change, or note in the pull request which ones still describe the old text.

Translations ship for Chinese (Simplified: zh-CN, zh-SG; Traditional: zh-TW, zh-HK, zh-MO), Japanese, Korean, Spanish, Portuguese (Brazilian, also used for pt-PT), German, French and Russian. They were drafted without review by native speakers, so corrections are welcome, especially on-screen Windows names such as the Start menu's "Move to front" command, which no translation could confirm.

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
consent_countdown_seconds = 10

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.

Before AI starts a new control period, the screen edges turn amber and a dialog counts down from consent_countdown_seconds. Allow now starts control at once, and input in the first second after it (your hand leaving the mouse) does not take the desktop back; the takeover hotkey still does. Deny (or closing the dialog) rejects the call with CONTROL_DENIED, and an unanswered countdown starts control, so unattended runs keep working. If you use the mouse or keyboard during the countdown without answering, you stay in control and the call returns USER_CONTROL. Consent lasts until you take the desktop back; later AI calls do not ask again, even after the agent releases control. The prompt also appears while you are using the computer, instead of a silent USER_CONTROL. After you deny, ignore it while working, or take the desktop back from AI, calls return USER_CONTROL without asking until you have been idle for idle_timeout_seconds. Set consent_countdown_seconds = 0 (0–60) to start control without asking.

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 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.

Cursor positioning failures

If Windows rejects SetCursorPos, input tools return an error instead of reporting success or continuing with a click or text entry at the wrong location. Check that the server can access the active input desktop and whether the target application is running with higher privileges. The error includes the Windows error code when available; some failures provide no extended error code. These checks are diagnostic suggestions, not a determination of the cause. Windows-MCP does not elevate itself.

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. Images are also capped at 1920x1080 by default (see WINDOWS_MCP_MAX_IMAGE_SIZE), and the smaller of the two factors applies: a full-screen capture of a 3840x2160 display comes back at 1920x1080 for any value from 0.5 to 1.0 (2560x1440: any value from 0.75 to 1.0), so only lower values make it smaller, e.g. 0.25 gives 960x540 on 4K. A 1160x140 region at 0.75 comes back at 870x105. Lower it if screenshots still exceed Claude Desktop's 1 MB tool-result limit. When the cap lowers a value you set, a warning is logged once.
WINDOWS_MCP_MAX_IMAGE_SIZE 1920x1080 Largest image Screenshot and Snapshot return, as WIDTHxHEIGHT (for example 3840x2160). A larger capture is scaled down to fit, and the smaller of this factor and WINDOWS_MCP_SCREENSHOT_SCALE applies. Set none (or off, 0) to remove the cap, so a 4K display can be captured at 1:1 with WINDOWS_MCP_SCREENSHOT_SCALE=1.0. A full-size 4K PNG can exceed Claude Desktop's 1 MB tool-result limit. An invalid value is logged and the default is used.
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_DXCAM_IDLE_SECONDS 30 Seconds the dxcam backend keeps a display's capture camera and its last frame (6–25 MB per display) after the most recent screenshot on it. Back-to-back screenshots within this window reuse the camera; after it, both are released and the next capture pays a one-off ~0.1 s setup. Unset or blank uses the default silently. A non-number, nan/inf, or a value <= 0 logs a warning and uses the default. A value above the platform timer maximum (about 49.7 days) is clamped to it with a warning. Read once at startup.
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.
WINDOWS_MCP_MERGE_WORD_NODES (disabled) Set to 1, true, yes, or on to merge adjacent Word leaves on the same text line into one node. Electron/Chromium apps can report one word per glyph (each CJK character becomes its own node), which can dominate Snapshot output; merging keeps one clickable node per text run. Leave it off when you need to click individual words.
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 window metadata and 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 during Snapshot collection. Excluded windows are omitted from the window list and active-window metadata as well as the accessibility tree, and they are not reported as failed captures. If the foreground window belongs to an excluded process, no active window is reported. If the owning process of a window cannot be resolved, the window is queried and 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.

Read the rest of the Windows README on GitHub

Questions about Windows

What is the Windows MCP server?

An MCP Server for computer-use in Windows OS. Windows is maintained by CursorTouch on GitHub at CursorTouch/Windows-MCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Windows MCP server?

Add Windows to your AI app's MCP config with the command uvx windows-mcp==0.8.1. In Claude Code, run claude mcp add --transport stdio windows -- uvx windows-mcp==0.8.1. To run Windows this way you need uv installed.

Does Windows need an API key?

The registry lists no required keys for Windows. Check the Windows README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Windows an official MCP server?

No. Windows is a community server maintained by CursorTouch. Community servers can be excellent; read the code and the open issues before you give Windows access to company data.

What license is Windows under?

Windows is released under the MIT license, according to its GitHub repository. The license covers the code of Windows; the service it connects to has its own terms.